| | |
| | | import java.io.File; |
| | | import java.util.HashSet; |
| | | |
| | | import org.opends.quicksetup.CurrentInstallStatus; |
| | | import org.opends.quicksetup.Installation; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.statuspanel.event.ServerStatusChangeEvent; |
| | | import org.opends.statuspanel.event.ServerStatusChangeListener; |
| | |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | // do nothing; |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | desc.setStatus(ServerStatusDescriptor.ServerStatus.STOPPING); |
| | | } |
| | | else if (CurrentInstallStatus.isServerRunning()) |
| | | else if (Installation.getLocal().getStatus().isServerRunning()) |
| | | { |
| | | desc.setStatus(ServerStatusDescriptor.ServerStatus.STARTED); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * The following three methods are just commodity methods to get localized |
| | | * messages. |
| | | */ |
| | | private String getMsg(String key) |
| | | { |
| | | return getI18n().getMsg(key); |