01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.logging;
06:
07: import com.tc.object.TCObject;
08: import com.tc.object.tx.WaitInvocation;
09:
10: /**
11: * Logging interface for various DSO runtime events
12: */
13: public interface RuntimeLogger {
14:
15: // /////////////////////////////
16: // logging options
17: // /////////////////////////////
18:
19: boolean lockDebug();
20:
21: boolean fieldChangeDebug();
22:
23: boolean arrayChangeDebug();
24:
25: boolean newManagedObjectDebug();
26:
27: boolean distributedMethodDebug();
28:
29: boolean waitNotifyDebug();
30:
31: boolean nonPortableDump();
32:
33: // /////////////////////////////
34: // log methods
35: // /////////////////////////////
36:
37: void lockAcquired(String lockName, int level, Object instance,
38: TCObject tcobj);
39:
40: void literalValueChanged(TCObject source, Object newValue);
41:
42: void fieldChanged(TCObject source, String classname,
43: String fieldname, Object newValue, int index);
44:
45: void arrayChanged(TCObject source, int startPos, Object array);
46:
47: void newManagedObject(TCObject object);
48:
49: void objectNotify(boolean all, Object obj, TCObject tcObject);
50:
51: void objectWait(WaitInvocation call, Object obj, TCObject tcObject);
52:
53: void distributedMethodCall(String receiverClassName,
54: String methodName, String params);
55:
56: void distributedMethodCallError(String obj, String methodName,
57: String params, Throwable error);
58:
59: }
|