protected static class LocalServiceRegistry.ServiceExportInformation
extends java.lang.Object
ServiceExportInformation encapsulates the data which is
needed for exporting a service, which is:
ADEPT2ServiceExport),
LocalServiceRegistry, this information is of more use in a
registry exporting services.| Constructor and Description |
|---|
ServiceExportInformation(ADEPT2ServiceExport[] serviceExports,
java.net.URI[] localServiceUris)
Creates a new object to encapsulate the information for exporting a
service.
|
ServiceExportInformation(ADEPT2ServiceExport[] serviceExports,
java.net.URI[] localServiceUris,
java.net.URI[] globalServiceUris)
Creates a new object to encapsulate the information for exporting a
service.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.URI[] |
getGlobalServiceUris()
Gets the URIs under which the service has been globally published.
|
java.net.URI[] |
getLocalServiceUris()
Gets the URIs under which the service is available at the local service
registry.
|
ADEPT2ServiceExport[] |
getServiceExports()
Gets the services which are used to export a service or an empty array in
case of a non-exported local service.
|
java.net.URI[] |
getServiceUris()
Gets the URIs the service is exported with.
|
boolean |
isExported()
Returns whether the exported service is to be exported at all or just a
local service with a local URI.
|
boolean |
published()
Gets whether the exported service has been published at the global
registry.
|
public ServiceExportInformation(ADEPT2ServiceExport[] serviceExports, java.net.URI[] localServiceUris)
serviceExports - An array of export services corresponding to the
URIs in localServiceURIs. In case of a non-exported
service the array is empty.localServiceUris - An array of URIs to be used with the
corresponding serviceExports or just one local URI.public ServiceExportInformation(ADEPT2ServiceExport[] serviceExports, java.net.URI[] localServiceUris, java.net.URI[] globalServiceUris)
serviceExports - An array of export services corresponding to the
URIs in localServiceURIs. In case of a non-exported
service the array is empty.localServiceUris - An array of URIs to be used with the
corresponding serviceExports or just one local URI.globalServiceUris - The global service URIs under which the service
is published at and reachable via the global registry.public boolean isExported()
public boolean published()
public java.net.URI[] getLocalServiceUris()
public java.net.URI[] getGlobalServiceUris()
null will be returned.null in case the service has not been published yet.public java.net.URI[] getServiceUris()
public ADEPT2ServiceExport[] getServiceExports()