1 16 17 package org.apache.jetspeed.daemon; 18 19 20 27 public interface Daemon extends Runnable { 28 29 public final static int STATUS_UNKNOWN = 0; 30 public final static int STATUS_NOT_PROCESSED = 1; 31 public final static int STATUS_PROCESSED = 2; 32 public final static int STATUS_PROCESSING = 3; 33 public final static int STATUS_NOT_STARTED = 4; 34 public final static int STATUS_STARTED = 5; 35 36 39 public final static int RESULT_UNKNOWN = 0; 40 41 44 public final static int RESULT_SUCCESS = 1; 45 46 49 public final static int RESULT_FAILED = 2; 50 51 54 public final static int RESULT_PROCESSING = 3; 55 56 59 public void init(DaemonConfig config, DaemonEntry entry); 60 61 64 public DaemonConfig getDaemonConfig(); 65 66 70 public int getStatus(); 71 72 75 public void setStatus(int status); 76 77 80 public DaemonEntry getDaemonEntry(); 81 82 93 public int getResult(); 94 95 98 public void setResult( int result ); 99 100 104 public String getMessage(); 105 } 106 107 | Popular Tags |