站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 server API Documentation 英文版文档

ConnectorFactoryService (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


org.jboss.jmx.connector
Class ConnectorFactoryService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.jmx.connector.ConnectorFactoryService
All Implemented Interfaces:
ConnectorFactoryServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class ConnectorFactoryService
extends org.jboss.system.ServiceMBeanSupport
implements ConnectorFactoryServiceMBean

Factory delivering a list of servers and its available protocol connectors and after selected to initiate the connection

Version:
$Revision: 1.8 $
Author:
Andreas "Mad" Schaefer

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.jmx.connector.ConnectorFactoryServiceMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
ConnectorFactoryService()
           
 
Method Summary
 RemoteMBeanServer createConnection(ConnectorFactoryImpl.ConnectorName pConnector)
          Initiate a connection to the given server with the given protocol
 Iterator getConnectors(Hashtable pProperties, ConnectorFactoryImpl.IConnectorTester pTester)
          Look up for all registered JMX Connector at a given JNDI server
 String getEJBAdaptorName()
           
 String getJMSName()
           
 int getNotificationType()
           
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer pServer, javax.management.ObjectName pName)
           
 void removeConnection(ConnectorFactoryImpl.ConnectorName pConnector)
          Removes the given connection and frees the resources
 void setEJBAdaptorName(String pName)
          Sets the JNDI Name of the EJB-Adaptor
 void setJMSName(String pName)
          Sets the JMS Queue Factory Name which allows the server to send the notifications asynchronous to the client
 void setNotificationType(int pNotificationType)
           
protected  void startService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

ConnectorFactoryService

public ConnectorFactoryService()
Method Detail

getNotificationType

public int getNotificationType()
Specified by:
getNotificationType in interface ConnectorFactoryServiceMBean

setNotificationType

public void setNotificationType(int pNotificationType)
Specified by:
setNotificationType in interface ConnectorFactoryServiceMBean

getJMSName

public String getJMSName()
Specified by:
getJMSName in interface ConnectorFactoryServiceMBean
Returns:
JMS Queue Name and if not null then JMS will be used

setJMSName

public void setJMSName(String pName)
Sets the JMS Queue Factory Name which allows the server to send the notifications asynchronous to the client

Specified by:
setJMSName in interface ConnectorFactoryServiceMBean
Parameters:
pName - If null the notification will be transferred by using RMI Callback objects otherwise it will use JMS

getEJBAdaptorName

public String getEJBAdaptorName()
Specified by:
getEJBAdaptorName in interface ConnectorFactoryServiceMBean
Returns:
EJB Adaptor JNDI Name used by the EJB-Connector

setEJBAdaptorName

public void setEJBAdaptorName(String pName)
Sets the JNDI Name of the EJB-Adaptor

Specified by:
setEJBAdaptorName in interface ConnectorFactoryServiceMBean
Parameters:
pName - If null the default JNDI name (ejb/jmx/ejb/adaptor) will be used for EJB-Connectors otherwise it will use this one

getConnectors

public Iterator getConnectors(Hashtable pProperties,
                              ConnectorFactoryImpl.IConnectorTester pTester)
Look up for all registered JMX Connector at a given JNDI server

Specified by:
getConnectors in interface ConnectorFactoryServiceMBean
Parameters:
pProperties - List of properties defining the JNDI server
pTester - Connector Tester implementation to be used
Returns:
An iterator on the list of ConnectorNames representing the found JMX Connectors

createConnection

public RemoteMBeanServer createConnection(ConnectorFactoryImpl.ConnectorName pConnector)
Initiate a connection to the given server with the given protocol

Specified by:
createConnection in interface 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)
Removes the given connection and frees the resources

Specified by:
removeConnection in interface ConnectorFactoryServiceMBean
Parameters:
pConnector - Connector Name used to identify the remote JMX Connector

getObjectName

protected javax.management.ObjectName getObjectName(javax.management.MBeanServer pServer,
                                                    javax.management.ObjectName pName)
                                             throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException

startService

protected void startService()
                     throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.