All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----utah.npm.core.Lockable | +----utah.npm.core.NPMObject
Summary |
abstract class NPMObject extends utah.npm.core.Lockable { // Fields 12 static final int CondType; static final int MemPoolType; static final int MutexType; public static final int NPM_HASH_DEFAULT; static final int PortSetType; static final int PortType; static final int ReferenceType; static final int SpaceType; static final int ThreadType; private boolean active_; private int hashCode_; private String label_; // Constructors 1 public NPMObject(); // Methods 13 static String typeName(); public final Object clone() throws CloneNotSupportedException, OutOfMemoryError; public void debug_label(String); public void destroy(); public void finalize(); public int hashCode(); public void move(Reference, Reference); void s_assertActive() throws InvalidObjectException; int s_hashCode(); void s_init(int); boolean s_isActive(); abstract int s_type(); public abstract String toString(); }
NPMObject is the base class for all NPM objects.
Cross Reference |
Fields |
· hashCode_ | Summary | Top |
private int hashCode_
The hashCode_ of this object.
· active_ | Summary | Top |
private boolean active_
Flag to indicate whether this object has been destroyed or not.
· NPM_HASH_DEFAULT | Summary | Top |
public static final int NPM_HASH_DEFAULT
Default hash code for new NPM objects.
· PortType | Summary | Top |
static final int PortType
Define "types" for each kind of NPM object. these types are not used outside of the package, users can use the Class of each object to do their own checks. I would have like to use static Class references here, but initialization proved to be a sadistic pain in the butt. Perhaps if I went native...
· PortSetType | Summary | Top |
static final int PortSetType
· ThreadType | Summary | Top |
static final int ThreadType
· SpaceType | Summary | Top |
static final int SpaceType
· MemPoolType | Summary | Top |
static final int MemPoolType
· CondType | Summary | Top |
static final int CondType
· MutexType | Summary | Top |
static final int MutexType
· ReferenceType | Summary | Top |
static final int ReferenceType
· label_ | Summary | Top |
private String label_
Constructors |
· NPMObject | Summary | Top |
public NPMObject()
Methods |
· s_init | Summary | Top |
void s_init(int hashCode)
· destroy | Summary | Top |
public void destroy()
Destroy this object. At this level that simply means setting the active_ flag to false.
· hashCode | Summary | Top |
public int hashCode()
Return the hashCode associated with this object. Hashcodes default to the standard Java hashcode, unless overridden at object creation time. Hashcodes are read-only once the object is created.
- Returns:
- the integer hashcode associated with this object.
- Overrides:
- hashCode in class Object
· s_hashCode | Summary | Top |
int s_hashCode()
Return the hashCode associated with this object. This is the package-level interface to this object. No locking is required as this is a read-only value.
· move | Summary | Top |
public void move(Reference srcPool, Reference destPool)
Move this object from one MemPool into target MemPool. XXX: Not implmented, probably not necessary.
· s_isActive | Summary | Top |
boolean s_isActive()
Determine if the current object is alive or not.
- Returns:
- true if this is active, false if not.
· s_assertActive | Summary | Top |
void s_assertActive() throws InvalidObjectException
Throw NPMInvalidObject if this object has been destroyed.
· toString | Summary | Top |
public abstract String toString()
- Overrides:
- toString in class Object
· finalize | Summary | Top |
public void finalize()
Finalize this object. Simply calls destroy.
- Overrides:
- finalize in class Object
See Also: destroy
· clone | Summary | Top |
public final Object clone() throws CloneNotSupportedException, OutOfMemoryError
No NPM object supports clone().
- Overrides:
- clone in class Object
See Also: Object.clone
· typeName | Summary | Top |
static String typeName()
· s_type | Summary | Top |
abstract int s_type()
Return the type of this NPM object. The Class of the object is used to represent its type.
- Returns:
- The type of this object (its class.)
· debug_label | Summary | Top |
public void debug_label(String name)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7