|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceInterface
A resource interface.
EPG - Initial - 01FEB06
Nested Class Summary | |
---|---|
static class |
ResourceInterface.State
The states are provided as a convenience. |
Field Summary | |
---|---|
static java.lang.String |
NULL_ID
|
Method Summary | |
---|---|
void |
disposeResource()
This is how the system tells a resource he is about to be destroyed. |
WhoAmI |
getId()
Get ID of the resource. |
ResourceInterface.State |
getState()
Get the current state. |
void |
initResource(WhoAmI id)
Initialize the resource. |
boolean |
lock()
Lock an object. |
void |
unlock()
This call is only meaningful if the thread holds the lock. |
Field Detail |
---|
static final java.lang.String NULL_ID
Method Detail |
---|
void initResource(WhoAmI id) throws SystemException
id
- The id of the resource.
SystemException
WhoAmI
void disposeResource() throws SystemException
SystemException
boolean lock() throws SystemException
SystemException
void unlock() throws SystemException
SystemException
WhoAmI getId() throws SystemException
SystemException
WhoAmI
ResourceInterface.State getState() throws SystemException
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |