Oracle Application Server 10g Java Object Cache API Reference
10g Release 2 (10.1.2)

B14018-01
November 2004

oracle.ias.cache
Class ObjectStatus

java.lang.Object
  extended byoracle.ias.cache.ObjectStatus

public class ObjectStatus
extends java.lang.Object

The ObjectStatus class provides an encapsulation of the runtime status of an object in the cache. Each object in the cache has an associated ObjectStatus. The status is accessible from the CacheAccess.getStatus method

Since:
9.0.4
See Also:
CacheAccess, CacheObjectInfo, AggregateStatus

Method Summary
 int getAccessCount()
          returns the number of times this object has been accessed since it was created or updated
 long getCreateTime()
          returns the time the object was created in milliseconds since midnight January 1, 1970 UTC
 long getFileSize()
          returns the size of the object on disk or 0 if the object is not currently stored on disk
 long getLastAccessTime()
          returns the last time the object was accessed in milliseconds since midnight January 1, 1970 UTC
 long getLoadTime()
          returns the number of milliseconds spend loading the object
 int getPriority()
          returns the priority of the object as set by the creator of the object
 long getSize()
          returns the size of the object in bytes or 0 if the size has not been determined
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPriority

public int getPriority()
returns the priority of the object as set by the creator of the object

Returns:
the priority of the object as set by the creator of the object

Since:
9.0.4

getAccessCount

public int getAccessCount()
returns the number of times this object has been accessed since it was created or updated

Returns:
the number of times this object has been accessed since it was created or updated

Since:
9.0.4

getSize

public long getSize()
returns the size of the object in bytes or 0 if the size has not been determined

Returns:
the size of the object in bytes or 0 if the size has not been determined

Since:
9.0.4

getFileSize

public long getFileSize()
returns the size of the object on disk or 0 if the object is not currently stored on disk

Returns:
the size of the object on disk or 0 if the object is not currently stored on disk

Since:
9.0.4

getLastAccessTime

public long getLastAccessTime()
returns the last time the object was accessed in milliseconds since midnight January 1, 1970 UTC

Returns:
the last time the object was accessed in milliseconds since midnight January 1, 1970 UTC

Since:
9.0.4

getCreateTime

public long getCreateTime()
returns the time the object was created in milliseconds since midnight January 1, 1970 UTC

Returns:
the time the object was created in milliseconds since midnight January 1, 1970 UTC

Since:
9.0.4

getLoadTime

public long getLoadTime()
returns the number of milliseconds spend loading the object

Returns:
the number of milliseconds spend loading the object

Since:
9.0.4

toString

public java.lang.String toString()

Oracle Application Server 10g Java Object Cache API Reference
10g Release 2 (10.1.2)

B14018-01
November 2004

Copyright 2004, Oracle Corporation. All Rights Reserved.