public interface ADEPT2ServiceExport
CommunicationService is
responsible for publishing services, i. e. to enable them to be called
remotely.| Modifier and Type | Method and Description |
|---|---|
boolean |
exportService(java.net.URI serviceURI,
java.lang.Class<? extends ADEPT2Service> serviceInterface,
ADEPT2Service service)
Enables the designated service identified by the designated URI to be
called remotely through the designated service interface.
|
ADEPT2Service |
getExportedService(java.net.URI remoteObjectIdentifier)
Returns the service associated with the given remote object identifier.
|
java.lang.Class<?> |
getRemoteInterfaceForExportedService(java.net.URI remoteObjectIdentifier)
Returns the remote interface to be used to access the service associated
with the given remote object identifier.
|
boolean |
isExportPrepared(java.net.URI remoteObjectIdentifier)
Returns whether the specified service identifier has been prepared by this
service export but has not been exported yet.
|
boolean |
isRegisteredService(java.net.URI remoteObjectIdentifier)
Returns if the specified service identifier is known to this service
export, that is whether this URI has been exported.
|
java.net.URI |
prepareServiceExport(java.lang.String serviceType,
java.lang.String simpleServiceName,
java.lang.Class<? extends ADEPT2Service> serviceInterface)
Prepares the specified service for being exported and creates a remote
object identifier of type URI valid for the communication protocol this
communication factory supports.
|
void |
unregisterService(java.net.URI serviceURI)
Unregisters the service with the designated URI to release resources.
|
java.net.URI prepareServiceExport(java.lang.String serviceType,
java.lang.String simpleServiceName,
java.lang.Class<? extends ADEPT2Service> serviceInterface)
throws AbortServiceException
serviceType - The identifier of the ADEPT2 service type the specified
service is an instance of.simpleServiceName - The name assigned to the service to export by the
registry.serviceInterface - The remote interface used to access the exported
service remotely.AbortServiceException - If the preparation of the service export
fails, an AbortServiceException will be thrown.boolean exportService(java.net.URI serviceURI,
java.lang.Class<? extends ADEPT2Service> serviceInterface,
ADEPT2Service service)
throws AbortServiceException
Before the service could be exported, it must be prepared for export by
calling prepareExport.
The returned URI must match the URI returned by the prepareExport call.
serviceURI - The URI under which the service should be exported.serviceInterface - The remote interface used to access the exported
service remotely.service - The service to export.AbortServiceException - If the exporting the service fails, an
AbortServiceException will be thrown.void unregisterService(java.net.URI serviceURI)
serviceURI - The URI of the service to be unregistered and not
exported any more.ADEPT2Service getExportedService(java.net.URI remoteObjectIdentifier)
remoteObjectIdentifier - The remote object identifier identifying the
requested remote service.java.lang.Class<?> getRemoteInterfaceForExportedService(java.net.URI remoteObjectIdentifier)
remoteObjectIdentifier - The remote object identifier identifying the
requested remote service.boolean isExportPrepared(java.net.URI remoteObjectIdentifier)
remoteObjectIdentifier - The identifier to check.boolean isRegisteredService(java.net.URI remoteObjectIdentifier)
remoteObjectIdentifier - The identifier to check.