public class MyAccountMBeanImpl extends StandardMBean implements MyAccountMBean
Modifier and Type | Field and Description |
---|---|
protected RMAccountsManager |
accountsManager |
Modifier | Constructor and Description |
---|---|
protected |
MyAccountMBeanImpl(Class<?> mbeanInterface,
RMAccountsManager accountsManager)
Creates a new instance of this class.
|
|
MyAccountMBeanImpl(RMAccountsManager accountsManager) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
int |
getProvidedNodesCount()
Returns the number of provided nodes.
|
long |
getProvidedNodeTime()
The amount of time in milliseconds the current user has offered resources to the Resource Manager.
|
long |
getUsedNodeTime()
The amount of time in milliseconds other users have spent in using the resources of the current user.
|
protected RMAccount |
internalGetAccount()
Sub-classes may override this method to return null values.
|
cacheMBeanInfo, 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
protected final RMAccountsManager accountsManager
public MyAccountMBeanImpl(RMAccountsManager accountsManager) throws NotCompliantMBeanException
NotCompliantMBeanException
protected MyAccountMBeanImpl(Class<?> mbeanInterface, RMAccountsManager accountsManager) throws NotCompliantMBeanException
mbeanInterface
- The interface of the MBeanaccountsManager
- the accounts managerNotCompliantMBeanException
- if the MyAccountMBean
interface does not follow
JMX design patterns for Management Interfaces, or if this does not
implement the specified interface.public long getUsedNodeTime()
MyAccountMBean
getUsedNodeTime
in interface MyAccountMBean
public long getProvidedNodeTime()
MyAccountMBean
getProvidedNodeTime
in interface MyAccountMBean
public int getProvidedNodesCount()
MyAccountMBean
getProvidedNodesCount
in interface MyAccountMBean
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute
in interface DynamicMBean
getAttribute
in class StandardMBean
AttributeNotFoundException
MBeanException
ReflectionException
public AttributeList getAttributes(String[] attributes)
getAttributes
in interface DynamicMBean
getAttributes
in class StandardMBean
protected RMAccount internalGetAccount()