org.csapi.jr.se.fw
Class FaultStats

java.lang.Object
  |
  +--org.csapi.jr.se.fw.FaultStats
All Implemented Interfaces:
java.io.Serializable

public final class FaultStats
extends java.lang.Object
implements java.io.Serializable

This defines the sequence of data elements which provide the statistics on a per fault type basis. Occurrences is the number of separate instances of this fault during the period. MaxDuration and TotalDuration are the number of seconds duration of the longest fault and the cumulative total during the period. NumberOfClientsAffected is the number of clients informed of the fault by the Framework.

See Also:
Serialized Form

Constructor Summary
FaultStats()
          Creates a new FaultStats instance.
FaultStats(org.csapi.jr.se.fw.InterfaceFault _fault, int _occurrences, int _maxDuration, int _totalDuration, int _numberOfClientsAffected)
          Creates a new FaultStats instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 org.csapi.jr.se.fw.InterfaceFault getFault()
          This method returns a fault.
 int getMaxDuration()
          This method returns a maxDuration.
 int getNumberOfClientsAffected()
          This method returns a numberOfClientsAffected.
 int getOccurrences()
          This method returns a occurrences.
 int getTotalDuration()
          This method returns a totalDuration.
 int hashCode()
          Returns a hashcode value for the object.
 void setFault(org.csapi.jr.se.fw.InterfaceFault fault)
          This method sets a fault.
 void setMaxDuration(int maxDuration)
          This method sets a maxDuration.
 void setNumberOfClientsAffected(int numberOfClientsAffected)
          This method sets a numberOfClientsAffected.
 void setOccurrences(int occurrences)
          This method sets a occurrences.
 void setTotalDuration(int totalDuration)
          This method sets a totalDuration.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaultStats

public FaultStats()
Creates a new FaultStats instance.


FaultStats

public FaultStats(org.csapi.jr.se.fw.InterfaceFault _fault,
                  int _occurrences,
                  int _maxDuration,
                  int _totalDuration,
                  int _numberOfClientsAffected)
Creates a new FaultStats instance.

Parameters:
_fault -
_occurrences - The number of separate instances of this fault
_maxDuration - The number of seconds duration of the longest fault
_totalDuration - The cumulative duration (all occurrences)
_numberOfClientsAffected - The number of clients informed of the fault by the Fw
Method Detail

getFault

public org.csapi.jr.se.fw.InterfaceFault getFault()
This method returns a fault.

Returns:
a org.csapi.jr.se.fw.InterfaceFault value

getOccurrences

public int getOccurrences()
This method returns a occurrences.

Returns:
a int value

getMaxDuration

public int getMaxDuration()
This method returns a maxDuration.

Returns:
a int value

getTotalDuration

public int getTotalDuration()
This method returns a totalDuration.

Returns:
a int value

getNumberOfClientsAffected

public int getNumberOfClientsAffected()
This method returns a numberOfClientsAffected.

Returns:
a int value

setFault

public void setFault(org.csapi.jr.se.fw.InterfaceFault fault)
This method sets a fault.


setOccurrences

public void setOccurrences(int occurrences)
This method sets a occurrences.


setMaxDuration

public void setMaxDuration(int maxDuration)
This method sets a maxDuration.


setTotalDuration

public void setTotalDuration(int totalDuration)
This method sets a totalDuration.


setNumberOfClientsAffected

public void setNumberOfClientsAffected(int numberOfClientsAffected)
This method sets a numberOfClientsAffected.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object