示例#1
0
  public void stopHttpServer(HttpServer httpServer) {
    try {
      httpServer.stop(true);
    } catch (InterruptedException ie) {
      SysLog.logThrowable(ie);
    }

    SysLog.logInfo("http server was stopped");
  }
示例#2
0
 public void setEmailAddress(EmailAddress emailAddress) {
   if (client != null) {
     client.setEmailAddress(emailAddress);
   } else {
     SysLog.logError("attempted to set email address to null client");
   }
 }
示例#3
0
 public static void requestStop() {
   SysLog.logInfo("setting stop signal for http server");
   synchronized (instance) {
     isToStop = true;
     instance.notify();
   }
 }
示例#4
0
  /** Public singleton access method. */
  public static synchronized PhotoFactory getInstance() {
    if (instance == null) {
      SysLog.logInfo("setting generic PhotoFactory");
      setInstance(new PhotoFactory());
    }

    return instance;
  }
示例#5
0
 public void startHttpServer(HttpServer httpServer) throws Exception {
   httpServer.start();
   SysLog.logInfo("http server was started");
 }