Package ve.net.dcs.sc.component

Examples of ve.net.dcs.sc.component.Client


          parameters.put("endcut", SCUIFeature.get("DEFAULT_ENDCUT"));
          parameters.put("stabilitypos", SCUIFeature.get("DEFAULT_SINDICATORPOS"));
          parameters.put("stability", SCUIFeature.get("DEFAULT_SINDICATOR"));
          parameters.put("floatingpoint", SCUIFeature.get("DEFAULT_FPOINT"));

          client = new Client(viewClientMode.getTxtHost().getText(), Integer.parseInt(viewClientMode.getTxtPort().getText()));
          client.setWebService(viewClientMode.getCbxWebService().isSelected());

          request = new Request();
          request.setType((RequestType) viewClientMode.getCmbRequestType().getSelectedItem());
          request.setDate(HelperDate.now());
View Full Code Here


   *             If an error occurred when reading from the input stream
   * @throws ClassNotFoundException
   *             If the returned object is of a class unknown
   */
  public String connectServerSC() throws SocketTimeoutException, ClassNotFoundException, IOException {
    Client client = new Client(record.getHostAddress(), record.getHostPort());
    client.setTimeout(record.getSecondsTimeout() * 1000);
    client.setWebService(record.isWebService());
    Request request = new Request();
    request.setType(RequestType.TEST);
    request.setDate(HelperDate.now());
    Response response = client.sendRequest(request);
    return response.getStatusNotice() + ", Server time: " + HelperDate.format(response.getDate(), "H:mm:ss yyyy-MM-dd");
  }
View Full Code Here

    parameters.put("endcut", String.valueOf(recordScale.getEndCutPosition()));
    parameters.put("stabilitypos", String.valueOf(recordScale.getStabilityPosition()));
    parameters.put("stability", String.valueOf(recordScale.getStability()));
    parameters.put("floatingpoint", String.valueOf(recordScale.getFloatingPoint()));

    Client client = new Client(recordScale.getSC_ServerSettings().getHostAddress(), recordScale.getSC_ServerSettings().getHostPort());
    client.setTimeout(recordScale.getSC_ServerSettings().getSecondsTimeout() * 1000);
    client.setWebService(recordScale.getSC_ServerSettings().isWebService());
    Request request = new Request();
    request.setType(RequestType.READ_PORT);
    request.setDate(HelperDate.now());
    request.setParameters(parameters);
    response = client.sendRequest(request);
    return response;
  }
View Full Code Here

TOP

Related Classes of ve.net.dcs.sc.component.Client

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.