KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > catalina > cluster > deploy > UndeployMessage


1 /*
2  * Copyright 1999,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 JavaDoc;
22 public class UndeployMessage implements ClusterMessage,Serializable JavaDoc {
23     private Member address;
24     private long timestamp;
25     private String JavaDoc uniqueId;
26     private String JavaDoc contextPath;
27     private boolean undeploy;
28     
29     public UndeployMessage() {} //for serialization
30
public UndeployMessage(Member address,
31                            long timestamp,
32                            String JavaDoc uniqueId,
33                            String JavaDoc contextPath,
34                            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 JavaDoc getUniqueId() {
60         return uniqueId;
61     }
62
63     public void setUniqueId(String JavaDoc uniqueId) {
64         this.uniqueId = uniqueId;
65     }
66
67     public String JavaDoc getContextPath() {
68         return contextPath;
69     }
70
71     public void setContextPath(String JavaDoc 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 }
83
Popular Tags