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.LockLevel;
09: import com.tc.object.lockmanager.api.ThreadID;
10:
11: import java.io.Serializable;
12:
13: public class ServerLockRequest implements Serializable {
14:
15: private final long requestTime;
16: private final NodeID nodeID;
17: private final ThreadID threadID;
18: private final String lockLevel;
19: private final String channelAddr;
20:
21: public ServerLockRequest(NodeID cid, String channelAddr,
22: ThreadID threadID, int level, long requestTime) {
23: this .channelAddr = channelAddr;
24: this .nodeID = cid;
25: this .threadID = threadID;
26: this .requestTime = requestTime;
27: this .lockLevel = LockLevel.toString(level);
28: }
29:
30: public String getChannelAddr() {
31: return this .channelAddr;
32: }
33:
34: public NodeID getNodeID() {
35: return nodeID;
36: }
37:
38: public String getLockLevel() {
39: return lockLevel;
40: }
41:
42: public long getRequestTime() {
43: return requestTime;
44: }
45:
46: public ThreadID getThreadID() {
47: return threadID;
48: }
49: }
|