|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CentralCached
A convenient interface combining together all methods for accessing the BioMoby registry and the handling its local cache.
Field Summary | |
---|---|
static String |
CACHE_PART_DATATYPES
An ID indicating data types part of a cache. |
static String |
CACHE_PART_NAMESPACES
An ID indicating namespaces part of a cache. |
static String |
CACHE_PART_SERVICES
An ID indicating services part of a cache. |
static String |
CACHE_PART_SERVICETYPES
An indicating service types part of a cache. |
static String |
CACHE_PROP_COUNT
|
static String |
CACHE_PROP_LOCATION
|
static String |
CACHE_PROP_NAME
|
static String |
CACHE_PROP_OLDEST
|
static String |
CACHE_PROP_REGISTRY_URL
|
static String |
CACHE_PROP_SIZE
|
static String |
CACHE_PROP_YOUNGEST
|
static String |
LIST_FILE
A special file name, containing a list of cached entities. |
static String |
RDF_FILE
A special file name, containing an RDF document with the cached entities. |
Fields inherited from interface org.biomoby.shared.Central |
---|
DATA_TYPES_RESOURCE_NAME, FULL_RESOURCE_NAME, HAS, HASA, iHAS, iHASA, iISA, ISA, NAMESPACES_RESOURCE_NAME, SERVICE_INSTANCES_RESOURCE_NAME, SERVICE_TYPES_RESOURCE_NAME |
Method Summary | |
---|---|
long |
getCacheAge()
Return an age of the current (whole) cache in millis from the beginning of the Epoch; or -1 if cache is empty, or the age is unknown. |
Properties |
getCacheInfo(String id)
Return as many properties describing the given part of a cache as possible. |
String |
getCacheInfoFormatted(String id)
Similar as getCacheInfo(java.lang.String) but formatted into a single
string. |
boolean |
isUsingCache()
Indicate whether the implementtaion really is using a local cache. |
void |
removeFromCache(String id)
Remove a group of objects from a cache. |
void |
updateCache(String id)
Update the indicated part of a cache. |
Methods inherited from interface org.biomoby.shared.CentralDigest |
---|
getDataTypes, getFullServiceTypes, getServices |
Methods inherited from interface org.biomoby.shared.event.Notifier |
---|
addNotificationListener, addNotificationListeners, callback, fireEvent, fireEvent, getNotificationListeners, removeNotificationListener, removeNotificationListeners |
Field Detail |
---|
static final String LIST_FILE
static final String RDF_FILE
static final String CACHE_PART_DATATYPES
static final String CACHE_PART_SERVICES
static final String CACHE_PART_SERVICETYPES
static final String CACHE_PART_NAMESPACES
static final String CACHE_PROP_NAME
static final String CACHE_PROP_COUNT
static final String CACHE_PROP_OLDEST
static final String CACHE_PROP_YOUNGEST
static final String CACHE_PROP_SIZE
static final String CACHE_PROP_LOCATION
static final String CACHE_PROP_REGISTRY_URL
Method Detail |
---|
void removeFromCache(String id)
id
- should be either null, or one of the following:
CACHE_PART_DATATYPES
,
CACHE_PART_SERVICES
,
CACHE_PART_SERVICETYPES
, and CACHE_PART_NAMESPACES
.void updateCache(String id) throws MobyException
Updates means to fetch a new list of entities, compare it with existing entities in the cache, fetch the missing ones and remove the redundant ones.
id
- should be either null, or one of the following:
CACHE_PART_DATATYPES
,
CACHE_PART_SERVICES
,
CACHE_PART_SERVICETYPES
, and CACHE_PART_NAMESPACES
.
MobyException
long getCacheAge()
Properties getCacheInfo(String id)
id
- is a part of cache to be described, or null if the whole
cache should be described (this may return different kind
of properties than for individual cache parts)
String getCacheInfoFormatted(String id)
getCacheInfo(java.lang.String)
but formatted into a single
string.
id
- is a part of cache to be described, or null if the whole
cache should be described (this may return different kind
of properties than for individual cache parts)
boolean isUsingCache()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |