org.jboss.services.binding.managed
Class ServiceBindingManagementObject

java.lang.Object
  extended by org.jboss.services.binding.managed.ServiceBindingManagementObject

public class ServiceBindingManagementObject
extends Object

Provide a management interface to the overall ServiceBindingManager system.

Version:
$Revision: $
Author:
Brian Stansberry

Constructor Summary
ServiceBindingManagementObject(String serverName, Set<ServiceBindingSet> bindingSets, Set<ServiceBindingMetadata> standardBindings)
          Create a new ServiceBindingManager.
 
Method Summary
 String getActiveBindingSetName()
          Gets the value of the serverName param the ServiceBindingManager should pass to ServiceBindingStore when requesting bindings.
 Set<ServiceBindingSet> getBindingSets()
          Gets the available ServiceBindingSets.
 ServiceBindingManager getServiceBindingManager()
           
 Map<String,Set<ServiceBinding>> getServiceBindings()
           
 Set<ServiceBindingMetadata> getStandardBindings()
          Gets the base set of bindings that should be associated with each binding set, but with that binding set's port offset applied to the port value.
 void setActiveBindingSetName(String name)
          Sets the value of the serverName param the ServiceBindingManager should pass to ServiceBindingStore when requesting bindings.
 void setBindingSets(Set<ServiceBindingSet> bindingSets)
          Sets the available ServiceBindingSets.
 void setStandardBindings(Set<ServiceBindingMetadata> bindings)
          Sets the base set of bindings that should be associated with each binding set, but with that binding set's port offset applied to the port value.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceBindingManagementObject

public ServiceBindingManagementObject(String serverName,
                                      Set<ServiceBindingSet> bindingSets,
                                      Set<ServiceBindingMetadata> standardBindings)
Create a new ServiceBindingManager.

Parameters:
serverName -
bindingSets -
standardBindings -
Method Detail

getServiceBindingManager

public ServiceBindingManager getServiceBindingManager()

getActiveBindingSetName

public String getActiveBindingSetName()
Gets the value of the serverName param the ServiceBindingManager should pass to ServiceBindingStore when requesting bindings.

Returns:
name of the set of bindings this server uses

setActiveBindingSetName

public void setActiveBindingSetName(String name)
Sets the value of the serverName param the ServiceBindingManager should pass to ServiceBindingStore when requesting bindings. param name name of the set of bindings this server uses


getServiceBindings

public Map<String,Set<ServiceBinding>> getServiceBindings()

getBindingSets

public Set<ServiceBindingSet> getBindingSets()
Gets the available ServiceBindingSets.

Returns:
the binding sets. Will not return null

setBindingSets

public void setBindingSets(Set<ServiceBindingSet> bindingSets)
                    throws UnknownHostException,
                           DuplicateServiceException
Sets the available ServiceBindingSets.

Parameters:
bindingSets - the binding sets
Throws:
DuplicateServiceException
UnknownHostException

getStandardBindings

public Set<ServiceBindingMetadata> getStandardBindings()
Gets the base set of bindings that should be associated with each binding set, but with that binding set's port offset applied to the port value.

Returns:
the set of base bindings

setStandardBindings

public void setStandardBindings(Set<ServiceBindingMetadata> bindings)
                         throws UnknownHostException,
                                DuplicateServiceException
Sets the base set of bindings that should be associated with each binding set, but with that binding set's port offset applied to the port value.

Parameters:
bindings - the set of base bindings
Throws:
DuplicateServiceException
UnknownHostException

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.