org.jboss.jmx.client
Class ConnectorFactoryImpl

java.lang.Object
  |
  +--org.jboss.jmx.client.ConnectorFactoryImpl

public class ConnectorFactoryImpl
extends java.lang.Object

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

Constructor Summary
ConnectorFactoryImpl(javax.management.MBeanServer pServer)
           
 
Method Summary
 JMXConnector createConnection(java.lang.String pServer, java.lang.String pProtocol)
          Initiate a connection to the given server with the given protocol
 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
 void removeConnection(java.lang.String pServer, java.lang.String pProtocol)
          Removes the given connection and frees the resources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorFactoryImpl

public ConnectorFactoryImpl(javax.management.MBeanServer pServer)
Method Detail

getServers

public java.util.Collection getServers(java.lang.String pProtocol)
Returns a list of available servers
Parameters:
pProtocol - Servers supporting this protocol if not null or empty otherwise it will be ignored
pServerQuery - 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)
Parameters:
pServer - Server name/identification to look up if not null or empty otherwise it will be ignored
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
Parameters:
pServer - Server name/identification to connect to
pProtocol - Protocol to use
Returns:
JMX Connector or null if server or protocol is not available

removeConnection

public void removeConnection(java.lang.String pServer,
                             java.lang.String pProtocol)
Removes the given connection and frees the resources
Parameters:
pSever - Server name/identification of the connectino
pProtocol - Protocol used


Copyright © 2000 The JBoss Organization. All Rights Reserved.