import java.util.*;
import java.rmi.*;

/***************************************************************************

    <p><i>JSortInterface</i>

    <p>This interface defines the public methods for JSort.

    <p><i>Development Environment</i>

    <p>Compiled under JDK 1.2.0, Jini 1.0.0 <p>

 ***************************************************************************/

    public interface JSortInterface extends Remote 
      {
      final static char INIT_CHAR          = '~';
      final static String sCRLF            = "\r\n";
      final static String FIELD_TAG        = "FLD";
      final static String ORDER_TAG        = "ORD";
      final static String DATA_TAG         = "DATA";
      final static String RETURN_TAG       = "RET";
      final static String JOBID_TAG        = "JOBID";
      final static String EOF_TAG          = "EOF";
      final static String ASCENDING_VALUE  = "ascend";
      final static String DESCENDING_VALUE = "descend";
      final static String SUCCESS_VALUE    = "0";
      final static String REC_LENGTH_TAG   = "RECLENGTH";
      final static String JOB_NAME_TAG     = "JOBNAME";
      final static String SORT_JOB_TAG     = "job";
      final static String NOTE_TAG         = "NOTE";
      final static String DEBUG_TAG        = "DEBUG";

      final static int ASCENDING           = 0;
      final static int DESCENDING          = 1;

      public Hashtable close (Hashtable htParmsIn) 
        throws RemoteException;
      public Hashtable open (Hashtable htParmsIn) 
        throws RemoteException;
      public void releaseBlock (String sJobNameIn, byte[] abIn) 
        throws RemoteException;
      public Hashtable releaseRecord (Hashtable htParmsIn) 
        throws RemoteException;
      public byte[] returnBlock (String sJobNameIn, int iNumReqItemsIn)
        throws RemoteException;
      public Hashtable returnRecord (Hashtable htParmsIn) 
        throws RemoteException;
      public Hashtable rewind (Hashtable htParmsIn) 
        throws RemoteException;
      public Hashtable sort (Hashtable htParmsIn) 
        throws RemoteException;
      }

/*==========================(  End of Source  )============================*/

