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.objectserver.lockmanager.api;
06:
07: import com.tc.net.groups.NodeID;
08: import com.tc.object.lockmanager.api.ThreadID;
09: import com.tc.object.tx.WaitInvocation;
10:
11: import java.io.Serializable;
12:
13: public class Waiter implements Serializable {
14:
15: private final long startTime;
16: private final NodeID nodeID;
17: private final ThreadID threadID;
18: private final String waitInvocation;
19: private final String channelAddr;
20:
21: public Waiter(NodeID cid, String channelAddr, ThreadID threadID,
22: WaitInvocation call, long startTime) {
23: this .nodeID = cid;
24: this .channelAddr = channelAddr;
25: this .threadID = threadID;
26: this .startTime = startTime;
27: this .waitInvocation = call.toString();
28: }
29:
30: public NodeID getNodeID() {
31: return nodeID;
32: }
33:
34: public String getChannelAddr() {
35: return this .channelAddr;
36: }
37:
38: public long getStartTime() {
39: return startTime;
40: }
41:
42: public ThreadID getThreadID() {
43: return threadID;
44: }
45:
46: public String getWaitInvocation() {
47: return waitInvocation;
48: }
49: }
|