public interface Fabric
| Modifier and Type | Method and Description |
|---|---|
Fabric |
addExtension(java.lang.String name)
Adds an extension to the fabric configuration.
|
Fabric |
addExtension(java.net.URL location)
Adds an extension to the fabric configuration.
|
Fabric |
addProfile(java.lang.String name)
Adds a profile to the fabric configuration.
|
Fabric |
addProfile(java.net.URL location)
Adds a profile to the fabric configuration.
|
<T> T |
createTransportDispatcher(java.lang.Class<T> interfaze,
java.util.Map<java.lang.String,java.lang.Object> properties)
Creates and returns the dispatcher for a transport identified by the given interface.
|
Domain |
getDomain()
Returns the fabric domain
|
<T> T |
getSystemService(java.lang.Class<T> interfaze)
Returns the system service.
|
<T> Fabric |
registerSystemService(java.lang.Class<T> interfaze,
T instance)
Registers an instance as a system component.
|
Fabric |
start()
Starts the connection to the fabric.
|
Fabric |
startRuntime()
Starts the container runtime.
|
Fabric |
startTransports()
Starts the remote transports to receive requests.
|
Fabric |
stop()
Stops the connection to the fabric.
|
Fabric addProfile(java.lang.String name)
start().name - the profile nameFabric addProfile(java.net.URL location)
start().location - the profile locationFabric addExtension(java.lang.String name)
start().name - the extension nameFabric addExtension(java.net.URL location)
start().location - the extension locationFabric start() throws FabricException
FabricException - if there is an error connecting.Fabric startRuntime() throws FabricException
FabricException - if there is an error starting the runtime.Fabric startTransports() throws FabricException
FabricException - if there is an error starting the transports.Fabric stop() throws FabricException
FabricException - if there an error stopping the connection<T> T createTransportDispatcher(java.lang.Class<T> interfaze,
java.util.Map<java.lang.String,java.lang.Object> properties)
interfaze - the dispatcher interfaceproperties - optional transport properties<T> T getSystemService(java.lang.Class<T> interfaze)
interfaze - the service interface<T> Fabric registerSystemService(java.lang.Class<T> interfaze, T instance) throws FabricException
start()}.interfaze - the service interface of the instanceinstance - the instanceFabricException - if there is a registration errorDomain getDomain()