org.bitrepository.monitoringservice.status
Interface StatusStore

All Known Implementing Classes:
ComponentStatusStore

public interface StatusStore

Interface for the storage of statuses.


Method Summary
 Map<String,ComponentStatus> getStatusMap()
           
 void updateReplyCounts()
          Tells the store that new statuses have been requested from the components.
 void updateStatus(String componentID, ResultingStatus status)
          Updates the status of a given component.
 

Method Detail

updateStatus

void updateStatus(String componentID,
                  ResultingStatus status)
Updates the status of a given component.

Parameters:
componentID - The id of the component to update.
status - The resulting status for the given component.

updateReplyCounts

void updateReplyCounts()
Tells the store that new statuses have been requested from the components. This should increase the 'missingReplies' for each component, and whenever the component delivers its reply, then the 'missingReplies' are set to zero again.


getStatusMap

Map<String,ComponentStatus> getStatusMap()
Returns:
The mapping between components and their status.


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