|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is an IBM Sovereign SDK extension of com.ibm.dtfj.java.JavaObject. All JavaObjects returned in this API are also SovJavaObject's. In order to use these additional methods, simply cast the JavaObject's to "SovJavaObject".
JavaObject
Method Summary | |
---|---|
java.lang.String |
getHeapAttributes()
Returns the object's attributes on the heap in a textual format. |
java.lang.String |
getLockAttributes()
Returns a String with the lock attributes listed in a textual format. |
boolean |
isContendedFor()
|
boolean |
isDosed()
Determines whether or not the object is dosed. |
boolean |
isFlatLocked()
Returns true if the object has been flat locked. |
boolean |
isHashed()
If the object has been hashed in it's lifetime, this will return true. |
boolean |
isInflatedLocked()
Returns true the if Object's lock has been inflated. |
boolean |
isMarked()
If the object is live, it is marked during GC. |
boolean |
isMoved()
Returns true if the object has been moved during garbage compaction. |
boolean |
isPinned()
Determines whether or not the object is pinned. |
boolean |
isSwapped()
Returns true if the object had been swapped during garbage compaction |
Methods inherited from interface com.ibm.dtfj.java.JavaObject |
---|
arraycopy, equals, getArraySize, getHashcode, getID, getJavaClass, getPersistentHashcode, getSections, getSize, hashCode, isArray |
Method Detail |
public java.lang.String getHeapAttributes() throws CorruptDataException
Returns the object's attributes on the heap in a textual format.
The string that will be returned will consist of the following strings concatenated together.
Marked
- Will be present if isMarked()==true
.
Hashed
- Will be present if isHashed()==true
.
&Moved
- Will be present if isMoved()==true
. Note that this appended to
Hashed
with no spaces, if it is present. i.e. Hashed&Moved
.
Dosed
- Will be present if isDosed()==true
.
Pinned
- Will be present if isPinned()==true
.
Swapped
- Will be present if isSwapped()==true
.
ArrayOf
- Will be present if object is an array.
Object
- Appended to ArrayOf
with no spaces if
object is an array of objects. e.g. ArrayOfObject
.
Primitive
- Appended to ArrayOf
with no spaces if
object is an array of primitives. e.g. ArrayOfPrimitive
.
ArraySize=
- Will be present with the number of elements in the
array as a decimal value. e.g. ArraySize=19
className=
- Will be present with the name of the class of the
object if it is not an array. e.g. className= java/lang/String
.
Type=
- Will be followed by the name of the object type.
Type= (T_NORMAL_OBJECT | T_CLASS | T_BOOLEAN | T_CHAR | T_FLOAT |
T_DOUBLE | T_BYTE | T_UBYTE | T_SHORT | T_INT | T_LONG | T_VOID | T_FUNC | T_UNKNOWN | T_ERROR)
For example:
"Marked Hashed&Moved ArrayOfPrimitive ArraySize=23 Type= T_BYTE"
CorruptDataException
public boolean isPinned()
Determines whether or not the object is pinned. This will be true if the object has been explicitly marked as unmovable by, for instance, JNI.
public boolean isDosed()
Determines whether or not the object is dosed. If true, the object was temporarily marked as unmoveable as it might have been referenced from the stack or by registers.
public boolean isMarked() throws CorruptDataException
If the object is live, it is marked during GC.
CorruptDataException
public boolean isHashed()
If the object has been hashed in it's lifetime, this will return true.
public boolean isMoved()
Returns true if the object has been moved during garbage compaction.
public boolean isSwapped()
Returns true if the object had been swapped during garbage compaction
public java.lang.String getLockAttributes()
Returns a String with the lock attributes listed in a textual format.
The string returned will consist of the following strings concatenated together:
Contended
- Will be present if isContendedFor()==true
.
FlatLocked
- Will be present if isInflatedLock() == false
.
FlatThread=
- Will have the thread ID as a decimal.
FlatCount=
- Will have the number of times the lock has been locked.
InflatedLocked
- Will be present if isInflatedLock == true
.
MonitorIndex=
- Will have the monitor index as a decimal value<.
FlatLock FlatThread=10 FlatCount=1
public boolean isFlatLocked()
Returns true if the object has been flat locked.
.
public boolean isInflatedLocked()
Returns true the if Object's lock has been inflated.
public boolean isContendedFor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |