com.atomikos.icatch.admin.jmx
Class JmxLogAdministrator

java.lang.Object
  extended by com.atomikos.icatch.admin.jmx.JmxLogAdministrator
All Implemented Interfaces:
LogAdministrator

public class JmxLogAdministrator
extends Object
implements LogAdministrator

Copyright © 2003 Atomikos. All rights reserved. A JMX LogAdministrator, implemented as a Singleton. The instance can be registered in the TSInitInfo for the JMX management to work. In addition, you should register a in instance of the JmxTransactionService MBean in your MBean server: that will make the administration functions available via JMX. Instances of the JmxTransactionService will collaborate with this class to perform the JMX administration of the pending transactions.


Constructor Summary
protected JmxLogAdministrator()
           
 
Method Summary
 void deregisterLogControl(LogControl control)
          Deregister (remove) a LogControl instance from the administrator.
static JmxLogAdministrator getInstance()
           
 LogControl getLogControl()
          Get the LogControl.
 void registerLogControl(LogControl control)
          Register (add) a LogControl instance to the administrator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxLogAdministrator

protected JmxLogAdministrator()
Method Detail

getInstance

public static JmxLogAdministrator getInstance()

registerLogControl

public void registerLogControl(LogControl control)
Description copied from interface: LogAdministrator
Register (add) a LogControl instance to the administrator. This method is typically called right after initialization of the transaction service.

Specified by:
registerLogControl in interface LogAdministrator
Parameters:
control - The LogControl instance.
See Also:
LogAdministrator.registerLogControl(com.atomikos.icatch.admin.LogControl)

getLogControl

public LogControl getLogControl()
Get the LogControl.

Returns:
LogControl, or null if unregistered.

deregisterLogControl

public void deregisterLogControl(LogControl control)
Description copied from interface: LogAdministrator
Deregister (remove) a LogControl instance from the administrator. This method is typically called at shutdown of the transaction service.

Specified by:
deregisterLogControl in interface LogAdministrator
Parameters:
control - The LogControl instance to remove. Does nothing if the control is not registered.
See Also:
LogAdministrator.deregisterLogControl(com.atomikos.icatch.admin.LogControl)