|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceKind
The base interface for a resource kind. The main purpose of the resource kind
is to handle a request (through the
handleRequest(SDataRequest, AsyncStatusListener)
method. The other
methods are for the system to use for maintenance.
Method Summary | |
---|---|
java.lang.String |
getInstance()
|
java.lang.String |
getName()
|
ResourceResponse |
handleRequest(SDataRequest request,
AsyncStatusListener listener)
Handle the specified request, passing information to the listener if there is one. |
void |
shutdown()
Shut down the resource kind. |
Method Detail |
---|
void shutdown()
handleRequest(SDataRequest, AsyncStatusListener)
.
java.lang.String getName()
ResourceResponse handleRequest(SDataRequest request, AsyncStatusListener listener)
Note that even if an implementation is not thread-safe it must allow for
the shutdown()
call to execute in parallel.
request
- the request to handlelistener
- null or a listener than can be used for asynchronous tasks to
monitor progress.
ResourceResponse
to the requestjava.lang.String getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |