|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.provision.ResourceOp
An object representing one operation to be performed on a particular resource. The provisioning engine builds up a list of these after comparing the resource accounts currently held on the user, with those specified by the role and private account references on the user.
These became more complex with the introduction of multiple provisioning threads, and support for provisioning order dependencies. OPs have a "state" field that indicates whether they're waiting to be processed, currently being processed, or finished processing. Each OP may have a pointer to a dependent OP that must be finished before this OP can be processed.
ResourceOp objects are collected inside a OpBucket object, the provisioning engine may create several op buckets for various sinister purposes.
Each OP now contains a WavesetResult object used to collect adapter messages for this operation.
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
CREATE
Constants specifying the operation we're performing. |
static java.lang.String |
DELETE
|
static java.lang.String |
FETCH
|
static int |
FINISHED
|
static int |
PROCESSING
|
static int |
READY
States an operation can be in. |
static java.lang.String |
UPDATE
|
Constructor Summary | |
ResourceOp(java.lang.String op,
ResourceInfo info)
Construct a resource OP given an OP code and a resource Made public for IDMX. |
Method Summary | |
void |
disconnect()
|
void |
dumpFile(java.lang.String file)
|
ResourceAdapter |
findAdapter(ObjectCache cache)
Create the resource adapter associated with the resource. |
static ResourceAdapter |
findAdapter(Resource res,
ObjectCache cache)
Create the resource adapter associated with the resource. |
ResourceAdapter |
getAdapter()
Get the resource adapter associated with this resource. |
OpBucket |
getBucket()
|
ResourceOp |
getDependentOp()
|
long |
getEndDate()
|
java.lang.String |
getOp()
|
Resource |
getResource()
|
ResourceInfo |
getResourceInfo()
|
ResourceResult |
getResult()
|
long |
getStartDate()
|
int |
getState()
|
WSUser |
getUser()
|
boolean |
isCreate()
|
boolean |
isDelete()
|
boolean |
isFetch()
|
boolean |
isFinished()
|
boolean |
isReady()
|
boolean |
isUpdate()
|
void |
setBucket(OpBucket b)
|
void |
setDependentOp(ResourceOp op)
|
void |
setOp(java.lang.String op)
|
void |
setResource(Resource res)
Setter only necessary if we determine later that resource attributes need to be overridden. |
void |
setResult(ResourceResult result)
|
void |
setState(int value)
|
void |
setUser(WSUser user)
|
java.lang.String |
toIdentityString()
|
java.lang.String |
toString()
|
java.lang.String |
toSummaryString()
|
java.lang.String |
toVerboseString()
|
java.lang.String |
toVerboseString(java.lang.String linePrefix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String CREATE
public static final java.lang.String UPDATE
public static final java.lang.String DELETE
public static final java.lang.String FETCH
public static final int READY
public static final int PROCESSING
public static final int FINISHED
Constructor Detail |
public ResourceOp(java.lang.String op, ResourceInfo info) throws WavesetException
Method Detail |
public void setOp(java.lang.String op)
public void setResult(ResourceResult result)
public void setState(int value)
public void setBucket(OpBucket b)
public void setUser(WSUser user)
public void setDependentOp(ResourceOp op)
public void setResource(Resource res)
public void disconnect()
public java.lang.String toString()
public java.lang.String getOp()
public ResourceInfo getResourceInfo()
public Resource getResource()
public WSUser getUser()
public int getState()
public boolean isReady()
public boolean isFinished()
public boolean isCreate()
public boolean isUpdate()
public boolean isDelete()
public boolean isFetch()
public OpBucket getBucket()
public ResourceResult getResult()
public ResourceOp getDependentOp()
public ResourceAdapter getAdapter()
public ResourceAdapter findAdapter(ObjectCache cache) throws WavesetException
WavesetException
public static ResourceAdapter findAdapter(Resource res, ObjectCache cache) throws WavesetException
WavesetException
public void dumpFile(java.lang.String file)
public java.lang.String toVerboseString()
public java.lang.String toIdentityString()
public java.lang.String toVerboseString(java.lang.String linePrefix)
public java.lang.String toSummaryString()
public long getEndDate()
public long getStartDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |