org.eclipse.jgit.storage.dht
Class ChunkInfo

java.lang.Object
  extended by org.eclipse.jgit.storage.dht.ChunkInfo

public class ChunkInfo
extends java.lang.Object

Summary information about a chunk owned by a repository.


Field Summary
static int OBJ_MIXED
          Mixed objects are stored in the chunk (instead of single type).
 
Constructor Summary
ChunkInfo(ChunkKey key, GitStore.ChunkInfo data)
          Wrap a ChunkInfo message.
 
Method Summary
 ChunkKey getChunkKey()
           
 GitStore.ChunkInfo getData()
           
 RepositoryKey getRepositoryKey()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJ_MIXED

public static final int OBJ_MIXED
Mixed objects are stored in the chunk (instead of single type).

See Also:
Constant Field Values
Constructor Detail

ChunkInfo

public ChunkInfo(ChunkKey key,
                 GitStore.ChunkInfo data)
Wrap a ChunkInfo message.

Parameters:
key - associated chunk key.
data - data.
Method Detail

getRepositoryKey

public RepositoryKey getRepositoryKey()
Returns:
the repository that contains the chunk.

getChunkKey

public ChunkKey getChunkKey()
Returns:
the chunk this information describes.

getData

public GitStore.ChunkInfo getData()
Returns:
the underlying message containing all data.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.