org.jboss.jmx.client
Class ConnectorFactoryService
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--org.jboss.util.ServiceMBeanSupport
|
+--org.jboss.jmx.client.ConnectorFactoryService
- All Implemented Interfaces:
- ConnectorFactoryServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, Service, ServiceMBean
- public class ConnectorFactoryService
- extends ServiceMBeanSupport
- implements ConnectorFactoryServiceMBean
Factory delivering a list of servers and its available protocol connectors
and after selected to initiate the connection
This is just the (incomplete) interface of it
- Author:
- Andreas "Mad" Schaefer
Methods inherited from class org.jboss.util.ServiceMBeanSupport |
destroy, destroyService, getServer, getState, getStateString, init, nextSequenceNumber, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorFactoryService
public ConnectorFactoryService()
getConnectors
public java.util.Iterator getConnectors(java.util.Hashtable pProperties,
ConnectorFactoryImpl.IConnectorTester pTester)
- Description copied from interface:
ConnectorFactoryServiceMBean
- Look up for all registered JMX Connector at a given JNDI server
- Specified by:
getConnectors
in interface ConnectorFactoryServiceMBean
- Following copied from interface:
org.jboss.jmx.client.ConnectorFactoryServiceMBean
- Parameters:
pProperties
- List of properties defining the JNDI serverpTester
- Connector Tester implementation to be used- Returns:
- An iterator on the list of ConnectorNames representing
the found JMX Connectors
createConnection
public JMXConnector createConnection(ConnectorFactoryImpl.ConnectorName pConnector)
- Description copied from interface:
ConnectorFactoryServiceMBean
- Initiate a connection to the given server with the given protocol
- Specified by:
createConnection
in interface ConnectorFactoryServiceMBean
- Following copied from interface:
org.jboss.jmx.client.ConnectorFactoryServiceMBean
- Parameters:
pConnector
- Connector Name used to identify the remote JMX Connector- Returns:
- JMX Connector or null if server or protocol is not supported
removeConnection
public void removeConnection(ConnectorFactoryImpl.ConnectorName pConnector)
- Description copied from interface:
ConnectorFactoryServiceMBean
- Removes the given connection and frees the resources
- Specified by:
removeConnection
in interface ConnectorFactoryServiceMBean
- Following copied from interface:
org.jboss.jmx.client.ConnectorFactoryServiceMBean
- Parameters:
pConnector
- Connector Name used to identify the remote JMX Connector
getObjectName
public javax.management.ObjectName getObjectName(javax.management.MBeanServer pServer,
javax.management.ObjectName pName)
throws javax.management.MalformedObjectNameException
- Overrides:
getObjectName
in class ServiceMBeanSupport
getName
public java.lang.String getName()
- Specified by:
getName
in interface ServiceMBean
- Overrides:
getName
in class ServiceMBeanSupport
initService
protected void initService()
throws java.lang.Exception
- Overrides:
initService
in class ServiceMBeanSupport
startService
protected void startService()
throws java.lang.Exception
- Overrides:
startService
in class ServiceMBeanSupport
stopService
protected void stopService()
- Overrides:
stopService
in class ServiceMBeanSupport
Copyright © 2000 The JBoss Organization. All Rights Reserved.