1 4 package com.tc.object.appevent; 5 6 import com.tc.util.NonPortableReason; 7 8 import java.io.Serializable ; 9 10 public class NonPortableEventContext implements Serializable { 11 12 private static final long serialVersionUID = 4788562594133534828L; 13 14 private final String threadName; 15 private final String clientId; 16 private final String targetClassName; 17 18 public NonPortableEventContext(String targetClassName, String threadName, String clientId) { 19 this.targetClassName = targetClassName; 20 this.threadName = threadName; 21 this.clientId = clientId; 22 } 23 24 public String getTargetClassName() { 25 return targetClassName; 26 } 27 28 public String getThreadName() { 29 return threadName; 30 } 31 32 public String 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 |