1 22 package org.jboss.system.server; 23 24 import java.util.Date ; 25 import java.util.Properties ; 26 27 35 public interface Server 36 { 37 38 public final String START_NOTIFICATION_TYPE = "org.jboss.system.server.started"; 39 40 public final String STOP_NOTIFICATION_TYPE = "org.jboss.system.server.stopped"; 41 42 43 Date getStartDate(); 44 45 46 String getVersion(); 47 48 49 String getVersionName(); 50 51 52 String getBuildNumber(); 53 54 55 String getBuildJVM(); 56 57 58 String getBuildOS(); 59 60 61 String getBuildID(); 62 63 64 String getBuildDate(); 65 66 67 boolean isInShutdown(); 68 69 71 72 81 void init(Properties props) throws IllegalStateException , Exception ; 82 83 91 ServerConfig getConfig() throws IllegalStateException ; 92 93 99 void start() throws IllegalStateException , Exception ; 100 101 106 boolean isStarted(); 107 108 116 void shutdown() throws IllegalStateException ; 117 118 123 void exit(int exitcode); 124 127 void exit(); 128 129 134 void halt(int exitcode); 135 138 void halt(); 139 } 140 | Popular Tags |