1 5 package com.tc.object.bytecode; 6 7 import com.tc.cluster.ClusterEventListener; 8 import com.tc.logging.TCLogger; 9 import com.tc.management.beans.sessions.SessionMonitorMBean; 10 import com.tc.object.ObjectID; 11 import com.tc.object.TCObject; 12 import com.tc.object.event.DmiManager; 13 import com.tc.object.lockmanager.api.LockLevel; 14 import com.tc.properties.TCProperties; 15 16 19 public interface Manager { 20 21 public static final String CLASS = "com/tc/object/bytecode/Manager"; 22 public static final String TYPE = "L" + CLASS + ";"; 23 24 public final static int LOCK_TYPE_READ = LockLevel.READ; 25 public final static int LOCK_TYPE_WRITE = LockLevel.WRITE; 26 public final static int LOCK_TYPE_CONCURRENT = LockLevel.CONCURRENT; 27 public final static int LOCK_TYPE_SYNCHRONOUS_WRITE = LockLevel.SYNCHRONOUS_WRITE; 28 29 public boolean isPhysicallyInstrumented(Class clazz); 30 31 public Object deepCopy(Object source); 32 33 public void init(); 34 35 public void stop(); 36 37 public Object lookupOrCreateRoot(String name, Object object); 38 39 public Object lookupOrCreateRootNoDepth(String name, Object obj); 40 41 public Object createOrReplaceRoot(String rootName, Object object); 42 43 public void beginVolatile(TCObject tcObject, String fieldName, int type); 44 45 public void beginLock(String lockID, int type); 46 47 public boolean tryBeginLock(String lockID, int type); 48 49 public void commitVolatile(TCObject tcObject, String fieldName); 50 51 public void commitLock(String lockName); 52 53 public Object lookupObject(ObjectID id) throws ClassNotFoundException ; 54 55 public TCObject lookupExistingOrNull(Object obj); 56 57 public TCObject lookupOrCreate(Object obj); 58 59 public TCObject shareObjectIfNecessary(Object pojo); 60 61 public void objectNotify(Object obj); 62 63 public void objectNotifyAll(Object obj); 64 65 public void objectWait0(Object obj) throws InterruptedException ; 66 67 public void objectWait1(Object obj, long millis) throws InterruptedException ; 68 69 public void objectWait2(Object obj, long millis, int nanos) throws InterruptedException ; 70 71 public void monitorEnter(Object obj, int type); 72 73 public void monitorExit(Object obj); 74 75 public void logicalInvoke(Object object, String methodName, Object [] params); 76 77 public void logicalInvokeWithTransaction(Object object, Object lockObject, String methodName, Object [] params); 78 79 public boolean distributedMethodCall(Object receiver, String method, Object [] params, boolean runOnAllNodes); 80 81 public void distributedMethodCallCommit(); 82 83 public Object lookupRoot(String name); 84 85 public void checkWriteAccess(Object context); 86 87 public boolean isManaged(Object object); 88 89 public boolean isLogical(Object object); 90 91 public boolean isRoot(String className, String fieldName); 92 93 public void optimisticBegin(); 94 95 public void optimisticCommit() throws ClassNotFoundException ; 96 97 public void optimisticRollback(); 98 99 public boolean isLocked(Object obj); 100 101 public boolean tryMonitorEnter(Object obj, int type); 102 103 public boolean isHeldByCurrentThread(Object obj, int lockLevel); 104 105 public int queueLength(Object obj); 106 107 public int waitLength(Object obj); 108 109 public boolean isCreationInProgress(); 110 111 public String getClientID(); 112 113 public TCLogger getLogger(String loggerName); 114 115 public SessionMonitorMBean getSessionMonitorMBean(); 116 117 public TCProperties getTCProperites(); 118 119 public void addClusterEventListener(ClusterEventListener cel); 120 121 public DmiManager getDmiManager(); 122 123 } 124 | Popular Tags |