|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.service.resourcepool.ResourceObject
public class ResourceObject
Wraps around a pooled resource keeping vital information on the pooling state of the resource.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
java.lang.String |
mCheckOutTag
The tag identifying who checked out this object. |
boolean |
mIsCheckedOut
Indicates whether or not this object is currently checked out. |
boolean |
mIsValid
Indicates whether or not this object is valid for use. |
java.lang.String |
mParentName
The parent resource pool's name. |
int |
mPoolLocation
The location of this resource in the pool. |
java.lang.Object |
mResource
The resource. |
long |
mTimeCheckedOut
The time in milliseconds when this object was checked out. |
Constructor Summary | |
---|---|
ResourceObject()
|
Method Summary | |
---|---|
int |
getCheckoutCount()
Returns property checkoutCount. |
java.lang.String |
getCheckOutTag()
Returns the tag passed in upon check-out used to identify who has checked out this object. |
boolean |
getIsCheckedOut()
Returns whether or not this object is still checked out. |
boolean |
getIsValid()
Returns whether or not this object is valid for use. |
java.lang.Thread |
getOwningThread()
Returns property owningThread. |
java.lang.String |
getParentName()
Returns the parent resource pool's name. |
int |
getPoolLocation()
Returns the location of this resource in the pool. |
java.lang.Object |
getResource()
Returns the resource. |
long |
getTimeCheckedOut()
Returns the time in milliseconds this object was checked out of the resource pool. |
long |
getTimeCreated()
Returns property timeCreated. |
void |
reset()
Resets all of the members that contain check-out data to their default values at object instantiation. |
ResourceObject |
setCheckoutCount(int pCheckoutCount)
Sets property checkoutCount. |
ResourceObject |
setCheckOutTag(java.lang.String pCheckOutTag)
Sets the tag passed in upon check-out to identify who has checked out this object. |
ResourceObject |
setIsCheckedOut(boolean pIsCheckedOut)
Sets whether or not this object is still checked out. |
ResourceObject |
setIsValid(boolean pIsValid)
Sets whether or not this object is still valid to use. |
ResourceObject |
setOwningThread(java.lang.Thread pOwningThread)
Sets property owningThread. |
ResourceObject |
setParentName(java.lang.String pParentName)
Sets the parent resource pool's name. |
ResourceObject |
setPoolLocation(int pPoolLocation)
Sets the location of this resource in the pool. |
ResourceObject |
setResource(java.lang.Object pResource)
Sets the resource. |
ResourceObject |
setTimeCheckedOut(long pTime)
Sets the time in milliseconds this object was checked out of the resource pool. |
ResourceObject |
setTimeCreated(long pTimeCreated)
Sets property timeCreated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public java.lang.Object mResource
public java.lang.String mParentName
public int mPoolLocation
public java.lang.String mCheckOutTag
public long mTimeCheckedOut
public boolean mIsCheckedOut
public boolean mIsValid
Constructor Detail |
---|
public ResourceObject()
Method Detail |
---|
public ResourceObject setResource(java.lang.Object pResource)
pResource
- the resourcepublic java.lang.Object getResource()
public ResourceObject setParentName(java.lang.String pParentName)
pParentName
- the parent namepublic java.lang.String getParentName()
public ResourceObject setPoolLocation(int pPoolLocation)
pLocation
- the locationpublic int getPoolLocation()
public ResourceObject setCheckOutTag(java.lang.String pCheckOutTag)
pCheckOutTag
- the identifying tagpublic java.lang.String getCheckOutTag()
public ResourceObject setTimeCheckedOut(long pTime)
pTime
- milliseconds when checked outpublic long getTimeCheckedOut()
public ResourceObject setIsCheckedOut(boolean pIsCheckedOut)
public boolean getIsCheckedOut()
public ResourceObject setIsValid(boolean pIsValid)
public boolean getIsValid()
public ResourceObject setTimeCreated(long pTimeCreated)
pTimeCreated
- new value to setpublic long getTimeCreated()
public ResourceObject setCheckoutCount(int pCheckoutCount)
pCheckoutCount
- new value to setpublic int getCheckoutCount()
public ResourceObject setOwningThread(java.lang.Thread pOwningThread)
pOwningThread
- new value to setpublic java.lang.Thread getOwningThread()
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |