示例#1
0
文件: Server.java 项目: happz/reddeer
 public void stop() {
   log.info("Stopping server " + getLabel().getName());
   ServerState state = getLabel().getState();
   if (!ServerState.STARTING.equals(state) && !state.isRunningState()) {
     throw new ServersViewException("Cannot stop server because it not running");
   }
   operateServerState("Stop", ServerState.STOPPED);
 }
示例#2
0
文件: Server.java 项目: happz/reddeer
 @Override
 public String description() {
   return "server's state is: " + expectedState.getText();
 }
示例#3
0
文件: Server.java 项目: happz/reddeer
 @Override
 public boolean test() {
   return expectedState.equals(getLabel().getState());
 }