@ProviderType
public interface ImportRegistration
RemoteServiceAdmin.importService(EndpointDescription) method.
When this Import Registration has been closed, all methods must return
null.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this Import Registration.
|
Throwable |
getException()
Return the exception for any error during the import process.
|
ImportReference |
getImportReference()
Return the Import Reference for the imported service.
|
boolean |
update(EndpointDescription endpoint)
Update the local service represented by this
ImportRegistration. |
ImportReference getImportReference()
null
if this Import Registration is closed.IllegalStateException - When this registration was not properly
initialized. See getException().boolean update(EndpointDescription endpoint)
ImportRegistration.
After this method returns the EndpointDescription returned via
getImportReference() must have been updated.endpoint - The updated endpointtrue if the endpoint was successfully updated,
false otherwise. If the update fails then the
failure can be retrieved from getException().IllegalStateException - When this registration is closed, or if it
was not properly initialized. See getException().IllegalArgumentException - When the supplied
EndpointDescription does not represent the same endpoint
as this ImportRegistration.void close()
null.
This method has no effect when this registration has already been closed
or is being closed.Throwable getException()
null.
The error must be set before this Import Registration is returned.
Asynchronously occurring errors must be reported to the log.null if no exception occurred.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.