public class IntErrorCache extends java.lang.Object implements MaximoCache
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,MaxIntErrorInfo> |
getAllErrors()
Get all the eror messages.
|
static IntErrorCache |
getInstance()
Always use one instance of EndPointCache
|
MaxIntErrorInfo |
getIntErrorInfo(java.lang.String id)
Get the MaxIntErrorInfo object
|
java.lang.String |
getName()
Returns the name as registered in Maximo Cache
|
boolean |
hasError(java.lang.String id)
Get the MaxIntErrorInfo object
|
void |
init()
Initialize the IntErrorCache
|
void |
reload()
Refresh the IntErrorCache
|
void |
reload(java.lang.String key)
Reload a paricular key in memory.
|
public static IntErrorCache getInstance() throws MXException
MXException
- MAXIMO exceptionpublic void init() throws MXException
init
in interface MaximoCache
MXException
- Maximo Exceptionpublic void reload() throws MXException
reload
in interface MaximoCache
MXException
- Maximo Exceptionpublic void reload(java.lang.String key) throws MXException
reload
in interface MaximoCache
key
- to reloadMXException
- Maximo Exceptionpublic java.lang.String getName()
getName
in interface MaximoCache
public java.util.Map<java.lang.String,MaxIntErrorInfo> getAllErrors()
public MaxIntErrorInfo getIntErrorInfo(java.lang.String id)
id
- mesage idpublic boolean hasError(java.lang.String id)
id
- message id