edu.umn.cs.crisys
Class ASW.FaultMessage
java.lang.Object
|
+--edu.umn.cs.crisys.RSM.Message
|
+--edu.umn.cs.crisys.ASW.FaultMessage
- Enclosing class:
- ASW
- protected static class ASW.FaultMessage
- extends edu.umn.cs.crisys.RSM.Message
Structure of Fault message sent out by ASW when a failure is detected.
Field Summary |
boolean |
fault
Flag indicating failure detection - only message field. |
protected java.lang.Object[] |
msg
|
Method Summary |
void |
printMessage(java.io.PrintStream str,
java.lang.String header)
Utility method to print message to streams. |
void |
readMessage(java.lang.Object[] fields)
Extracts the boolean value from boolean object. |
java.lang.Object[] |
writeMessage()
Converts boolean value to a Boolean Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fault
public boolean fault
- Flag indicating failure detection - only message field.
msg
protected java.lang.Object[] msg
ASW.FaultMessage
public ASW.FaultMessage()
- Constructor.
readMessage
public void readMessage(java.lang.Object[] fields)
- Extracts the boolean value from boolean object.
- Overrides:
readMessage
in class edu.umn.cs.crisys.RSM.Message
writeMessage
public java.lang.Object[] writeMessage()
- Converts boolean value to a Boolean Object.
- Overrides:
writeMessage
in class edu.umn.cs.crisys.RSM.Message
- Returns:
- an array of one Boolean object.
printMessage
public void printMessage(java.io.PrintStream str,
java.lang.String header)
- Utility method to print message to streams. This prints the
number of fields and each field along with its corresponding
Java object type. Calls writeMessage to convert the RSML-e
mesage to raw objects. Derived classes may override this
method, especially, if enumerations have to be printed as
their descriptive strings.