01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.catalina.ha;
18:
19: import org.apache.catalina.tribes.Member;
20:
21: /**
22: * <p>Title: </p>
23: *
24: * <p>Description: </p>
25: *
26: *
27: * <p>Company: </p>
28: *
29: * @author not attributable
30: * @version 1.0
31: */
32: public class ClusterMessageBase implements ClusterMessage {
33:
34: protected transient Member address;
35: private String uniqueId;
36: private long timestamp;
37:
38: public ClusterMessageBase() {
39: }
40:
41: /**
42: * getAddress
43: *
44: * @return Member
45: * @todo Implement this org.apache.catalina.ha.ClusterMessage method
46: */
47: public Member getAddress() {
48: return address;
49: }
50:
51: public String getUniqueId() {
52: return uniqueId;
53: }
54:
55: public long getTimestamp() {
56: return timestamp;
57: }
58:
59: /**
60: * setAddress
61: *
62: * @param member Member
63: * @todo Implement this org.apache.catalina.ha.ClusterMessage method
64: */
65: public void setAddress(Member member) {
66: this .address = member;
67: }
68:
69: public void setUniqueId(String uniqueId) {
70: this .uniqueId = uniqueId;
71: }
72:
73: public void setTimestamp(long timestamp) {
74: this.timestamp = timestamp;
75: }
76: }
|