org.bss.esb.management
Class EsbRouterMonitor

java.lang.Object
  extended byorg.bss.esb.management.EsbRouterMonitor
All Implemented Interfaces:
EsbRouterMonitorMBean, java.io.Serializable

public class EsbRouterMonitor
extends java.lang.Object
implements EsbRouterMonitorMBean

This is the implementation class for the EsbRouterMonitorMBean.

Version:
1.0
Author:
Balwinder Sodhi
See Also:
Serialized Form

Field Summary
static java.lang.String MBEAN_TYPE
          Type of this MBean.
 
Constructor Summary
EsbRouterMonitor(EsbRouter router, javax.naming.InitialContext ic)
          Constructor for this class.
 
Method Summary
 long getHighestTime()
           
 long getLowestTime()
           
 int getMessageCount()
           
 java.lang.String getRoutingTableLocation()
           
 void registerMBean()
          Registers this MBean instance with the server.
 void resetTimings()
           
 void setRoutingTableLocation(java.lang.String path)
           
 void unregister()
          Unregisters this MBean instance from the server.
 void updateRoutingTable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MBEAN_TYPE

public static final java.lang.String MBEAN_TYPE
Type of this MBean.

See Also:
Constant Field Values
Constructor Detail

EsbRouterMonitor

public EsbRouterMonitor(EsbRouter router,
                        javax.naming.InitialContext ic)
                 throws javax.naming.NamingException
Constructor for this class. It looks up the MBeanHome from the server and registers this MBean instance with the server.

Parameters:
router - The EsbRouter instance that will be managed by this MBean.
ic - The JNDI initial naming context.
Throws:
javax.naming.NamingException
Method Detail

getHighestTime

public long getHighestTime()
Specified by:
getHighestTime in interface EsbRouterMonitorMBean
See Also:
{@link EsbRouter#getHighestTime()}

getLowestTime

public long getLowestTime()
Specified by:
getLowestTime in interface EsbRouterMonitorMBean
See Also:
{@link EsbRouter#getLowestTime()}

getMessageCount

public int getMessageCount()
Specified by:
getMessageCount in interface EsbRouterMonitorMBean
See Also:
{@link EsbRouter#getMessageCount()}

resetTimings

public void resetTimings()
Specified by:
resetTimings in interface EsbRouterMonitorMBean
See Also:
{@link EsbRouter#getHighestTime()}

updateRoutingTable

public void updateRoutingTable()
                        throws javax.management.MBeanException
Specified by:
updateRoutingTable in interface EsbRouterMonitorMBean
Throws:
javax.management.MBeanException
See Also:
{@link EsbRouter#updateRoutingTable()}

registerMBean

public void registerMBean()
Registers this MBean instance with the server.


unregister

public void unregister()
Unregisters this MBean instance from the server.

Specified by:
unregister in interface EsbRouterMonitorMBean

getRoutingTableLocation

public java.lang.String getRoutingTableLocation()
Specified by:
getRoutingTableLocation in interface EsbRouterMonitorMBean
See Also:
{@link EsbRouter#getRoutingTableLocation()}

setRoutingTableLocation

public void setRoutingTableLocation(java.lang.String path)
Specified by:
setRoutingTableLocation in interface EsbRouterMonitorMBean
See Also:
{@link EsbRouter#setRoutingTableLocation(String)}


Copyright © 2005 Balwinder Sodhi. All Rights Reserved.