org.jboss.jmx.client
Interface ConnectorFactoryServiceMBean

All Superinterfaces:
Service, ServiceMBean
All Known Implementing Classes:
ConnectorFactoryService

public interface ConnectorFactoryServiceMBean
extends ServiceMBean

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

Field Summary
static java.lang.String OBJECT_NAME
           
 
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 interface org.jboss.util.ServiceMBean
getName, getState, getStateString
 
Methods inherited from interface org.jboss.util.Service
destroy, init, start, stop
 

Field Detail

OBJECT_NAME

public static final java.lang.String OBJECT_NAME
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
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

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.