|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.exehda.services.AbstractService | +--org.isam.exehda.services.ox.OXManagerClientImpl
Field Summary | |
(package private) static java.lang.String |
PROP_OX_URI
|
Fields inherited from interface org.isam.exehda.services.ox.OXManager |
ATT_READ, ATT_WRITE, SERVICE_NAME |
Constructor Summary | |
OXManagerClientImpl()
Creates a new instance of OXManagerClientImpl |
|
OXManagerClientImpl(OXManager oxCell)
Creates a new instance of OXManagerClientImpl |
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. |
void |
start()
|
void |
stop()
|
OXHandle |
updateAttributes(OXHandle ox,
java.lang.String[] att,
byte[] op)
OXhandle updates the attributes of the given ox. |
Methods inherited from class org.isam.exehda.services.AbstractService |
log, log, log, log, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final java.lang.String PROP_OX_URI
Constructor Detail |
public OXManagerClientImpl()
public OXManagerClientImpl(OXManager oxCell)
Method Detail |
public void start() throws java.lang.Exception
start
in interface Service
java.lang.Exception
public void stop()
stop
in interface Service
public OXHandle createHandle(ObjectId oid)
createHandle
in interface OXManager
oid
- a ObjectId
representing the OX to which the OXHandle to be created will refer
OXHandle
public OXHandle grantOwnership(OXHandle ox) throws HandleNotFoundException, NotMasterHandleException
grantOwnership
in interface OXManager
ox
- a OXHandle
whose ownership is being granted
OXhandle
HandleNotFoundException
NotMasterHandleException
public void realeaseHandle(OXHandle ox)
realeaseHandle
in interface OXManager
ox
- a OXHandle
that is to be realeased
public OXHandle requestOwnership(OXHandle ox) throws HandleNotFoundException, WrongHandleException, NotMasterHandleException, WrongOwnershipCodeException
requestOwnership
in interface OXManager
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
updateAttributes
in interface OXManager
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 |