|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.openwings.availability.UnitReport
This class is used to report a fault in a unit (a component or a specific capability provided by a component).
| Field Summary | |
static int |
ACTIVE
This constant is used to indicate that a unit is active. |
static int |
BACKUP
This constant is used to indicate that a unit is a backup unit. |
static int |
DEGRADED
This constant is used to indicate that a unit has reduced performance. |
static int |
INITIALIZING
This constant is used to indicate that a unit is initializing. |
static int |
NA
This constant is used to indicate that a unit is not applicable. |
static int |
NO_RESPONSE
This constant is used to indicate that a unit is not responding. |
static int |
NOT_ACTIVE
This constant is used to indicate that a unit is not active |
static int |
OFFLINE
This constant is used to indicate that a unit is unavailable. |
static int |
ONLINE
This constant is used to indicate that a unit is available. |
| Constructor Summary | |
UnitReport()
Default constructor. |
|
UnitReport(java.lang.String name,
java.lang.String description,
int status,
int state,
java.util.Date timeStamp)
This is the primary constructor for this class. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
overrides the default equals() method |
boolean |
getDegraded()
This method is used to get the degraded status. |
java.lang.String |
getDescription()
This method is used to get the desription of the fault. |
java.lang.String |
getName()
This method is used to get the name of the unit under test. |
int |
getState()
This method is used to get the state of this unit. |
int |
getStatus()
This method is used to get the status of this unit. |
java.util.Date |
getTimestamp()
This method is used to get the date of this unit. |
int |
hashCode()
overrides default hashCode() method. |
void |
setDegraded(boolean degraded)
This method is used to set the degraded status. |
void |
setDescription(java.lang.String description)
This method is used to set the desription of the fault. |
void |
setName(java.lang.String name)
This method is used to set the name of the unit under test. |
void |
setState(int state)
This method is used to set the state of this unit. |
void |
setStatus(int status)
This method is used to set the status of this unit. |
void |
setTimestamp(java.util.Date timeStamp)
This method is used to set the date. |
java.lang.String |
toString()
overrides default toString() method. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OFFLINE
public static final int DEGRADED
public static final int ONLINE
public static final int NO_RESPONSE
public static final int INITIALIZING
public static final int ACTIVE
public static final int BACKUP
public static final int NA
public static final int NOT_ACTIVE
| Constructor Detail |
public UnitReport()
public UnitReport(java.lang.String name,
java.lang.String description,
int status,
int state,
java.util.Date timeStamp)
name - the name of the unit under test.description - the description of the fault.status - the OFFLINE, ONLINE status
indicator.| Method Detail |
public int getStatus()
OFFLINE,
ONLINEpublic void setStatus(int status)
status - the status of the unit under test: OFFLINE,
ONLINEpublic int getState()
NO_RESPONSE,
INITIALIZING, ACTIVE, BACKUP, NApublic void setState(int state)
state - the state of the unit under test: NO_RESPONSE,
INITIALIZING, ACTIVE, BACKUP, NApublic java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timeStamp)
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the unitpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the fault descriptionpublic boolean getDegraded()
true if degradedpublic void setDegraded(boolean degraded)
degraded - true if degradedpublic final boolean equals(java.lang.Object obj)
public final int hashCode()
public java.lang.String toString()
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||