com.ibm.dtfj.java.sov
Interface SovJavaObject

All Superinterfaces:
JavaObject

public interface SovJavaObject
extends JavaObject

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".

See Also:
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

getHeapAttributes

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.

For example:

"Marked Hashed&Moved ArrayOfPrimitive ArraySize=23 Type= T_BYTE"

Returns:
String
Throws:
CorruptDataException

isPinned

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.

Returns:
true if object is pinned.

isDosed

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.

Returns:
true if object is dosed.

isMarked

public boolean isMarked()
                 throws CorruptDataException

If the object is live, it is marked during GC.

Returns:
true if the object has been marked.
Throws:
CorruptDataException

isHashed

public boolean isHashed()

If the object has been hashed in it's lifetime, this will return true.

Returns:
true is the object is hashed.

isMoved

public boolean isMoved()

Returns true if the object has been moved during garbage compaction.

Returns:
true is the object has been moved.

isSwapped

public boolean isSwapped()

Returns true if the object had been swapped during garbage compaction

Returns:
true is the object has been swapped.

getLockAttributes

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:

For example: FlatLock FlatThread=10 FlatCount=1

Returns:
String

isFlatLocked

public boolean isFlatLocked()

Returns true if the object has been flat locked.

.

Returns:
true if the object is flat locked.

isInflatedLocked

public boolean isInflatedLocked()

Returns true the if Object's lock has been inflated.

Returns:
true if the lock has been inflated.

isContendedFor

public boolean isContendedFor()
Returns:
true if access to the object is contended.


Copyright © 2005 IBM. All Rights Reserved.