KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > logging > RuntimeLogger


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.object.logging;
6
7 import com.tc.object.TCObject;
8 import com.tc.object.tx.WaitInvocation;
9
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 JavaDoc lockName, int level, Object JavaDoc instance, TCObject tcobj);
38
39   void literalValueChanged(TCObject source, Object JavaDoc newValue);
40
41   void fieldChanged(TCObject source, String JavaDoc classname, String JavaDoc fieldname, Object JavaDoc newValue, int index);
42
43   void arrayChanged(TCObject source, int startPos, Object JavaDoc array);
44
45   void newManagedObject(TCObject object);
46
47   void objectNotify(boolean all, Object JavaDoc obj, TCObject tcObject);
48
49   void objectWait(WaitInvocation call, Object JavaDoc obj, TCObject tcObject);
50
51   void distributedMethodCall(String JavaDoc receiverClassName, String JavaDoc methodName, String JavaDoc params);
52
53   void distributedMethodCallError(String JavaDoc obj, String JavaDoc methodName, String JavaDoc params, Throwable JavaDoc error);
54
55 }
56
Popular Tags