com.connecterra.alepc.api
Interface EPCCacheSpecInfo

All Known Implementing Classes:
EngineEPCCacheSpecInfo

public interface EPCCacheSpecInfo

Describes administrative information for an EPC cache.

See Also:
ALEPC.getEPCCacheSpecInfo(java.lang.String, boolean)

Method Summary
 int getActivationCount()
          Returns the number of times an EPC value has been obtained from this EPC cache since it was defined.
 EPCPatterns getCacheContent()
          Gives the contents remaining in the EPC cache.
 long getCacheSize()
          Tells how many entries remain in the EPC cache.
 long getLastActivated()
          Returns the last time an EPC value was obtained from this EPC cache.
 long getLastReplenished()
          Returns the last time this EPC cache was replenished.
 long getLastReported()
          Returns the last time a cache report was generated by this EPC cache.
 java.util.List getPCSpecNames()
          Returns the names of the PCSpecs, if any, that are using this EPC cache.
 int getReplenishCount()
          Returns the number of times this EPC cache has been replenished since it was defined.
 int getSubscriberCount()
          Returns the number of URIs subscribed to this EPC cache.
 

Method Detail

getSubscriberCount

public int getSubscriberCount()
Returns the number of URIs subscribed to this EPC cache.


getPCSpecNames

public java.util.List getPCSpecNames()
Returns the names of the PCSpecs, if any, that are using this EPC cache.


getActivationCount

public int getActivationCount()
Returns the number of times an EPC value has been obtained from this EPC cache since it was defined.


getLastActivated

public long getLastActivated()
Returns the last time an EPC value was obtained from this EPC cache.

Returns:
A time in milliseconds, as returned from System.currentTimeMillis(). If an EPC value has never been obtained, returns -1.

getReplenishCount

public int getReplenishCount()
Returns the number of times this EPC cache has been replenished since it was defined.


getLastReplenished

public long getLastReplenished()
Returns the last time this EPC cache was replenished.

Returns:
A time in milliseconds, as returned from System.currentTimeMillis(). If this EPC cache has never been replenished, returns -1.

getLastReported

public long getLastReported()
Returns the last time a cache report was generated by this EPC cache.

Returns:
A time in milliseconds, as returned from System.currentTimeMillis(). If a report has never been generated, returns -1.

getCacheSize

public long getCacheSize()
Tells how many entries remain in the EPC cache.

Returns:
A count of the entries remaining in the EPC cache.

getCacheContent

public EPCPatterns getCacheContent()
Gives the contents remaining in the EPC cache.

Returns:
An EPCPatterns containing a sequence of EPC patterns which specify the EPC value(s) in the EPC cache. Can be null, if ALEPC.getEPCCacheSpecInfo(java.lang.String, boolean) was called with false passed in for includeCacheContent.