|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.management.ManagementManager
Management interface for JPOX. Management operations and attributes
are exposed through this interface that holds statistics linked to a PMF instance.
The mechanics for starting and stopping JMX servers are not defined here,
and must be done by plug-ins, by providing the implementation of
ManagementServer
.
This Manager controls the lifecycle of management servers.
A management server is started when an instance of this class is created,
and its shutdown when the close operation is invoked
The management server startup is triggered when the Manager gets enabled.
Constructor Summary | |
ManagementManager(PMFContext pmfContext)
Constructor for Management |
Method Summary | |
void |
close()
Close a instance. |
void |
disable()
Disable the update of statistics |
void |
enable()
Enable the update of statistics |
PMFContext |
getPmfContext()
Accessor for the PMFContext |
long |
getStatisticValue(ManagementCategory cat)
Accessor for the current statistic value for the given category |
long[] |
getStatisticValues()
Accessor for the statistic values |
void |
increment(ManagementCategory cat)
Increment in one the statistics of the given category. |
void |
increment(ManagementCategory[] cats)
Increment in one the statistics of the given categories Before calling this method, it's recommended to check if the Manager is enabled in order to improve performance on disabled cases. |
boolean |
isEnabled()
Whether this Manager is enabled |
void |
reset()
Reset the statistics values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ManagementManager(PMFContext pmfContext)
pmfContext
- the pmfContext that owns this managementMethod Detail |
public void disable()
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic void enable()
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic boolean isEnabled()
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic void increment(ManagementCategory cat)
cat
- the management category
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic void increment(ManagementCategory[] cats)
cats
- the management categories
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic long getStatisticValue(ManagementCategory cat)
cat
- the management category
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic long[] getStatisticValues()
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic void reset()
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic PMFContext getPmfContext()
javax.jdo.JDOFatalInternalException
- if the manager is closedpublic void close()
javax.jdo.JDOFatalInternalException
- if the manager is closed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |