|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mfwk.cib.sdk.states.CIBAvailabilityStatusStateImpl
Provides a default implementation for a CIBAvailabilityStatusState object. This implementation is fully based on the Java-ES MF Instrumentation SDK.
Field Summary |
Fields inherited from interface com.sun.mfwk.cib.states.CIBAvailabilityStatusState |
CONGESTED, DEGRADED, NORMAL |
Constructor Summary | |
CIBAvailabilityStatusStateImpl(javax.management.MBeanServerConnection connection,
java.util.Map map)
Constructor |
Method Summary | |
void |
destroy()
destroy the states and clean the states objects/values when needed, close all the communications. |
long |
getDegradedTime()
Returns the time on which the Availability status entered into a Degraded state |
long |
getLastChange()
Returns a last change time of the Availabilit status If the attribute could not be retrieved then the last change is the current system time If the provider is not initialized then the last change time is -1 |
int |
getState()
Returns the current availability status of the object If the availability status could not be retrieve then the state is CIBOperationalStatusState.FAILED If the provider is not initialized or a communication failure occurs then the availability status is FAILED; |
void |
init()
Initialize the communication mechanism. |
java.lang.String |
toStateString()
Returns the availability status into a human readable String |
java.lang.String |
toString()
Returns the global status object attributes into a human readable String |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CIBAvailabilityStatusStateImpl(javax.management.MBeanServerConnection connection, java.util.Map map)
connection
- MBeanServerConnectionmap
- MapMethod Detail |
public long getLastChange()
getLastChange
in interface CIBState
public int getState()
getState
in interface CIBState
public java.lang.String toStateString()
toStateString
in interface CIBState
public long getDegradedTime()
getDegradedTime
in interface CIBAvailabilityStatusState
public void init() throws CIBIOException, CIBException
init
in interface CIBProvider
CIBException
CIBIOException
public void destroy() throws CIBIOException, CIBIOException
destroy
in interface CIBProvider
CIBIOException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |