| com.tc.object.bytecode.Manager
All known Subclasses: com.tc.object.bytecode.ManagerImpl, com.tc.object.bytecode.NullManager,
Manager | public interface Manager (Code) | | The Manager interface
|
Method Summary | |
public void | addClusterEventListener(ClusterEventListener cel) | public void | beginLock(String lockID, int type) | public void | beginVolatile(TCObject tcObject, String fieldName, int type) | public void | checkWriteAccess(Object context) | public void | commitLock(String lockName) | public void | commitVolatile(TCObject tcObject, String fieldName) | public Object | createOrReplaceRoot(String rootName, Object object) Create or replace root, typically used for replaceable roots. | public Object | deepCopy(Object source) | public boolean | distributedMethodCall(Object receiver, String method, Object[] params, boolean runOnAllNodes) | public void | distributedMethodCallCommit() | public String | getClientID() | public DmiManager | getDmiManager() | public TCLogger | getLogger(String loggerName) | public SessionMonitorMBean | getSessionMonitorMBean() | public TCProperties | getTCProperites() | public void | init() | public boolean | isCreationInProgress() Check whether a creation is in progress. | public boolean | isDsoMonitorEntered(Object obj) | public boolean | isDsoMonitored(Object obj) | public boolean | isFieldPortableByOffset(Object pojo, long fieldOffset) | public boolean | isHeldByCurrentThread(Object obj, int lockLevel) | public boolean | isLocked(Object obj, int lockLevel) | public boolean | isLogical(Object object) | public boolean | isManaged(Object object) | public boolean | isPhysicallyInstrumented(Class clazz) | public boolean | isRoot(Field field) | public int | localHeldCount(Object obj, int lockLevel) | public void | logicalInvoke(Object object, String methodName, Object[] params) | public void | logicalInvokeWithTransaction(Object object, Object lockObject, String methodName, Object[] params) | public TCObject | lookupExistingOrNull(Object obj) | public Object | lookupObject(ObjectID id) | public Object | lookupObject(ObjectID id, ObjectID parentContext) Look up object by ID, faulting into the JVM if necessary, This method also passes the parent Object context so that
more intelligent prefetching is possible at the L2. | public TCObject | lookupOrCreate(Object obj) | public Object | lookupOrCreateRoot(String name, Object object) | public Object | lookupOrCreateRootNoDepth(String name, Object obj) Look up or create a new root object. | public Object | lookupRoot(String name) | public void | monitorEnter(Object obj, int type) | public void | monitorExit(Object obj) | public void | objectNotify(Object obj) | public void | objectNotifyAll(Object obj) | public void | objectWait0(Object obj) | public void | objectWait1(Object obj, long millis) | public void | objectWait2(Object obj, long millis, int nanos) | public void | optimisticBegin() | public void | optimisticCommit() | public void | optimisticRollback() | public int | queueLength(Object obj) | public TCObject | shareObjectIfNecessary(Object pojo) | public void | stop() | public boolean | tryBeginLock(String lockID, int type) | public boolean | tryMonitorEnter(Object obj, long timeoutInNanos, int type) | public int | waitLength(Object obj) |
CLASS | final public static String CLASS(Code) | | This class's class path: com/tc/object/bytecode/Manager
|
LOCK_TYPE_CONCURRENT | final public static int LOCK_TYPE_CONCURRENT(Code) | | |
LOCK_TYPE_READ | final public static int LOCK_TYPE_READ(Code) | | |
LOCK_TYPE_SYNCHRONOUS_WRITE | final public static int LOCK_TYPE_SYNCHRONOUS_WRITE(Code) | | |
LOCK_TYPE_WRITE | final public static int LOCK_TYPE_WRITE(Code) | | |
TYPE | final public static String TYPE(Code) | | Bytecode type definition for this class
|
addClusterEventListener | public void addClusterEventListener(ClusterEventListener cel)(Code) | | Add listener for cluster events
Parameters: cel - Listener |
beginLock | public void beginLock(String lockID, int type)(Code) | | Begin lock
Parameters: lockID - Lock identifier Parameters: type - Lock type |
beginVolatile | public void beginVolatile(TCObject tcObject, String fieldName, int type)(Code) | | Begin volatile lock
Parameters: tcObject - TCObject to lock Parameters: fieldName - Field name holding volatile object Parameters: type - Lock type |
commitLock | public void commitLock(String lockName)(Code) | | Commit lock
Parameters: lockName - Lock name |
commitVolatile | public void commitVolatile(TCObject tcObject, String fieldName)(Code) | | Commit volatile lock
Parameters: tcObject - Volatile object TCObject Parameters: fieldName - Field holding the volatile object |
createOrReplaceRoot | public Object createOrReplaceRoot(String rootName, Object object)(Code) | | Create or replace root, typically used for replaceable roots.
Parameters: rootName - Root name Parameters: object - Root object Root object used |
deepCopy | public Object deepCopy(Object source)(Code) | | Deep copy the source object graph
Parameters: source - Source object The copy |
distributedMethodCall | public boolean distributedMethodCall(Object receiver, String method, Object[] params, boolean runOnAllNodes)(Code) | | Perform distributed method call
Parameters: receiver - The receiver object Parameters: method - The method to call Parameters: params - The parameter values Parameters: runOnAllNodes - True if should run on all nodes, false just for this node |
distributedMethodCallCommit | public void distributedMethodCallCommit()(Code) | | Commit DMI call
|
getClientID | public String getClientID()(Code) | | Get JVM Client identifier
Client identifier |
getLogger | public TCLogger getLogger(String loggerName)(Code) | | Get the named logger
Parameters: name - Logger name The logger |
init | public void init()(Code) | | Initialize the Manager
|
isCreationInProgress | public boolean isCreationInProgress()(Code) | | Check whether a creation is in progress. This flag is set on a per-thread basis while hydrating an object from DNA.
True if in progress |
isDsoMonitorEntered | public boolean isDsoMonitorEntered(Object obj)(Code) | | Check whether dso MonitorExist is required
True if required |
isDsoMonitored | public boolean isDsoMonitored(Object obj)(Code) | | Check whether an object is shared
Parameters: object - Instance True if shared |
isFieldPortableByOffset | public boolean isFieldPortableByOffset(Object pojo, long fieldOffset)(Code) | | Returns true if the field represented by the offset is a portable field, i.e., not static and not dso transient
Parameters: pojo - Object Parameters: fieldOffset - The index true if the field is portable and false otherwise |
isHeldByCurrentThread | public boolean isHeldByCurrentThread(Object obj, int lockLevel)(Code) | | Check whether this lock is held by the current thread
Parameters: obj - The lock Parameters: lockLevel - The lock level True if held by current thread throws: NullPointerException - If obj is null |
isLocked | public boolean isLocked(Object obj, int lockLevel)(Code) | | Check whether an object is locked at this lockLevel
Parameters: obj - Lock Parameters: lockLevel - Lock level True if locked at this level throws: NullPointerException - If obj is null |
isLogical | public boolean isLogical(Object object)(Code) | | Check whether object is logically instrumented
Parameters: object - Instance True if logically instrumented |
isManaged | public boolean isManaged(Object object)(Code) | | Check whether an object is managed
Parameters: object - Instance True if managed |
isPhysicallyInstrumented | public boolean isPhysicallyInstrumented(Class clazz)(Code) | | Determine whether this class is physically instrumented
Parameters: clazz - Class True if physically instrumented |
isRoot | public boolean isRoot(Field field)(Code) | | Check whether field is a root
Parameters: field - Field True if root |
localHeldCount | public int localHeldCount(Object obj, int lockLevel)(Code) | | Get number of locks held locally on this object
Parameters: obj - The lock object Parameters: lockLevel - The lock level Lock count throws: NullPointerException - If obj is null |
logicalInvoke | public void logicalInvoke(Object object, String methodName, Object[] params)(Code) | | Perform invoke on logical managed object
Parameters: object - The object Parameters: methodName - The method to call Parameters: params - The parameters to the method |
logicalInvokeWithTransaction | public void logicalInvokeWithTransaction(Object object, Object lockObject, String methodName, Object[] params)(Code) | | Perform invoke on logical managed object in lock
Parameters: object - The object Parameters: lockObject - The lock object Parameters: methodName - The method to call Parameters: params - The parameters to the method |
lookupExistingOrNull | public TCObject lookupExistingOrNull(Object obj)(Code) | | Find managed object, which may be null
Parameters: obj - The object instance The TCObject |
lookupObject | public Object lookupObject(ObjectID id, ObjectID parentContext) throws ClassNotFoundException(Code) | | Look up object by ID, faulting into the JVM if necessary, This method also passes the parent Object context so that
more intelligent prefetching is possible at the L2.
Parameters: id - Object identifier of the object we are looking up Parameters: parentContext - Object identifier of the parent object The actual object throws: TCClassNotFoundException - If a class is not found during faulting |
lookupOrCreate | public TCObject lookupOrCreate(Object obj)(Code) | | Find or create new TCObject
Parameters: obj - The object instance The TCObject |
lookupOrCreateRoot | public Object lookupOrCreateRoot(String name, Object object)(Code) | | Look up or create a new root object
Parameters: name - Root name Parameters: object - Root object to use if none exists yet The root object actually used, may or may not == object |
lookupOrCreateRootNoDepth | public Object lookupOrCreateRootNoDepth(String name, Object obj)(Code) | | Look up or create a new root object. Objects faulted in to arbitrary depth.
Parameters: name - Root name Parameters: obj - Root object to use if none exists yet The root object actually used, may or may not == object |
lookupRoot | public Object lookupRoot(String name)(Code) | | Lookup root by name
Parameters: name - Name of root Root object |
monitorEnter | public void monitorEnter(Object obj, int type)(Code) | | Enter synchronized monitor
Parameters: obj - Object Parameters: type - Lock type |
monitorExit | public void monitorExit(Object obj)(Code) | | Exit synchronized monitor
Parameters: obj - Object |
objectNotify | public void objectNotify(Object obj)(Code) | | Perform notify on obj
Parameters: obj - Instance |
objectNotifyAll | public void objectNotifyAll(Object obj)(Code) | | Perform notifyAll on obj
Parameters: obj - Instance |
objectWait1 | public void objectWait1(Object obj, long millis) throws InterruptedException(Code) | | Perform timed wait on obj
Parameters: obj - Instance Parameters: millis - Wait time |
objectWait2 | public void objectWait2(Object obj, long millis, int nanos) throws InterruptedException(Code) | | Perform timed wait on obj
Parameters: obj - Instance Parameters: millis - Wait time Parameters: nonas - More wait time |
optimisticBegin | public void optimisticBegin()(Code) | | Begin an optimistic transaction
|
optimisticRollback | public void optimisticRollback()(Code) | | Rollback an optimistic transaction
|
queueLength | public int queueLength(Object obj)(Code) | | Number in queue waiting on this lock
Parameters: obj - The object Number of waiters throws: NullPointerException - If obj is null |
shareObjectIfNecessary | public TCObject shareObjectIfNecessary(Object pojo)(Code) | | Parameters: pojo - Object instance TCObject for pojo |
stop | public void stop()(Code) | | Stop the manager
|
tryBeginLock | public boolean tryBeginLock(String lockID, int type)(Code) | | Try to begin lock
Parameters: lockID - Lock identifier Parameters: type - Lock type True if lock was successful |
tryMonitorEnter | public boolean tryMonitorEnter(Object obj, long timeoutInNanos, int type)(Code) | | Try to enter monitor for specified object
Parameters: obj - The object monitor Parameters: timeoutInNanos - Timeout in nanoseconds Parameters: type - The lock level True if entered throws: NullPointerException - If obj is null |
waitLength | public int waitLength(Object obj)(Code) | | Number in queue waiting on this wait()
Parameters: obj - The object Number of waiters throws: NullPointerException - If obj is null |
|
|