Example #1
0
  /** Sets remote server to striped active server mode (SPOR). */
  public void setStripedActive(HostPortList hpl) throws IOException, ServerException {
    Command cmd = new Command("SPOR", hpl.toFtpCmdArgument());

    try {
      controlChannel.execute(cmd);
    } catch (UnexpectedReplyCodeException urce) {
      throw ServerException.embedUnexpectedReplyCodeException(urce);
    } catch (FTPReplyParseException rpe) {
      throw ServerException.embedFTPReplyParseException(rpe);
    }

    this.gSession.serverMode = GridFTPSession.SERVER_EACT;
  }