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.properties.TCProperties; 14 15 public final class NullManager implements Manager { 16 17 public static final String CLASS = "com/tc/object/bytecode/NullManager"; 18 public static final String TYPE = "L" + CLASS + ";"; 19 20 private static final Manager INSTANCE = new NullManager(); 21 22 public static Manager getInstance() { 23 return INSTANCE; 24 } 25 26 private NullManager() { 27 } 29 30 public final void init() { 31 } 33 34 public final void stop() { 35 } 37 38 public final Object lookupOrCreateRoot(String name, Object object) { 39 throw new UnsupportedOperationException (); 40 } 41 42 public final Object lookupOrCreateRootNoDepth(String name, Object obj) { 43 throw new UnsupportedOperationException (); 44 } 45 46 public final Object createOrReplaceRoot(String name, Object object) { 47 throw new UnsupportedOperationException (); 48 } 49 50 public final void beginLock(String lockID, int type) { 51 } 53 54 public final TCObject lookupExistingOrNull(Object obj) { 55 return null; 56 } 57 58 public final void objectNotify(Object obj) { 59 obj.notify(); 60 } 61 62 public final void objectNotifyAll(Object obj) { 63 obj.notifyAll(); 64 } 65 66 public final void objectWait0(Object obj) throws InterruptedException { 67 obj.wait(); 68 } 69 70 public final void objectWait1(Object obj, long millis) throws InterruptedException { 71 obj.wait(millis); 72 } 73 74 public final void objectWait2(Object obj, long millis, int nanos) throws InterruptedException { 75 obj.wait(millis, nanos); 76 } 77 78 public final void monitorEnter(Object obj, int type) { 79 } 81 82 public final void monitorExit(Object obj) { 83 } 85 86 public final void logicalInvoke(Object object, String methodName, Object [] params) { 87 } 89 90 public final boolean distributedMethodCall(Object receiver, String method, Object [] params, boolean runOnAllNodes) { 91 return true; 92 } 93 94 public void distributedMethodCallCommit() { 95 } 97 98 public final void checkWriteAccess(Object context) { 99 } 101 102 public final boolean isManaged(Object object) { 103 return false; 104 } 105 106 public final boolean isLogical(Object object) { 107 throw new UnsupportedOperationException (); 108 } 109 110 public final boolean isRoot(String className, String fieldName) { 111 return false; 112 } 113 114 public final Object deepCopy(Object source) { 115 throw new UnsupportedOperationException (); 116 } 117 118 public final Object lookupRoot(String name) { 119 throw new UnsupportedOperationException (); 120 } 121 122 public final void optimisticBegin() { 123 throw new UnsupportedOperationException (); 124 } 125 126 public final void optimisticCommit() { 127 throw new UnsupportedOperationException (); 128 } 129 130 public final void optimisticRollback() { 131 throw new UnsupportedOperationException (); 132 } 133 134 public final void beginVolatile(TCObject tcObject, String fieldName, int type) { 135 } 137 138 public final void commitLock(String lockName) { 139 } 141 142 public final boolean isLocked(Object obj) { 143 return false; 144 } 145 146 public final int queueLength(Object obj) { 147 return 0; 148 } 149 150 public final void commitVolatile(TCObject tcObject, String fieldName) { 151 } 153 154 public final int waitLength(Object obj) { 155 return 0; 156 } 157 158 public final boolean isHeldByCurrentThread(Object obj, int lockLevel) { 159 throw new UnsupportedOperationException (); 160 } 161 162 public final void logicalInvokeWithTransaction(Object object, Object lockObject, String methodName, Object [] params) { 163 throw new UnsupportedOperationException (); 164 } 165 166 public final boolean tryMonitorEnter(Object obj, int type) { 167 throw new UnsupportedOperationException (); 168 } 169 170 public boolean tryBeginLock(String lockID, int type) { 171 throw new UnsupportedOperationException (); 172 } 173 174 public final TCObject shareObjectIfNecessary(Object pojo) { 175 throw new UnsupportedOperationException (); 176 } 177 178 public final boolean isCreationInProgress() { 179 return false; 180 } 181 182 public final boolean isPhysicallyInstrumented(Class clazz) { 183 return false; 184 } 185 186 public final String getClientID() { 187 return ""; 190 } 191 192 public final TCLogger getLogger(String loggerName) { 193 throw new UnsupportedOperationException (); 194 } 195 196 public final Object getMBean(String objectName) { 197 throw new UnsupportedOperationException (); 198 } 199 200 public final SessionMonitorMBean getSessionMonitorMBean() { 201 throw new UnsupportedOperationException (); 202 } 203 204 public final TCObject lookupOrCreate(Object obj) { 205 throw new UnsupportedOperationException (); 206 } 207 208 public final Object lookupObject(ObjectID id) { 209 throw new UnsupportedOperationException (); 210 } 211 212 public final TCProperties getTCProperites() { 213 throw new UnsupportedOperationException (); 214 } 215 216 public void addClusterEventListener(ClusterEventListener cel) { 217 throw new UnsupportedOperationException (); 218 } 219 220 public DmiManager getDmiManager() { 221 throw new UnsupportedOperationException (); 222 } 223 224 } 225 | Popular Tags |