|
|||||||||
| Home >> All >> org >> altara >> [ mars overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.altara.mars
Class Status

java.lang.Objectorg.altara.mars.Status
- All Implemented Interfaces:
- java.io.Serializable
- public class Status
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Represents the status of a given service monitored by MARS. Status is a tuple of a status code and a detail string explaining what return value from the server led the probe to decide on the given status code.
| Nested Class Summary | |
static class |
Status.StatusCode
|
| Field Summary | |
private Status.StatusCode |
code
|
static Status.StatusCode |
DOWN
|
static Status.StatusCode |
FASTCLOSE
|
static int |
MAX_HARDFAULTCODE
|
static int |
MAX_SOFTFAULTCODE
|
static Status.StatusCode |
PROBEFAIL
|
private java.util.HashMap |
properties
|
private long |
responseTime
|
static Status.StatusCode[] |
STATUSCODES
|
static Status.StatusCode |
TIMEOUT
|
private long |
timestamp
|
static Status.StatusCode |
UNEXPECTED
|
static Status.StatusCode |
UNKNOWN
|
static Status.StatusCode |
UP
|
| Constructor Summary | |
Status(Status.StatusCode code)
|
|
Status(Status.StatusCode code,
long responseTime)
|
|
| Method Summary | |
static Status |
fromJDOMElem(org.jdom.Element in)
|
Status.StatusCode |
getCode()
|
java.lang.String |
getProperty(java.lang.String name)
|
java.util.Iterator |
getPropertyNames()
|
long |
getResponseTime()
|
long |
getTimestamp()
|
boolean |
isFault()
|
void |
setProperty(java.lang.String name,
java.lang.String value)
|
(package private) void |
setTimestamp(long timestamp)
|
org.jdom.Element |
toJDOMElem()
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
code
private Status.StatusCode code
properties
private java.util.HashMap properties
timestamp
private long timestamp
responseTime
private long responseTime
MAX_HARDFAULTCODE
public static int MAX_HARDFAULTCODE
MAX_SOFTFAULTCODE
public static int MAX_SOFTFAULTCODE
PROBEFAIL
public static final Status.StatusCode PROBEFAIL
DOWN
public static final Status.StatusCode DOWN
FASTCLOSE
public static final Status.StatusCode FASTCLOSE
TIMEOUT
public static final Status.StatusCode TIMEOUT
UNEXPECTED
public static final Status.StatusCode UNEXPECTED
UP
public static final Status.StatusCode UP
UNKNOWN
public static final Status.StatusCode UNKNOWN
STATUSCODES
public static final Status.StatusCode[] STATUSCODES
| Constructor Detail |
Status
public Status(Status.StatusCode code, long responseTime)
Status
public Status(Status.StatusCode code)
| Method Detail |
getCode
public Status.StatusCode getCode()
isFault
public boolean isFault()
getTimestamp
public long getTimestamp()
getResponseTime
public long getResponseTime()
getProperty
public java.lang.String getProperty(java.lang.String name)
getPropertyNames
public java.util.Iterator getPropertyNames()
setProperty
public void setProperty(java.lang.String name, java.lang.String value)
setTimestamp
void setTimestamp(long timestamp)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
toJDOMElem
public org.jdom.Element toJDOMElem()
fromJDOMElem
public static Status fromJDOMElem(org.jdom.Element in) throws InvalidDocumentException
|
|||||||||
| Home >> All >> org >> altara >> [ mars overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.altara.mars.Status