01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.catalina.cluster.deploy;
18:
19: import org.apache.catalina.cluster.ClusterMessage;
20: import org.apache.catalina.cluster.Member;
21: import java.io.Serializable;
22:
23: public class UndeployMessage implements ClusterMessage, Serializable {
24: private Member address;
25: private long timestamp;
26: private String uniqueId;
27: private String contextPath;
28: private boolean undeploy;
29:
30: public UndeployMessage() {
31: } //for serialization
32:
33: public UndeployMessage(Member address, long timestamp,
34: String uniqueId, String contextPath, boolean undeploy) {
35: this .address = address;
36: this .timestamp = timestamp;
37: this .undeploy = undeploy;
38: this .uniqueId = uniqueId;
39: this .undeploy = undeploy;
40: this .contextPath = contextPath;
41: }
42:
43: public Member getAddress() {
44: return address;
45: }
46:
47: public void setAddress(Member address) {
48: this .address = address;
49: }
50:
51: public long getTimestamp() {
52: return timestamp;
53: }
54:
55: public void setTimestamp(long timestamp) {
56: this .timestamp = timestamp;
57: }
58:
59: public String getUniqueId() {
60: return uniqueId;
61: }
62:
63: public void setUniqueId(String uniqueId) {
64: this .uniqueId = uniqueId;
65: }
66:
67: public String getContextPath() {
68: return contextPath;
69: }
70:
71: public void setContextPath(String contextPath) {
72: this .contextPath = contextPath;
73: }
74:
75: public boolean getUndeploy() {
76: return undeploy;
77: }
78:
79: public void setUndeploy(boolean undeploy) {
80: this.undeploy = undeploy;
81: }
82: }
|