1 14 15 package org.quickserver.net; 16 25 public interface Service { 26 27 public static int UNKNOWN = -1; 28 public static int STOPPED = 0; 29 public static int INIT = 1; 30 public static int SUSPENDED = 2; 31 public static int RUNNING = 5; 32 33 34 public boolean initService(Object config[]); 35 36 public boolean startService(); 37 38 public boolean stopService(); 39 40 public boolean suspendService(); 42 public boolean resumeService(); 44 52 public String info(); 53 57 public int getServiceState(); 58 59 63 public Throwable getServiceError(); 64 } 65 | Popular Tags |