public class RemoteServiceAdmin.ImportRegistration extends java.lang.Object implements ImportRegistration
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this Import Registration.
|
ID |
getContainerID() |
java.lang.Throwable |
getException()
Return the exception for any error during the import process.
|
ImportReference |
getImportReference()
Return the Import Reference for the imported service.
|
long |
getRemoteServiceId() |
java.lang.String |
toString() |
boolean |
update(EndpointDescription endpoint)
Update the local service represented by this
ImportRegistration . |
public java.lang.String toString()
toString
in class java.lang.Object
public ID getContainerID()
public long getRemoteServiceId()
public ImportReference getImportReference()
ImportRegistration
getImportReference
in interface ImportRegistration
null
if this Import Registration is closed.public void close()
ImportRegistration
null
.
This method has no effect when this registration has already been closed
or is being closed.close
in interface ImportRegistration
public java.lang.Throwable getException()
ImportRegistration
null
.
The error must be set before this Import Registration is returned.
Asynchronously occurring errors must be reported to the log.getException
in interface ImportRegistration
null
if no exception occurred.public boolean update(EndpointDescription endpoint)
ImportRegistration
ImportRegistration
.
After this method returns the EndpointDescription
returned via
ImportRegistration.getImportReference()
must have been updated.update
in interface ImportRegistration
endpoint
- The updated endpointtrue
if the endpoint was successfully updated,
false
otherwise. If the update fails then the
failure can be retrieved from ImportRegistration.getException()
.