package org.apache.catalina.ha.deploy;
-import java.io.Serializable;
-
import org.apache.catalina.ha.ClusterMessage;
import org.apache.catalina.tribes.Member;
-public class UndeployMessage implements ClusterMessage,Serializable {
+
+public class UndeployMessage implements ClusterMessage {
private static final long serialVersionUID = 1L;
private Member address;
this.contextPath = contextPath;
}
+ @Override
public Member getAddress() {
return address;
}
+ @Override
public void setAddress(Member address) {
this.address = address;
}
+ @Override
public long getTimestamp() {
return timestamp;
}
+ @Override
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
+ @Override
public String getUniqueId() {
return uniqueId;
}
+ @Override
public void setUniqueId(String uniqueId) {
this.uniqueId = uniqueId;
}
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
-import java.io.Serializable;
/**
* A byte message is not serialized and deserialized by the channel
* @version $Id$
*/
-public class ByteMessage implements Serializable, Externalizable {
+public class ByteMessage implements Externalizable {
/**
* Storage for the message to be sent
*/
* @param in ObjectInput
* @throws IOException
*/
+ @Override
public void readExternal(ObjectInput in ) throws IOException {
int length = in.readInt();
message = new byte[length];
* @param out ObjectOutput
* @throws IOException
*/
+ @Override
public void writeExternal(ObjectOutput out) throws IOException {
out.writeInt(message!=null?message.length:0);
if ( message!=null ) out.write(message,0,message.length);