|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jfw.probe.ProbeStatus
public final class ProbeStatus
Manage status informations for the probes.
Is a singleton, instance is returned by getInstance()
.
Field Summary | |
---|---|
static java.lang.String |
STATUS_KEY
The key used in status . |
static java.lang.String |
STATUS_KO
A value for STATUS_KEY . |
static java.lang.String |
STATUS_OK
A value for STATUS_KEY . |
static java.lang.String |
STATUS_TIME
The key used in status . |
Method Summary | |
---|---|
void |
deleteStatus(java.lang.String probeName)
Remove a probe status from status . |
boolean |
exist(java.lang.String probeName)
Check if exist the status of a probe. |
static ProbeStatus |
getInstance()
Get the unique instance. |
java.util.Set |
getProbeList()
Get a Set object with keys of status . |
java.util.HashMap |
getStatus(java.lang.String probeName)
Get the status of a probe. |
void |
setStatus(java.lang.String probeName,
java.lang.String probeValue)
Set the last status of a probe. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STATUS_KEY
status
.
public static final java.lang.String STATUS_TIME
status
.
public static final java.lang.String STATUS_OK
STATUS_KEY
.
public static final java.lang.String STATUS_KO
STATUS_KEY
.
Method Detail |
---|
public static ProbeStatus getInstance()
public void setStatus(java.lang.String probeName, java.lang.String probeValue)
probeName
- the name of the probe.probeValue
- the status of the probe. Possible values are
STATUS_OK
and STATUS_KO
.public java.util.HashMap getStatus(java.lang.String probeName)
probeName
- the name of the probe.
STATUS_KEY
, the status of the last execution of the probe.
Possible values are STATUS_OK
and STATUS_KO
.
STATUS_TIME
, the time is set the status.
public void deleteStatus(java.lang.String probeName)
status
.
probeName
- the probe name to remove.public java.util.Set getProbeList()
status
.
status
.public boolean exist(java.lang.String probeName)
probeName
- the probe name to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |