public class ObjectFormatCache extends ObjectFormatServiceImpl
Modifier and Type | Field and Description |
---|---|
protected Date |
lastRefreshDate |
protected static int |
throttleIntervalSec |
static boolean |
usingFallbackFormatList |
objectFormatList, objectFormatMap
Modifier and Type | Method and Description |
---|---|
ObjectFormat |
getFormat(ObjectFormatIdentifier formatId)
Lookup and return the format specified by the Identifier.
|
ObjectFormat |
getFormat(String fmtidStr)
Deprecated.
|
static ObjectFormatCache |
getInstance()
Create the object format cache instance if it hasn't already been created.
|
Date |
getLastRefreshDate()
Returns the date of the last refresh from the CN.
|
int |
getMinimalRefreshInterval()
Returns the minimal refresh interval (seconds)
|
boolean |
isUsingFallbackFormatList()
Returns true if the cache has not been able to successfully
refresh from the CN
|
ObjectFormatList |
listFormats()
List the object formats registered with the object format service.
|
getObjectFormatFile, getObjectFormatMap
public static boolean usingFallbackFormatList
protected static int throttleIntervalSec
protected Date lastRefreshDate
public static ObjectFormatCache getInstance() throws ServiceFailure
ServiceFailure
- - upon problems creating the cachepublic ObjectFormatList listFormats()
listFormats
in class ObjectFormatServiceImpl
public int getMinimalRefreshInterval()
public Date getLastRefreshDate()
public boolean isUsingFallbackFormatList()
@Deprecated public ObjectFormat getFormat(String fmtidStr) throws NotFound
This method is deprecated in favor of the type-safe getFormat(ObjectFormatIdentifier) method
format
- - the object format identifier stringNotFound
public ObjectFormat getFormat(ObjectFormatIdentifier formatId) throws NotFound
getFormat
in class ObjectFormatServiceImpl
formatId
- - the object format identifierServiceFailure
NotFound
NotImplemented
Copyright © 2014. All Rights Reserved.