status
Class FailStatus

java.lang.Object
  extended by extvisitor.AExtVisitorHost<java.lang.Class<? extends AStatus>,AStatus>
      extended by status.AStatus
          extended by status.FailStatus
All Implemented Interfaces:
IExtVisitorHost<java.lang.Class<? extends AStatus>,AStatus>, java.io.Serializable

public class FailStatus
extends AStatus

Concrete status object that represents a failure.

Author:
Stephen Wong (c) 2010
See Also:
Serialized Form

Nested Class Summary
static class FailStatus.LEVEL
          Enumeration that distinguishes between different failure levels.
 
Field Summary
private  FailStatus.LEVEL failLevel
          The severity level of this failure.
private  java.lang.String msg
          The failure message
private static long serialVersionUID
           
private  java.lang.String src
          The machine where the failure occurred.
 
Constructor Summary
FailStatus(java.lang.String src, java.lang.String msg, FailStatus.LEVEL failLevel)
          Constructor for the class.
 
Method Summary
 FailStatus.LEVEL getLevel()
          Get the severity level of the failure.
 java.lang.String getMsg()
          Get the failure messsage
 java.lang.String getSrc()
          Get the failure's source machine
 java.lang.String toString()
           
 
Methods inherited from class extvisitor.AExtVisitorHost
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

msg

private java.lang.String msg
The failure message


src

private java.lang.String src
The machine where the failure occurred.


failLevel

private FailStatus.LEVEL failLevel
The severity level of this failure.

Constructor Detail

FailStatus

public FailStatus(java.lang.String src,
                  java.lang.String msg,
                  FailStatus.LEVEL failLevel)
Constructor for the class.

Parameters:
src - The machine where the failure occurred.
msg - The failure message
failLevel - The severity level of this failure.
Method Detail

getMsg

public java.lang.String getMsg()
Get the failure messsage

Returns:

getSrc

public java.lang.String getSrc()
Get the failure's source machine

Returns:

getLevel

public FailStatus.LEVEL getLevel()
Get the severity level of the failure.

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object