hammant 02/03/30 00:03:49 Modified: altrmi/src/java/org/apache/commons/altrmi/common AltrmiReply.java AltrmiRequest.java Added: altrmi/src/java/org/apache/commons/altrmi/common GarbageCollectionReply.java GarbageCollectionRequest.java Log: cOMMANDS FOR dgc Revision Changes Path 1.8 +2 -1 jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/common/AltrmiReply.java Index: AltrmiReply.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/common/AltrmiReply.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- AltrmiReply.java 1 Feb 2002 00:16:38 -0000 1.7 +++ AltrmiReply.java 30 Mar 2002 08:03:49 -0000 1.8 @@ -21,7 +21,7 @@ * * * @author Paul Hammant <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ */ public abstract class AltrmiReply implements Externalizable { @@ -35,6 +35,7 @@ public static final int PINGREPLY = 7; public static final int LISTREPLY=8; public static final int METHODFACADEARRAYREPLY = 9; + public static final int GCREPLY = 10; // 'bad' replies after 100 1.6 +2 -1 jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/common/AltrmiRequest.java Index: AltrmiRequest.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/common/AltrmiRequest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- AltrmiRequest.java 29 Jan 2002 10:15:56 -0000 1.5 +++ AltrmiRequest.java 30 Mar 2002 08:03:49 -0000 1.6 @@ -21,7 +21,7 @@ * * * @author Paul Hammant <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ */ public abstract class AltrmiRequest implements Externalizable { @@ -32,6 +32,7 @@ public static final int OPENCONNECTIONREQUEST = 305; public static final int PINGREQUEST = 306; public static final int LISTREQUEST=307; + public static final int GCREQUEST=308; 1.1 jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/common/GarbageCollectionReply.java Index: GarbageCollectionReply.java =================================================================== /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.commons.altrmi.common; import java.io.ObjectOutput; import java.io.IOException; import java.io.ObjectInput; /** * Class GarbageCollectionReply * * * @author Paul Hammant <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> * @version $Revision: 1.1 $ */ public final class GarbageCollectionReply extends AltrmiReply { /** * Constructor GarbageCollectionReply * * */ public GarbageCollectionReply() {} /** * Method getReplyCode. This is quicker than instanceof for type checking. * * * @return * */ public int getReplyCode() { return GCREPLY; } /** * The object implements the writeExternal method to save its contents * by calling the methods of DataOutput for its primitive values or * calling the writeObject method of ObjectOutput for objects, strings, * and arrays. * * @serialData Overriding methods should use this tag to describe * the data layout of this Externalizable object. * List the sequence of element types and, if possible, * relate the element to a public/protected field and/or * method of this Externalizable class. * * @param out the stream to write the object to * @exception IOException Includes any I/O exceptions that may occur */ public void writeExternal(ObjectOutput out) throws IOException {} /** * The object implements the readExternal method to restore its * contents by calling the methods of DataInput for primitive * types and readObject for objects, strings and arrays. The * readExternal method must read the values in the same sequence * and with the same types as were written by writeExternal. * * @param in the stream to read data from in order to restore the object * @exception IOException if I/O errors occur * @exception ClassNotFoundException If the class for an object being * restored cannot be found. */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {} } 1.1 jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/common/GarbageCollectionRequest.java Index: GarbageCollectionRequest.java =================================================================== /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.commons.altrmi.common; import java.io.ObjectOutput; import java.io.IOException; import java.io.ObjectInput; /** * Class GarbageCollectionRequest * * * @author Paul Hammant <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> * @version $Revision: 1.1 $ */ public final class GarbageCollectionRequest extends AltrmiRequest implements Sessionable { private Long mSession; /** * Constructor GarbageCollectionRequest * * * @param session * */ public GarbageCollectionRequest(Long session) { mSession = session; } /** * Constructor GarbageCollectionRequest * * */ public GarbageCollectionRequest() {} /** * Method getRequestCode * * * @return * */ public int getRequestCode() { return AltrmiRequest.GCREQUEST; } /** * Method getSession * * * @return * */ public Long getSession() { return mSession; } /** * The object implements the writeExternal method to save its contents * by calling the methods of DataOutput for its primitive values or * calling the writeObject method of ObjectOutput for objects, strings, * and arrays. * * @serialData Overriding methods should use this tag to describe * the data layout of this Externalizable object. * List the sequence of element types and, if possible, * relate the element to a public/protected field and/or * method of this Externalizable class. * * @param out the stream to write the object to * @exception IOException Includes any I/O exceptions that may occur */ public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(mSession); } /** * The object implements the readExternal method to restore its * contents by calling the methods of DataInput for primitive * types and readObject for objects, strings and arrays. The * readExternal method must read the values in the same sequence * and with the same types as were written by writeExternal. * * @param in the stream to read data from in order to restore the object * @exception IOException if I/O errors occur * @exception ClassNotFoundException If the class for an object being * restored cannot be found. */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); mSession = (Long) in.readObject(); } }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>