Package org.serviceconnector.api.cln

Examples of org.serviceconnector.api.cln.SCClient.detach()


    } finally {
      try {
        SCMessage msg = new SCMessage();
        msg.setSessionInfo("kill server");
        service.deleteSession(5, msg);
        sc.detach(2); // detaches from SC, stops communication
      } catch (Exception e) {
        LOGGER.error("cleanup", e);
      }
    }
  }
View Full Code Here


      outStream.close();
    } catch (Exception e) {
      LOGGER.error("run", e);
    } finally {
      try {
        sc.detach(); // detaches from SC, stops communication
      } catch (Exception e) {
        LOGGER.error("cleanup", e);
      }
    }
  }
View Full Code Here

          dstStream.close();
        } catch (Exception e) {
        }
      }
      if (client != null) {
        client.detach();
      }
    }
  }

  /**
 
View Full Code Here

        // service.deleteSession(10); // alternative with operation timeout
        // SCMessage msg = new SCMessage();
        // msg.setSessionInfo("session-info"); // optional
        // service.deleteSession(10, msg); // alternative with operation timeout and message
        // service.deleteSession(msg); // alternative with message
        sc.detach();
      } catch (Exception e) {
        LOGGER.error("cleanup", e);
      }
    }
  }
View Full Code Here

    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      try {
        // disconnects from SC
        sc.detach();
      } catch (Exception e) {
        sc = null;
      }
    }
  }
View Full Code Here

    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      try {
        // disconnects from SC
        sc.detach();
      } catch (Exception e) {
        sc = null;
      }
    }
  }
View Full Code Here

    } finally {
      try {
        SCSubscribeMessage msg = new SCSubscribeMessage();
        msg.setSessionInfo("kill server");
        service.unsubscribe(5, msg);
        sc.detach(2); // detaches from SC, stops communication
      } catch (Exception e) {
        LOGGER.info("cleanup " + e.toString());
      }
    }
  }
View Full Code Here

    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      try {
        // disconnects from SC
        sc.detach();
      } catch (Exception e) {
        sc = null;
      }
    }
  }
View Full Code Here

        writer.writeCData(fileName);
        writer.writeEndElement();
      }
      writer.writeEndElement();
      if (client != null) {
        client.detach();
      }
    }
    writer.writeEndElement(); // close service tag
    // load current configuration directory
    String configFileName = SystemInfo.getConfigFileName();
View Full Code Here

          writer.writeEndElement();
        }
      }
      writer.writeEndElement();
      if (client != null) {
        client.detach();
      }
    }
    writer.writeEndElement(); // close service tag
    // get logs xml loader from factory
    LogsXMLLoader logsXMLLoader = (LogsXMLLoader) XMLLoaderFactory.getXMLLoader("/logs");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.