public class InteractionCache extends java.lang.Object implements MaximoMTEnabledCache
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,InteractionInfo> |
getAllInteractions()
Get all the defined interactions
InteractionInfo objects
|
MaximoCache |
getCache()
Return the maximo cache instance.
|
static InteractionCache |
getInstance()
Always use one instance of InteractionCache
|
InteractionInfo |
getInteractionInfo(java.lang.String name)
Get the InteractionInfo object
|
InteractionInfo |
getInteractionInfo(java.lang.String sigoption,
java.lang.String appname)
Get the InteractionInfo object for SigOption name and Application Name
|
InteractionInfo |
getInteractionInfo(java.lang.String mainObjectName,
java.lang.String relation,
java.lang.String topObject)
Get the InteractionInfo object for Request Relation, Name of Main object for request
and Application Main Object Name
|
java.lang.String |
getName()
Returns the name as registered in Maximo Cache
|
void |
init()
Initialize the EndPointCache
|
boolean |
isLoaded() |
void |
reload()
Refresh the EndPointCache
|
void |
reload(java.lang.String key)
Reload a paricular key in memory.
|
public static InteractionCache getInstance() throws MXException
MXException - MAXIMO exceptionpublic void init()
throws MXException
init in interface MaximoCacheMXException - Maximo Exceptionpublic void reload()
throws MXException
reload in interface MaximoCacheMXException - Maximo Exceptionpublic void reload(java.lang.String key)
throws MXException
reload in interface MaximoCachekey - to reloadMXException - Maximo Exceptionpublic java.lang.String getName()
getName in interface MaximoCachepublic java.util.Map<java.lang.String,InteractionInfo> getAllInteractions()
public InteractionInfo getInteractionInfo(java.lang.String name)
name - interaction namepublic InteractionInfo getInteractionInfo(java.lang.String sigoption, java.lang.String appname)
sigoption - signature option nameappname - application namepublic InteractionInfo getInteractionInfo(java.lang.String mainObjectName, java.lang.String relation, java.lang.String topObject) throws MXException
mainObjectName - interaction main object namerelation - request relation nametopObject - name of top MBo in request OSMXExceptionpublic MaximoCache getCache()
MaximoMTEnabledCachegetCache in interface MaximoMTEnabledCachepublic boolean isLoaded()
isLoaded in interface MaximoMTEnabledCache