|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceBindingStore
SPI through which ServiceBindingManager
interacts with a store
of service binding metadata.
Method Summary | |
---|---|
void |
addServiceBinding(String serverName,
ServiceBindingMetadata binding)
Add a ServiceBinding to the store for the given serverName. |
String |
getDefaultHostName(String serverName)
Gets the default value to use as the host name for the given serverName. |
int |
getDefaultPortOffset(String serverName)
Gets the offset from a base value that by default should be added to port values for a given serverName. |
ServiceBinding |
getServiceBinding(String serverName,
String serviceName,
String bindingName)
Obtain a ServiceBinding object for the given server name, target service and binding name. |
Set<ServiceBinding> |
getServiceBindings(String serverName)
Gets all service bindings for the given server name. |
void |
removeServiceBinding(String serverName,
ServiceBindingMetadata binding)
Remove a ServiceBinding from the store for the given serverName. |
Method Detail |
---|
ServiceBinding getServiceBinding(String serverName, String serviceName, String bindingName) throws NoSuchBindingException
serverName
- the name identifying the server instance
in which the service is running.serviceName
- the name of the servicebindingName
- the name of the binding, or null
to indicate
the default binding.
NoSuchBindingException
- if no matching binding exists
IllegalArgumentException
- if serverName is unknown to the store.Set<ServiceBinding> getServiceBindings(String serverName)
serverName
- the name identifying the server instance
in which the service is running. Cannot be null
.
IllegalArgumentException
- if serverName is unknown to the store.void addServiceBinding(String serverName, ServiceBindingMetadata binding) throws DuplicateServiceException, UnknownHostException
serverName
- the name identifying the JBoss server instance in
which the service is running.binding
- metadata for the binding to add
DuplicateServiceException
- thrown if a configuration for the
UnknownHostException
- if the host specified by the metadata is unknown
IllegalArgumentException
- if serverName is unknown to the store.void removeServiceBinding(String serverName, ServiceBindingMetadata binding)
serverName
- the name identifying the JBoss server instance in
which the service is running.binding
- the binding
IllegalArgumentException
- if serverName is unknown to the store.int getDefaultPortOffset(String serverName)
serverName
- the name of the binding set
IllegalArgumentException
- if serverName is unknown to the store.String getDefaultHostName(String serverName)
serverName
- the name of the binding set
IllegalArgumentException
- if serverName is unknown to the store.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |