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
Method Summary |
JMXConnector |
createConnection(java.lang.String pServer,
java.lang.String pProtocol)
Initiate a connection to the given server with the given
protocol |
java.lang.String |
getName()
|
javax.management.ObjectName |
getObjectName(javax.management.MBeanServer pServer,
javax.management.ObjectName pName)
|
java.util.Collection |
getProtocols(java.lang.String pServer)
Returns a list of available protocols (connectors) |
java.util.Collection |
getServers(java.lang.String pProtocol)
Returns a list of available servers |
protected void |
initService()
|
void |
removeConnection(java.lang.String pServer,
java.lang.String pProtocol)
Removes the given connection and frees the resources |
protected void |
startService()
|
protected void |
stopService()
|
Methods inherited from class org.jboss.util.ServiceMBeanSupport |
destroy, destroyService, getState, getStateString, init, 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()
getServers
public java.util.Collection getServers(java.lang.String pProtocol)
- Returns a list of available servers
- Specified by:
getServers
in interface ConnectorFactoryServiceMBean
- Parameters:
pProtocol
- Servers supporting this protocol if not null
or empty otherwise it will be ignoredpServerQuery
- Query instance to filter the list of servers- Returns:
- A collection of available servers
names/identifications (String)
getProtocols
public java.util.Collection getProtocols(java.lang.String pServer)
- Returns a list of available protocols (connectors)
- Specified by:
getProtocols
in interface ConnectorFactoryServiceMBean
- Parameters:
pServer
- Server name/identification to look up- Returns:
- A collection of available protocols (String)
createConnection
public JMXConnector createConnection(java.lang.String pServer,
java.lang.String pProtocol)
- Initiate a connection to the given server with the given
protocol
- Specified by:
createConnection
in interface ConnectorFactoryServiceMBean
- Parameters:
pServer
- Server name/identification to connect topProtocol
- Protocol to use
removeConnection
public void removeConnection(java.lang.String pServer,
java.lang.String pProtocol)
- Removes the given connection and frees the resources
- Specified by:
removeConnection
in interface ConnectorFactoryServiceMBean
- Parameters:
pSever
- Server name/identification of the connectinopProtocol
- Protocol used
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.