KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > appevent > NonPortableEventContext


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

4 package com.tc.object.appevent;
5
6 import com.tc.util.NonPortableReason;
7
8 import java.io.Serializable JavaDoc;
9
10 public class NonPortableEventContext implements Serializable JavaDoc {
11
12   private static final long serialVersionUID = 4788562594133534828L;
13
14   private final String JavaDoc threadName;
15   private final String JavaDoc clientId;
16   private final String JavaDoc targetClassName;
17
18   public NonPortableEventContext(String JavaDoc targetClassName, String JavaDoc threadName, String JavaDoc clientId) {
19     this.targetClassName = targetClassName;
20     this.threadName = threadName;
21     this.clientId = clientId;
22   }
23
24   public String JavaDoc getTargetClassName() {
25     return targetClassName;
26   }
27
28   public String JavaDoc getThreadName() {
29     return threadName;
30   }
31
32   public String JavaDoc getClientId() {
33     return clientId;
34   }
35
36   public void addDetailsTo(NonPortableReason reason) {
37     reason.addDetail("Thread", threadName);
38     reason.addDetail("JVM ID", clientId);
39   }
40
41
42 }
43
Popular Tags