@MXBean public interface ManagementMXBean
| Modifier and Type | Field and Description |
|---|---|
static String |
MXBEAN_NAME |
| Modifier and Type | Method and Description |
|---|---|
String |
execute(String commandLine)
Use a simple command-line processor to invoke a task.
|
void |
flushAndForce()
Flush and sync all dirty data in Persistit by invoking
Persistit.flush() and Persistit.force(). |
long |
getCommittedTransactionCount()
Return the aggregate number of transactions committed since Persistit was
initialized
|
String |
getCopyright()
Return the copyright notice for the current Persistit instance.
|
String |
getDefaultCommitPolicy() |
long |
getElapsedTime()
Return the elapsed time since startup in milliseconds
|
int |
getRmiPort()
Return the port on which a local RMI server has been registered, or -1 if
not registered.
|
long |
getRollbackCount()
Return the aggregate number of transaction rollback events since
Persistit was initialized
|
long |
getStartTime()
Return the system time at which Persistit was initialized.
|
String |
getVersion()
Return the version name of the current Persistit instance.
|
Management.VolumeInfo[] |
getVolumes()
Return an array of information of all volumes that Persistit knows about,
or null if there are none.
|
boolean |
isInitialized()
Indicate whether Persistit is currently in the initialized state.
|
boolean |
isShutdownSuspended()
Indicate whether Persistit will suspend its shutdown activities on
invocation of
Persistit.close(). |
boolean |
isUpdateSuspended()
Indicate whether Persistit is suspending all update operations.
|
String |
launch(String commandLine)
Use a simple command-line processor to start a task.
|
void |
setDefaultCommitPolicy(String policyName)
Modify the current default
CommitPolicy. |
void |
setShutdownSuspended(boolean suspended)
Control whether Persistit will suspend its shutdown activities on
invocation of
Persistit.close(). |
void |
setUpdateSuspended(boolean suspended)
Control whether Persistit will suspend all update operations.
|
String |
transactionReport(int max) |
Management.VolumeInfo |
volumeByName(String volumeName)
Query information about a specific volume from it's name.
|
static final String MXBEAN_NAME
boolean isInitialized()
throws RemoteException
RemoteExceptionString getVersion() throws RemoteException
RemoteExceptionString getCopyright() throws RemoteException
RemoteExceptionlong getStartTime()
throws RemoteException
RemoteExceptionlong getElapsedTime()
throws RemoteException
RemoteExceptionint getRmiPort()
throws RemoteException
RemoteExceptionlong getCommittedTransactionCount()
throws RemoteException
RemoteExceptionlong getRollbackCount()
throws RemoteException
RemoteExceptionManagement.VolumeInfo[] getVolumes() throws RemoteException
RemoteExceptionString transactionReport(int max) throws RemoteException
max - Maximum number of transactions to report on.max longest-running transactions.RemoteExceptionString getDefaultCommitPolicy() throws RemoteException
CommitPolicyRemoteExceptionvoid setDefaultCommitPolicy(String policyName) throws RemoteException
CommitPolicy. The policy name
must be one of "hard", "group" or "commit".policyName - name of the CommitPolicy to set.RemoteExceptionboolean isShutdownSuspended()
throws RemoteException
Persistit.close(). This flag is
intended for use by management tools that need to keep Persistit open
even when the application has requested it to close so that the final
state of the Persistit environment can be examined.true if Persistit will wait when attempting to
close; false if the close operation
will not be suspended.RemoteExceptionvoid setShutdownSuspended(boolean suspended)
throws RemoteException
Persistit.close(). This flag is
intended for use by management tools that need to keep Persistit open
even when the application has requested it to close so that the final
state of the Persistit environment can be examined.suspended - true to specify that Persistit will wait when
attempting to close; otherwise false.RemoteExceptionboolean isUpdateSuspended()
throws RemoteException
true if Persistit will suspend any attempt to update
a Volume; otherwise false.RemoteExceptionvoid setUpdateSuspended(boolean suspended)
throws RemoteException
suspended - RemoteExceptionvoid flushAndForce()
throws RemoteException
Persistit.flush() and Persistit.force().RemoteExceptionString execute(String commandLine) throws RemoteException
launch(String) method initiates the task in a new thread and
returns immediately.commandLine - RemoteExceptionString launch(String commandLine) throws RemoteException
execute(String) method completes the task before returning.commandLine - RemoteExceptionManagement.VolumeInfo volumeByName(String volumeName) throws RemoteException
volumeName - name of the volume to lookupRemoteExceptionCopyright © 2025 Open Identity Platform Community. All rights reserved.