public interface LogRuntimeMBean extends RuntimeMBean
| Modifier and Type | Method and Description |
|---|---|
void |
ensureLogOpened()
Ensures that that the output stream to the underlying is
opened if it got closed previously due to errors.
|
void |
flushLog()
Flushes the buffer to the log file on disk.
|
void |
forceLogRotation()
Forces the rotation of the underlying log immediately.
|
boolean |
isLogFileStreamOpened()
Gets the opened state of the log file stream represented by this instance.
|
addPropertyChangeListener, removePropertyChangeListenergetMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParentgetAttribute, getAttributes, invoke, setAttribute, setAttributespostDeregister, postRegister, preDeregister, preRegisteraddNotificationListener, getNotificationInfo, removeNotificationListenervoid forceLogRotation()
throws ManagementException
ManagementException - If there is an error during the log file rotation.void ensureLogOpened()
throws ManagementException
ManagementException - If the log could not be opened successfully.void flushLog()
throws ManagementException
ManagementException - If the log could not be flushed successfully.boolean isLogFileStreamOpened()