org.mc4j.ems.impl.jmx.connection.support.providers
Class AbstractConnectionProvider

java.lang.Object
  extended by org.mc4j.ems.impl.jmx.connection.support.providers.AbstractConnectionProvider
Direct Known Subclasses:
InternalVMProvider, JBossConnectionProvider, JMXRemotingConnectionProvider, Oc4jConnectionProvider, PramatiConnectionProvider, WeblogicConnectionProvider, WebsphereConnectionProvider

public abstract class AbstractConnectionProvider
extends java.lang.Object

This Node is the abstract node representing a connection to a JMX Server.

Version:
$Revision: 581 $($Author: ghinkl $ / $Date: 2006-12-28 12:51:31 -0500 (Thu, 28 Dec 2006) $)
Author:
Greg Hinkle (ghinkle@users.sourceforge.net), January 2002

Field Summary
protected  boolean connectionFailure
           
protected  java.util.List<ConnectionListener> connectionListeners
           
protected  int connectionRoundTrips
           
protected  ConnectionSettings connectionSettings
           
protected  DConnection existingConnection
           
 
Constructor Summary
AbstractConnectionProvider()
           
 
Method Summary
 void addConnectionListener(ConnectionListener connectionListener)
           
 int compareTo(java.lang.Object o)
           
 EmsConnection connect()
           
 void disconnect()
           
protected abstract  void doConnect()
           
protected  void doDisconnect()
           
 ConnectionSettings getConnectionSettings()
           
 EmsConnection getExistingConnection()
           
 long getFailures()
           
abstract  javax.management.MBeanServer getMBeanServer()
           
 java.lang.Object getMEJB()
           
 long getRoundTrips()
           
 StatsProxy getStatsProxy()
           
 void initialize(ConnectionSettings settings)
           
 boolean isConnected()
           
 void removeConnectionListener(ConnectionListener connectionListener)
           
 void setConnected(boolean connected)
           
 void setStatsProxy(StatsProxy statsProxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionSettings

protected ConnectionSettings connectionSettings

connectionFailure

protected boolean connectionFailure

existingConnection

protected DConnection existingConnection

connectionListeners

protected java.util.List<ConnectionListener> connectionListeners

connectionRoundTrips

protected int connectionRoundTrips
Constructor Detail

AbstractConnectionProvider

public AbstractConnectionProvider()
Method Detail

getMBeanServer

public abstract javax.management.MBeanServer getMBeanServer()

getMEJB

public java.lang.Object getMEJB()

getConnectionSettings

public ConnectionSettings getConnectionSettings()

compareTo

public int compareTo(java.lang.Object o)

initialize

public void initialize(ConnectionSettings settings)

isConnected

public boolean isConnected()

setConnected

public void setConnected(boolean connected)
                  throws java.lang.Exception
Throws:
java.lang.Exception

connect

public final EmsConnection connect()

getExistingConnection

public EmsConnection getExistingConnection()

doConnect

protected abstract void doConnect()
                           throws java.lang.Exception
Throws:
java.lang.Exception

disconnect

public final void disconnect()

doDisconnect

protected void doDisconnect()
                     throws java.lang.Exception
Throws:
java.lang.Exception

addConnectionListener

public void addConnectionListener(ConnectionListener connectionListener)

removeConnectionListener

public void removeConnectionListener(ConnectionListener connectionListener)

getRoundTrips

public long getRoundTrips()

getFailures

public long getFailures()

getStatsProxy

public StatsProxy getStatsProxy()

setStatsProxy

public void setStatsProxy(StatsProxy statsProxy)