ncsa.tools.trebuchet.core.data
Class CacheHeader

java.lang.Object
  extended byncsa.tools.trebuchet.core.data.CacheEntry
      extended byncsa.tools.trebuchet.core.data.CacheHeader

public class CacheHeader
extends CacheEntry


Field Summary
static int[] FIXED_LENGTH_BYTES
           
static int HEADER_LENGTH
           
 
Constructor Summary
CacheHeader()
           
CacheHeader(java.nio.ByteBuffer buffer)
           
 
Method Summary
 int getCacheSize()
           
 TrebuchetConfiguration getConfiguration()
           
 int getCurrentDepth()
           
 java.lang.Integer getDepth()
          Should return the depth of the entry, or null if not relevant.
 long getDepthStartPosition()
           
 UriPattern getPattern()
           
 java.net.URI getSourceBaseUri()
           
 java.net.URI getTargetUri()
           
 java.net.URI getTmpDir()
           
 int length()
           
 void maybeGenerateTemporaryTarget()
           
 void setCacheSize(int cacheSize)
           
 void setConfiguration(TrebuchetConfiguration configuration)
           
 void setCurrentDepth(int depth)
           
 void setDepthStartPosition(long depthStartPosition)
           
 void setPattern(UriPattern pattern)
           
 void setSourceBaseUri(java.net.URI sourceBaseUri)
           
 void setTargetUri(java.net.URI targetUri)
           
 void setTmpDir(java.net.URI tmpDir)
           
 void toBuffer(java.nio.ByteBuffer buffer)
           
 java.lang.String toShortString()
           
 java.lang.String toString()
           
 
Methods inherited from class ncsa.tools.trebuchet.core.data.CacheEntry
getEntryId, getStatus, setEntryId, setStatus, toBuffer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HEADER_LENGTH

public static final int HEADER_LENGTH
See Also:
Constant Field Values

FIXED_LENGTH_BYTES

public static final int[] FIXED_LENGTH_BYTES
Constructor Detail

CacheHeader

public CacheHeader()

CacheHeader

public CacheHeader(java.nio.ByteBuffer buffer)
Method Detail

toBuffer

public void toBuffer(java.nio.ByteBuffer buffer)
Overrides:
toBuffer in class CacheEntry

toString

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

toShortString

public java.lang.String toShortString()
Overrides:
toShortString in class CacheEntry

length

public int length()
Specified by:
length in class CacheEntry

getDepth

public java.lang.Integer getDepth()
Description copied from class: CacheEntry
Should return the depth of the entry, or null if not relevant.

Specified by:
getDepth in class CacheEntry

maybeGenerateTemporaryTarget

public void maybeGenerateTemporaryTarget()
                                  throws java.lang.Throwable
Throws:
java.lang.Throwable

getSourceBaseUri

public java.net.URI getSourceBaseUri()

setSourceBaseUri

public void setSourceBaseUri(java.net.URI sourceBaseUri)

getTargetUri

public java.net.URI getTargetUri()

setTargetUri

public void setTargetUri(java.net.URI targetUri)

getTmpDir

public java.net.URI getTmpDir()

setTmpDir

public void setTmpDir(java.net.URI tmpDir)

getCacheSize

public int getCacheSize()

setCacheSize

public void setCacheSize(int cacheSize)

getCurrentDepth

public int getCurrentDepth()

setCurrentDepth

public void setCurrentDepth(int depth)

getDepthStartPosition

public long getDepthStartPosition()

setDepthStartPosition

public void setDepthStartPosition(long depthStartPosition)

getPattern

public UriPattern getPattern()

setPattern

public void setPattern(UriPattern pattern)

getConfiguration

public TrebuchetConfiguration getConfiguration()

setConfiguration

public void setConfiguration(TrebuchetConfiguration configuration)