ch.syabru.nagios
Class MockMBeanImpl

java.lang.Object
  extended by javax.management.StandardMBean
      extended by ch.syabru.nagios.MockMBeanImpl
All Implemented Interfaces:
MockMBean, DynamicMBean, MBeanRegistration

public class MockMBeanImpl
extends StandardMBean
implements MockMBean

Mock MBean.

Author:
Felix Roethenbacher

Constructor Summary
MockMBeanImpl(int state, String statusMsg, BigInteger bigIntegerState)
          C'tor.
 
Method Summary
 BigInteger getBigIntegerState()
          Get big integer state.
 int getState()
          Get state.
 String getStatusMsg()
          Get status message.
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockMBeanImpl

public MockMBeanImpl(int state,
                     String statusMsg,
                     BigInteger bigIntegerState)
C'tor.

Parameters:
state - State.
statusMsg - Status message.
bigIntegerState - Big integer state.
Method Detail

getState

public int getState()
Description copied from interface: MockMBean
Get state.

Specified by:
getState in interface MockMBean
Returns:
State.

getStatusMsg

public String getStatusMsg()
Description copied from interface: MockMBean
Get status message.

Specified by:
getStatusMsg in interface MockMBean
Returns:
Status message.

getBigIntegerState

public BigInteger getBigIntegerState()
Description copied from interface: MockMBean
Get big integer state.

Specified by:
getBigIntegerState in interface MockMBean
Returns:
Big integer state.


Copyright © 2009-2011 Syabru. All Rights Reserved.