|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static byte |
ATT_READ
|
static byte |
ATT_WRITE
|
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
OXHandle |
createHandle(ObjectId oid)
Create handle is used to create a new OXHandle for the OX with the given ObjectId. |
OXHandle |
grantOwnership(OXHandle ox)
Grant ownership invalidates the ownership of the given OXHandle, allowing a new node to request the ownership of this OXHanlde. |
void |
realeaseHandle(OXHandle ox)
Realease handle takes away the given handle from the handle list. |
OXHandle |
requestOwnership(OXHandle ox)
requestWnershp grants the ownership of the given OXHandle to the calling HostId as long as that OXHandle is not currently owned by another host. |
OXHandle |
updateAttributes(OXHandle ox,
java.lang.String[] att,
byte[] op)
OXhandle updates the attributes of the given ox. |
Field Detail |
public static final byte ATT_READ
public static final byte ATT_WRITE
public static final java.lang.String SERVICE_NAME
Method Detail |
public OXHandle createHandle(ObjectId oid)
oid
- a ObjectId
representing the OX to which the OXHandle to be created will refer
OXHandle
public void realeaseHandle(OXHandle ox)
ox
- a OXHandle
that is to be realeased
public OXHandle grantOwnership(OXHandle ox) throws HandleNotFoundException, NotMasterHandleException
ox
- a OXHandle
whose ownership is being granted
OXhandle
HandleNotFoundException
NotMasterHandleException
public OXHandle requestOwnership(OXHandle ox) throws HandleNotFoundException, WrongHandleException, NotMasterHandleException, WrongOwnershipCodeException
ox
- a OXHandle
whose ownership is beign requested
OXHandle
value
HandleNotFoundException
WrongHandleException
NotMasterHandleException
WrongOwnershipCodeException
public OXHandle updateAttributes(OXHandle ox, java.lang.String[] att, byte[] op) throws HandleNotFoundException
ox
- a OXHanlde
whose attributes are to be updatedatt
- an String[]
defining what attributes are to be updated
OXHandle
that is the OXHandle passed as parameter with it's attributes updated
HandleNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |