public class ClientCacheManagement extends CacheManagement
CacheManagement
class providing an interface to
access to the generic CacheManagement with methods more suitable for a JPIP
client.
cacheSize, dataBinsList, FIFO, LRU, managementPolicy, maxCacheSize, NONE, removedDataBins
codestream, EXPLICIT_FORM, IMPLICIT_FORM, INDEX_RANGE, mainHeaderDataBin, metaDataBins, NO_CACHE, NUMBER_OF_BYTES, NUMBER_OF_LAYERS, precinctsDataBins, tileHeaderDataBins, WILDCARD
Constructor and Description |
---|
ClientCacheManagement()
Constructor.
|
ClientCacheManagement(java.lang.String fileName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the client cache but not remove the image parameters
(the
#jpcParameters attribute). |
MetaDataBin |
getMetaDataBin(long inClassIdentifier) |
int |
getNumMetaDataBins() |
PrecinctDataBin |
getPrecinctDataBin(long inClassIdentifier) |
void |
list(java.io.PrintStream out)
Prints this cache out to the specified output stream.
|
void |
loadCache(java.lang.String fileName) |
void |
reset()
Sets the attributes to its initial values.
|
void |
saveCache(java.lang.String fileName) |
java.lang.String |
toString() |
addJPIPMessage, getLastLayerOfPrecinctDataBin, getMainHeader, getManagementPolicy, getMaxCacheSize, getPrecinctDataBinLength, isReady, manage, setManagementPolicy, setMaxCacheSize
explicitForm, explicitForm, getCacheDescriptor, getDataBin, getDatabinLength, implicitForm, isComplete, isHeldByCurrentThread, isInCache, isLocked, keySet, lock, setJPEG2KCodestream, unlock
public ClientCacheManagement()
public ClientCacheManagement(java.lang.String fileName)
OBS: This option is not available yet, therefore the calling to this
constructor is redirected to the ClientCacheManagement()
constructor.
fileName
- public void reset()
reset
in class CacheManagement
public void clear()
#jpcParameters
attribute).clear
in class CacheManagement
public void saveCache(java.lang.String fileName) throws ErrorException
fileName
- ErrorException
public void loadCache(java.lang.String fileName) throws ErrorException
ErrorException
public final PrecinctDataBin getPrecinctDataBin(long inClassIdentifier)
inClassIdentifier
- public final int getNumMetaDataBins()
public final MetaDataBin getMetaDataBin(long inClassIdentifier)
inClassIdentifier
- public java.lang.String toString()
toString
in class CacheManagement
public void list(java.io.PrintStream out)
list
in class CacheManagement
out
- an output stream.
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)