Package org.serviceconnector.util

Examples of org.serviceconnector.util.FileCtx


      responder.startListenAsync();
    }
    // Write PID file
    if (AppContext.getBasicConfiguration().isWritePID()) {
      String fs = System.getProperty("file.separator");
      FileCtx fileCtx = FileUtility.createPIDfileAndLock(AppContext.getBasicConfiguration().getPidPath() + fs
          + Constants.PID_FILE_NAME);
      SC.addExitHandler(fileCtx);
    }
    LOGGER.log(Level.OFF, "Service Connector is running ...");
  }
View Full Code Here


      responder.startListenAsync();
    }
    // Write PID file
    if (AppContext.getBasicConfiguration().isWritePID()) {
      String fs = System.getProperty("file.separator");
      FileCtx fileCtx = FileUtility.createPIDfileAndLock(AppContext.getBasicConfiguration().getPidPath() + fs
          + Constants.PID_FILE_NAME);
      SC.addExitHandler(fileCtx);
    }
    LOGGER.log(Level.OFF, "Service Connector is running ...");
  }
View Full Code Here

        } catch (Exception e) {
          LOGGER.error("runSessionServer", e);
          server.deregister();
        }
      }
      FileCtx fileCtx = FileUtility.createPIDfileAndLock(FileUtility.getLogPath() + fs + this.serverName + ".pid");
      // add exit handler
      try {
        this.addExitHandler(FileUtility.getLogPath() + fs + this.serverName + ".pid", fileCtx);
      } catch (SCMPValidatorException e1) {
        LOGGER.fatal("unable to get path to pid file", e1);
View Full Code Here

  @Override
  public void run() {
    try {
      try {
        FileCtx fileChannel = FileUtility.createPIDfileAndLock(FileUtility.getLogPath() + fs + this.clientName + ".pid");
        // add exit handler
        this.addExitHandler(FileUtility.getLogPath() + fs + this.clientName + ".pid", fileChannel);
      } catch (SCMPValidatorException e1) {
        LOGGER.fatal("unable to get path to pid file", e1);
      } catch (Exception e) {
View Full Code Here

        } catch (Exception e) {
          LOGGER.error("runSessionServer", e);
          server.deregister();
        }
      }
      FileCtx fileCtx = FileUtility.createPIDfileAndLock(FileUtility.getLogPath() + fs + this.serverName + ".pid");
      // add exit handler
      try {
        this.addExitHandler(FileUtility.getLogPath() + fs + this.serverName + ".pid", fileCtx);
      } catch (SCMPValidatorException e1) {
        LOGGER.fatal("unable to get path to pid file", e1);
View Full Code Here

        } catch (Exception e) {
          LOGGER.error("runPublishServer", e);
          server.deregister();
        }
      }
      FileCtx fileCtx = FileUtility.createPIDfileAndLock(FileUtility.getLogPath() + fs + this.serverName + ".pid");
      // add exit handler
      try {
        this.addExitHandler(FileUtility.getLogPath() + fs + this.serverName + ".pid", fileCtx);
      } catch (SCMPValidatorException e1) {
        LOGGER.fatal("unable to get path to pid file", e1);
View Full Code Here

        } catch (Exception e) {
          LOGGER.error("runPublishServer", e);
          server.deregister();
        }
      }
      FileCtx fileCtx = FileUtility.createPIDfileAndLock(FileUtility.getLogPath() + fs + this.serverName + ".pid");
      // add exit handler
      try {
        this.addExitHandler(FileUtility.getLogPath() + fs + this.serverName + ".pid", fileCtx);
      } catch (SCMPValidatorException e1) {
        LOGGER.fatal("unable to get path to pid file", e1);
View Full Code Here

TOP

Related Classes of org.serviceconnector.util.FileCtx

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.