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

ServiceBindingManager (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.services.binding
Class ServiceBindingManager

java.lang.Object
  extended byorg.jboss.services.binding.ServiceBindingManager
All Implemented Interfaces:
javax.management.MBeanRegistration, ServiceBindingManagerMBean

public class ServiceBindingManager
extends Object
implements javax.management.MBeanRegistration, ServiceBindingManagerMBean

The services configuration binding manager mbean implementation.

The ServiceBindingManager enables the centralized management of ports, by service. The port configuration store is abstracted out using the ServicesStore and ServicesStoreFactory interfaces. Note that this class does not implement the JBoss services lifecycle methods and hook its behavior off of those because this service is used to configure other services before any of the lifecycle methods are invoked.

Version:
$Revision: 1.7.6.1 $
Author:
Mike Finn., Scott.Stark@jboss.org

Constructor Summary
ServiceBindingManager()
           
 
Method Summary
 void applyServiceConfig(javax.management.ObjectName serviceName)
          Looks up the service config for the requested service using the server name bound to this mbean and invokes the configuration delegate to apply the bindings to the service.
 String getServerName()
           
 ServiceConfig getServiceConfig(javax.management.ObjectName serviceName)
          Looks up the service config for the given service using the server name bound to this mbean.
 String getStoreFactoryClassName()
           
 URL getStoreURL()
           
 void postDeregister()
           
 void postRegister(Boolean registrationDone)
           
 void preDeregister()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void setServerName(String serverName)
           
 void setStoreFactoryClassName(String storeFactoryClassName)
           
 void setStoreURL(URL storeURL)
          Set the string representation of the store URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceBindingManager

public ServiceBindingManager()
Method Detail

getServerName

public String getServerName()
Specified by:
getServerName in interface ServiceBindingManagerMBean

setServerName

public void setServerName(String serverName)
Specified by:
setServerName in interface ServiceBindingManagerMBean

getStoreFactoryClassName

public String getStoreFactoryClassName()
Specified by:
getStoreFactoryClassName in interface ServiceBindingManagerMBean

setStoreFactoryClassName

public void setStoreFactoryClassName(String storeFactoryClassName)
Specified by:
setStoreFactoryClassName in interface ServiceBindingManagerMBean

getStoreURL

public URL getStoreURL()
Specified by:
getStoreURL in interface ServiceBindingManagerMBean

setStoreURL

public void setStoreURL(URL storeURL)
Set the string representation of the store URL

Specified by:
setStoreURL in interface ServiceBindingManagerMBean

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws Exception
Specified by:
preRegister in interface javax.management.MBeanRegistration
Throws:
Exception

postRegister

public void postRegister(Boolean registrationDone)
Specified by:
postRegister in interface javax.management.MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface javax.management.MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface javax.management.MBeanRegistration

getServiceConfig

public ServiceConfig getServiceConfig(javax.management.ObjectName serviceName)
                               throws Exception
Looks up the service config for the given service using the server name bound to this mbean.

Specified by:
getServiceConfig in interface ServiceBindingManagerMBean
Parameters:
serviceName - the JMX ObjectName of the service
Returns:
ServiceConfig instance if found, null otherwise
Throws:
Exception

applyServiceConfig

public void applyServiceConfig(javax.management.ObjectName serviceName)
                        throws Exception
Looks up the service config for the requested service using the server name bound to this mbean and invokes the configuration delegate to apply the bindings to the service. If no config if found then this method is a noop.

Specified by:
applyServiceConfig in interface ServiceBindingManagerMBean
Parameters:
serviceName - the JMX ObjectName of the service
Throws:
Exception, - thrown on failure to apply an existing configuration
Exception


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