Class RemoteServiceAdmin.ImportRegistration
- java.lang.Object
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ImportRegistration
 
- 
- All Implemented Interfaces:
- ImportRegistration
 - Enclosing class:
- RemoteServiceAdmin
 
 public class RemoteServiceAdmin.ImportRegistration extends Object implements ImportRegistration - Since:
- 4.2
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this Import Registration.IDgetContainerID()ThrowablegetException()Return the exception for any error during the import process.ImportReferencegetImportReference()Return the Import Reference for the imported service.longgetRemoteServiceId()StringtoString()booleanupdate(EndpointDescription endpoint)Update the local service represented by thisImportRegistration.
 
- 
- 
- 
Method Detail- 
getContainerIDpublic ID getContainerID() 
 - 
getRemoteServiceIdpublic long getRemoteServiceId() 
 - 
getImportReferencepublic ImportReference getImportReference() Description copied from interface:ImportRegistrationReturn the Import Reference for the imported service.- Specified by:
- getImportReferencein interface- ImportRegistration
- Returns:
- The Import Reference for this registration, or nullif this Import Registration is closed.
 
 - 
closepublic void close() Description copied from interface:ImportRegistrationClose this Import Registration. This must close the connection to the endpoint and unregister the proxy. After this method returns, all other methods must returnnull. This method has no effect when this registration has already been closed or is being closed.- Specified by:
- closein interface- ImportRegistration
 
 - 
getExceptionpublic Throwable getException() Description copied from interface:ImportRegistrationReturn the exception for any error during the import process. If the Remote Service Admin for some reasons is unable to properly initialize this registration, then it must return an exception from this method. If no error occurred, this method must returnnull. The error must be set before this Import Registration is returned. Asynchronously occurring errors must be reported to the log.- Specified by:
- getExceptionin interface- ImportRegistration
- Returns:
- The exception that occurred during the initialization of this
         registration or nullif no exception occurred.
 
 - 
updatepublic boolean update(EndpointDescription endpoint) Description copied from interface:ImportRegistrationUpdate the local service represented by thisImportRegistration. After this method returns theEndpointDescriptionreturned viaImportRegistration.getImportReference()must have been updated.- Specified by:
- updatein interface- ImportRegistration
- Parameters:
- endpoint- The updated endpoint
- Returns:
- trueif the endpoint was successfully updated,- falseotherwise. If the update fails then the failure can be retrieved from- ImportRegistration.getException().
 
 
- 
 
-