public interface ServiceReferenceInternal extends ServiceReference, EprInfoHandler.EprInfoProvider
SUPPRESS_GET_METADATA_IF_POSSIBLE_DEFAULTLOCATION_LOCAL, LOCATION_REMOTE, LOCATION_UNKNOWN| Modifier and Type | Method and Description |
|---|---|
void |
disconnectFromDevice()
Removes the parent device reference from this service reference.
|
int |
getHostedBlockVersion() |
XAddressInfo |
getNextXAddressInfoAfterFailure(URI transportAddress,
int syncHostedBlockVersion) |
EprInfo |
getPreferredXAddressInfo() |
Service |
getService(boolean doBuildUp)
Gets present service of reference.
|
Service |
setLocalService(LocalService service)
Sets local service, replaces present service.
|
void |
setLocation(int location)
Location of service, which this reference is linked to.
|
void |
setMetaDataLocations(URISet metaLocs) |
void |
setMetadataReferences(EndpointReferenceSet metaRefs)
Updates metadata references.
|
void |
setParentDeviceEndpointReference(EndpointReference endpoint)
Sets the endpoint reference of the parent device.
|
void |
setWSDLs(DataStructure wsdls)
Updates WSDLs linked to this service
|
void |
update(HostedMData newHostedBlock,
EndpointReference parentDeviceEndpointReference,
ConnectionInfo connectionInfo)
Update service references with hosted metadata.
|
containsAllPortTypes, dispose, getEprInfos, getMetadataLocations, getMetadataReferences, getParentDeviceEndpointReference, getPortTypeCount, getPortTypes, getSecurityKey, getService, getServiceId, getWSDLs, isServiceObjectExisting, isSuppressGetMetadataIfPossible, reset, setSecurityKey, setSuppressGetMetadataIfPossiblegetComManId, getLocation, getPreferredXAddressgetDebugString, getEprInfos, getOutgoingDiscoveryInfosService getService(boolean doBuildUp) throws CommunicationException
DescriptionRepository or by sending a
get metadata message.doBuildUp - If false and service does not exist, service will not be build up. In this case, returned
service is nullCommunicationException - This exception is thrown if the remote service doesn't answer to the get metadata message, which tries to
receive the necessary data to build up the service. The timeout value can be configured in the DispatchingProperties via the method DispatchingProperties.setResponseWaitTime(int).Service setLocalService(LocalService service)
service - replacement service.void update(HostedMData newHostedBlock, EndpointReference parentDeviceEndpointReference, ConnectionInfo connectionInfo)
newHostedBlock - the hosted metadata.parentDeviceEndpointReference - the endpoint reference of the parent device.connectionInfo - the connection info.void disconnectFromDevice()
void setParentDeviceEndpointReference(EndpointReference endpoint)
endpoint - the endpoint reference of the parent to set.void setLocation(int location)
Reference.LOCATION_LOCAL,
Reference.LOCATION_REMOTE or
Reference.LOCATION_UNKNOWN location - Reference.LOCATION_LOCAL, Reference.LOCATION_REMOTE or Reference.LOCATION_UNKNOWN.void setMetaDataLocations(URISet metaLocs)
metaLocs - void setMetadataReferences(EndpointReferenceSet metaRefs)
metaRefs - void setWSDLs(DataStructure wsdls)
wsdls - EprInfo getPreferredXAddressInfo() throws CommunicationException
CommunicationExceptionXAddressInfo getNextXAddressInfoAfterFailure(URI transportAddress, int syncHostedBlockVersion) throws CommunicationException
CommunicationExceptionint getHostedBlockVersion()