|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Resource
Interface for a Resource.
| Method Summary | |
|---|---|
void |
addServerCommsProperty(java.lang.String propertyName,
java.lang.Object value)
Adds a server communications property to the resource. |
void |
destroy()
Destroys the resource. |
ActivitiesMetaData |
getActivityDetails()
Gets details of the activities that can be targeted at this resource. |
java.util.Date |
getCurrentTime()
Gets current time at the server. |
ResourceProperty[] |
getMultipleResourceProperties(ResourcePropertyName[] names)
Gets the specified resource properties. |
ResourceID |
getResourceID()
Gets the ID of this resource. |
ResourceProperty |
getResourceProperty(ResourcePropertyName name)
Gets the specified resource property. |
ResourceType |
getResourceType()
Gets the type of this resource. |
java.util.Date |
getTerminationTime()
Gets the resource's current termination time. |
TerminationTime |
setTerminationTime(java.util.Date requestedTerminationTime)
Requests that the termination time of the resource be changed. |
void |
setTimeout(int timeout)
Sets the timeout to use for calls to this resource. |
| Method Detail |
|---|
ResourceType getResourceType()
ResourceID getResourceID()
ResourceProperty getResourceProperty(ResourcePropertyName name)
throws ServerCommsException,
ServerException,
ClientServerCompatibilityException,
ResourceUnknownException,
PropertyNameInvalidException
name - name of the desired resource property.
ServerException - if an internal error occurs at the server.
ClientServerCompatibilityException - if the server does not behave as expected.
PropertyNameInvalidException - if resource does not contain the specified property.
ResourceUnknownException - if the resource is unknown to the server.
ServerCommsException - if an error occurs communicating with the server.
ResourceProperty[] getMultipleResourceProperties(ResourcePropertyName[] names)
throws ServerCommsException,
ServerException,
ClientServerCompatibilityException,
ResourceUnknownException,
PropertyNameInvalidException
names - names of the desired resource properties.
ServerException - if an internal error occurs at the server.
ClientServerCompatibilityException - if the server does not behave as expected.
PropertyNameInvalidException - if resource does not contain the specified property.
ResourceUnknownException - if the resource is unknown to the server.
ServerCommsException - if an error occurs communicating with the server.
void destroy()
throws ServerCommsException,
ServerException,
ClientServerCompatibilityException,
ResourceUnknownException,
ResourceNotDestroyedException
ServerException - if an internal error occurs at the server.
ClientServerCompatibilityException - if the server does not behave as expected.
ResourceNotDestroyedException - if the resource could not be destroyed for a reason other
than authorization.
ResourceUnknownException - if the resource is unknown to the server.
ServerCommsException - if an error occurs communicating with the server.
TerminationTime setTerminationTime(java.util.Date requestedTerminationTime)
throws ServerCommsException,
ServerException,
ClientServerCompatibilityException,
ResourceUnknownException,
UnableToSetTerminationTimeException,
TerminationTimeChangeRejectedException
requestedTerminationTime - the desired resource termination time.
ServerException - if an internal error occurs at the server.
ClientServerCompatibilityException - if the server does not behave as expected.
ResourceUnknownException - if the resource is unknown to the server.
TerminationTimeChangeRejectedException - if the request to change the termination time was rejected.
ServerCommsException - if an error occurs communicating with the server.
UnableToSetTerminationTimeException - if the termination time cannot be changed for a reason other
than authorization.
java.util.Date getCurrentTime()
throws ServerCommsException,
ServerException,
ClientServerCompatibilityException,
ResourceUnknownException,
ClientToolkitException
ServerCommsException - if an error occurs communicating with the server.
ServerException - if an internal error occurs at the server.
ResourceUnknownException - if the resource is unknown to the server.
ClientServerCompatibilityException - if the server does not behave as expected.
ClientToolkitException - if an internal client toolkit error occurs.
java.util.Date getTerminationTime()
throws ServerCommsException,
ServerException,
ResourceUnknownException,
ClientServerCompatibilityException,
ClientToolkitException
null if no
termination time has been set. If no termination time has been
set the resource is currently configured to live forever.
ServerException - if an internal error occurs at the server.
ClientServerCompatibilityException - if the server does not behave as expected.
ResourceUnknownException - if the resource is unknown to the server.
ClientToolkitException - if an internal client toolkit error occurs.
ServerCommsException - if an error occurs communicating with the server.
ActivitiesMetaData getActivityDetails()
throws ServerCommsException,
ServerException,
ResourceUnknownException,
ClientServerCompatibilityException,
ClientToolkitException
ServerException - if an internal error occurs at the server.
ClientServerCompatibilityException - if the server does not behave as expected.
ResourceUnknownException - if the resource is unknown to the server.
ClientToolkitException - if an internal client toolkit error occurs.
ServerCommsException - if an error occurs communicating with the server.void setTimeout(int timeout)
timeout - timeout in milliseconds.
void addServerCommsProperty(java.lang.String propertyName,
java.lang.Object value)
propertyName - name of the propertyvalue - property value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||