001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.catalina.ha.deploy;
019:
020: import org.apache.catalina.ha.ClusterMessage;
021: import org.apache.catalina.tribes.Member;
022: import java.io.Serializable;
023:
024: public class UndeployMessage implements ClusterMessage, Serializable {
025: private Member address;
026: private long timestamp;
027: private String uniqueId;
028: private String contextPath;
029: private boolean undeploy;
030: private int resend = 0;
031: private int compress = 0;
032:
033: public UndeployMessage() {
034: } //for serialization
035:
036: public UndeployMessage(Member address, long timestamp,
037: String uniqueId, String contextPath, boolean undeploy) {
038: this .address = address;
039: this .timestamp = timestamp;
040: this .undeploy = undeploy;
041: this .uniqueId = uniqueId;
042: this .undeploy = undeploy;
043: this .contextPath = contextPath;
044: }
045:
046: public Member getAddress() {
047: return address;
048: }
049:
050: public void setAddress(Member address) {
051: this .address = address;
052: }
053:
054: public long getTimestamp() {
055: return timestamp;
056: }
057:
058: public void setTimestamp(long timestamp) {
059: this .timestamp = timestamp;
060: }
061:
062: public String getUniqueId() {
063: return uniqueId;
064: }
065:
066: public void setUniqueId(String uniqueId) {
067: this .uniqueId = uniqueId;
068: }
069:
070: public String getContextPath() {
071: return contextPath;
072: }
073:
074: public void setContextPath(String contextPath) {
075: this .contextPath = contextPath;
076: }
077:
078: public boolean getUndeploy() {
079: return undeploy;
080: }
081:
082: public void setUndeploy(boolean undeploy) {
083: this .undeploy = undeploy;
084: }
085:
086: /**
087: * @return Returns the compress.
088: * @since 5.5.10
089: */
090: public int getCompress() {
091: return compress;
092: }
093:
094: /**
095: * @param compress The compress to set.
096: * @since 5.5.10
097: */
098: public void setCompress(int compress) {
099: this .compress = compress;
100: }
101:
102: /**
103: * @return Returns the resend.
104: * @since 5.5.10
105: */
106: public int getResend() {
107: return resend;
108: }
109:
110: /**
111: * @param resend The resend to set.
112: * @since 5.5.10
113: */
114: public void setResend(int resend) {
115: this.resend = resend;
116: }
117:
118: }
|