Interface ImportRegistration
- 
- All Known Implementing Classes:
- RemoteServiceAdmin.ImportRegistration
 
 @ProviderType public interface ImportRegistrationAn Import Registration associates an active proxy service to a remote endpoint. The Import Registration can be used to delete the proxy associated with an endpoint. It is created with theRemoteServiceAdmin.importService(EndpointDescription)method. When this Import Registration has been closed, all methods must returnnull.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close this Import Registration.ThrowablegetException()Return the exception for any error during the import process.ImportReferencegetImportReference()Return the Import Reference for the imported service.booleanupdate(EndpointDescription endpoint)Update the local service represented by thisImportRegistration.
 
- 
- 
- 
Method Detail- 
getImportReferenceImportReference getImportReference() Return the Import Reference for the imported service.- Returns:
- The Import Reference for this registration, or nullif this Import Registration is closed.
- Throws:
- IllegalStateException- When this registration was not properly initialized. See- getException().
 
 - 
updateboolean update(EndpointDescription endpoint) Update the local service represented by thisImportRegistration. After this method returns theEndpointDescriptionreturned viagetImportReference()must have been updated.- Parameters:
- endpoint- The updated endpoint
- Returns:
- trueif the endpoint was successfully updated,- falseotherwise. If the update fails then the failure can be retrieved from- getException().
- Throws:
- IllegalStateException- When this registration is closed, or if it was not properly initialized. See- getException().
- IllegalArgumentException- When the supplied- EndpointDescriptiondoes not represent the same endpoint as this- ImportRegistration.
- Since:
- 1.1
 
 - 
closevoid close() Close 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.
 - 
getExceptionThrowable getException() Return 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.- Returns:
- The exception that occurred during the initialization of this
         registration or nullif no exception occurred.
 
 
- 
 
-