org.bitrepository.monitoringservice.status
Class ComponentStatus

java.lang.Object
  extended by org.bitrepository.monitoringservice.status.ComponentStatus

public class ComponentStatus
extends Object

Class to encapsulate the status of a component.


Constructor Summary
ComponentStatus()
          Constructor
 
Method Summary
 void alarmed()
           
 String getInfo()
           
 XMLGregorianCalendar getLastReply()
           
 int getNumberOfMissingReplies()
           
 ComponentStatusCode getStatus()
           
 Boolean hasAlarmed()
           
 void markAsUnresponsive()
          Marks the component as unresponsive.
 void updateReplys()
          Add another missing reply.
 void updateStatus(ResultingStatus resultingStatus)
          Update the status of a component with the given results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentStatus

public ComponentStatus()
Constructor

Method Detail

updateStatus

public void updateStatus(ResultingStatus resultingStatus)
Update the status of a component with the given results.


updateReplys

public void updateReplys()
Add another missing reply.


markAsUnresponsive

public void markAsUnresponsive()
Marks the component as unresponsive.


getNumberOfMissingReplies

public int getNumberOfMissingReplies()
Returns:
The number of missing replies in a row.

getStatus

public ComponentStatusCode getStatus()
Returns:
The code for the latest reply.

getLastReply

public XMLGregorianCalendar getLastReply()
Returns:
The date for the latest reply.

getInfo

public String getInfo()
Returns:
The latest status message.

hasAlarmed

public Boolean hasAlarmed()

alarmed

public void alarmed()


Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.