Package com.sos.VirtualFileSystem.Options

Examples of com.sos.VirtualFileSystem.Options.SOSConnection2OptionsAlternate


        strDataTargetType = enuTransferTypes.local.Text();
        ;
      }
      this.SourceDir.Value(this.local_dir.Value());
      this.TargetDir.Value(this.remote_dir.Value());
      SOSConnection2OptionsAlternate objT = this.getConnectionOptions().Target();
      objT.host.Value(this.host.Value());
      objT.port.value(this.port.value());
      objT.protocol.Value(this.protocol.Value());
      objT.passive_mode.Value(this.passive_mode.Value());
      SOSConnection2OptionsSuperClass objAlt = objT.Alternatives();
      objAlt.host.Value(this.alternative_host.Value());
      objAlt.port.value(this.alternative_port.value());
      objAlt.protocol.Value(this.protocol.Value());
      objT.passive_mode.Value(this.alternative_passive_mode.Value());
    }
View Full Code Here


      ;
      changeDirValues();
      // if (this.getConnectionOptions().Source().protocol.IsNotEmpty()) {
      // strDataSourceType = this.getConnectionOptions().Source().protocol.Value();
      // }
      SOSConnection2OptionsAlternate objT = this.getConnectionOptions().Source();
      objT.host.Value(SOSOptionHostName.conLocalHostName);
      objT.port.value(0);
      objT.protocol.Value(strDataSourceType);
      objT = this.getConnectionOptions().Target();
      objT.host = this.host;
      objT.port = this.port;
      objT.protocol = this.protocol;
      objT.user = this.user;
      objT.password = this.password;
      objT.ssh_auth_file = this.ssh_auth_file;
      objT.ssh_auth_method = this.ssh_auth_method;
      objT.passive_mode = this.passive_mode;
      SOSConnection2OptionsSuperClass objAlt = objT.Alternatives();
      objAlt.host.Value(this.alternative_host.Value());
      objAlt.port.value(this.alternative_port.value());
      objAlt.protocol.Value(this.protocol.Value());
      objT.passive_mode.Value(this.alternative_passive_mode.Value());
    }
    else {
      if (this.operation.Value().equalsIgnoreCase("receive")) {
        strDataSourceType = this.protocol.Value();
        if (strDataSourceType.length() <= 0) {
          strDataSourceType = enuTransferTypes.local.Text();
          ;
        }
        changeDirValues4Receive();
        SOSConnection2OptionsAlternate objT = this.getConnectionOptions().Source();
        objT.host.Value(this.host.Value());
        objT.port.value(this.port.value());
        objT.protocol.Value(this.protocol.Value());
        objT.passive_mode.Value(this.passive_mode.Value());
        objT.user = this.user;
        objT.password = this.password;
        objT.ssh_auth_file = this.ssh_auth_file;
        objT.ssh_auth_method = this.ssh_auth_method;
        SOSConnection2OptionsSuperClass objAlt = objT.Alternatives();
        objAlt.host.Value(this.alternative_host.Value());
        objAlt.port.value(this.alternative_port.value());
        objAlt.protocol.Value(this.protocol.Value());
        objT.passive_mode.Value(this.alternative_passive_mode.Value());
      }
View Full Code Here

    String pid = ManagementFactory.getRuntimeMXBean().getName();
    String strA[] = pid.split("@");
    pid = strA[0];
    String ppid = System.getProperty("ppid", "0");
    String operation = objOptions.operation.Value(); // 4- operation: send|receive
    SOSConnection2OptionsAlternate objS = objOptions.getConnectionOptions().Source();
    String localhost = objS.host.Value(); // 5- local host
    String localhost_ip = objS.host.getHostAdress(); // 5-1- local host IP adresse
    String local_user = System.getProperty("user.name"); // 6- local user
    SOSConnection2OptionsAlternate objT = objOptions.getConnectionOptions().Target();
    String remote_host = objT.host.Value(); // 7- remote host
    String remote_host_ip = objT.host.getHostAdress(); // 7- remote host IP
    String remote_user = objT.user.Value(); // 8- remote host user
    String protocol = objT.protocol.Value(); // 9- protocol
    String port = objT.port.Value(); // 10- port
View Full Code Here

TOP

Related Classes of com.sos.VirtualFileSystem.Options.SOSConnection2OptionsAlternate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.