@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
RemoteException
String getVersion() throws RemoteException
RemoteException
String getCopyright() throws RemoteException
RemoteException
long getStartTime() throws RemoteException
RemoteException
long getElapsedTime() throws RemoteException
RemoteException
int getRmiPort() throws RemoteException
RemoteException
long getCommittedTransactionCount() throws RemoteException
RemoteException
long getRollbackCount() throws RemoteException
RemoteException
Management.VolumeInfo[] getVolumes() throws RemoteException
RemoteException
String transactionReport(int max) throws RemoteException
max
- Maximum number of transactions to report on.max
longest-running transactions.RemoteException
String getDefaultCommitPolicy() throws RemoteException
CommitPolicy
RemoteException
void setDefaultCommitPolicy(String policyName) throws RemoteException
CommitPolicy
. The policy name
must be one of "hard", "group" or "commit".policyName
- name of the CommitPolicy
to set.RemoteException
boolean 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.RemoteException
void 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
.RemoteException
boolean isUpdateSuspended() throws RemoteException
true
if Persistit will suspend any attempt to update
a Volume
; otherwise false
.RemoteException
void setUpdateSuspended(boolean suspended) throws RemoteException
suspended
- RemoteException
void flushAndForce() throws RemoteException
Persistit.flush()
and Persistit.force()
.RemoteException
String execute(String commandLine) throws RemoteException
launch(String)
method initiates the task in a new thread and
returns immediately.commandLine
- RemoteException
String launch(String commandLine) throws RemoteException
execute(String)
method completes the task before returning.commandLine
- RemoteException
Management.VolumeInfo volumeByName(String volumeName) throws RemoteException
volumeName
- name of the volume to lookupRemoteException
Copyright © 2025 Open Identity Platform Community. All rights reserved.