org.eclipse.ecf.osgi.services.remoteserviceadmin
Class EndpointDescriptionAdvertiser
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionAdvertiser
- All Implemented Interfaces:
- IEndpointDescriptionAdvertiser
public class EndpointDescriptionAdvertiser
- extends java.lang.Object
- implements IEndpointDescriptionAdvertiser
Default implementation of IEndpointDescriptionAdvertiser
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EndpointDescriptionAdvertiser
public EndpointDescriptionAdvertiser(EndpointDescriptionLocator endpointDescriptionLocator)
advertise
public org.eclipse.core.runtime.IStatus advertise(EndpointDescription endpointDescription)
- Description copied from interface:
IEndpointDescriptionAdvertiser
- Advertise/publish the given endpoint description.
- Specified by:
advertise
in interface IEndpointDescriptionAdvertiser
- Parameters:
endpointDescription
- the endpoint description to advertise. Must not be
null
.
- Returns:
- IStatus to indicate the status of the advertisement. If the
returned status returns
false
from
IStatus.isOK()
, then the advertisement failed. The
IStatus can be further inspected for exception information and/or
child statuses. - See Also:
IStatus
doDiscovery
protected org.eclipse.core.runtime.IStatus doDiscovery(IDiscoveryAdvertiser discoveryAdvertiser,
IServiceInfo serviceInfo,
boolean advertise)
getServiceInfoFactory
protected IServiceInfoFactory getServiceInfoFactory()
getDiscoveryAdvertisers
protected IDiscoveryAdvertiser[] getDiscoveryAdvertisers()
createErrorStatus
protected org.eclipse.core.runtime.IStatus createErrorStatus(java.lang.String message)
createErrorStatus
protected org.eclipse.core.runtime.IStatus createErrorStatus(java.lang.String message,
java.lang.Throwable e)
doDiscovery
protected org.eclipse.core.runtime.IStatus doDiscovery(EndpointDescription endpointDescription,
boolean advertise)
unadvertise
public org.eclipse.core.runtime.IStatus unadvertise(EndpointDescription endpointDescription)
- Description copied from interface:
IEndpointDescriptionAdvertiser
- Unadvertise/unpublishe the given endpoint description.
- Specified by:
unadvertise
in interface IEndpointDescriptionAdvertiser
- Parameters:
endpointDescription
- the endpoint description to unadvertise. Must not be
null
.
- Returns:
- IStatus to indicate the status of the unadvertisement. If the
returned status returns
false
from
IStatus.isOK()
, then the unadvertisement failed. The
IStatus can be further inspected for exception information and/or
child statuses. - See Also:
IStatus
close
public void close()