Esempio n. 1
0
 @Override
 public void stateChanged(DOFServer server, State state) {
   // Called when the status of the connectToCloud DOFConnection changes
   String msg = " is started";
   if (state.isStarted())
     statusTracker.setStatus(server.getState().getName(), StatusTracker.Status.Ok);
   else {
     msg = " is stopped";
     statusTracker.setStatus(server.getState().getName(), StatusTracker.Status.Warn);
   }
   log.info("\nserver " + server.getState().getName() + msg);
 }
Esempio n. 2
0
 /* *************************************************************************
  * DOFServer.StateListener implementation
  **************************************************************************/
 @Override
 public void removed(DOFServer server, DOFException exception) {
   statusTracker.removeStatus(server.getState().getName());
 }