| | |
| | | |
| | | import static com.forgerock.opendj.util.OperatingSystem.*; |
| | | |
| | | import static org.opends.admin.ads.util.ConnectionUtils.*; |
| | | import static org.opends.admin.ads.util.PreferredConnection.Type.*; |
| | | import static org.opends.server.tools.ConfigureWindowsService.*; |
| | | |
| | |
| | | desc.setJvmMemoryUsageMonitor(rCtx.getJvmMemoryUsage()); |
| | | desc.setSystemInformationMonitor(rCtx.getSystemInformation()); |
| | | desc.setWorkQueueMonitor(rCtx.getWorkQueue()); |
| | | desc.setOpenDJVersion(rCtx.getVersionMonitor().getAttribute("fullVersion").firstValueAsString()); |
| | | String installPath = rCtx.getSystemInformation().getAttribute("installPath").firstValueAsString(); |
| | | desc.setOpenDJVersion(firstValueAsString(rCtx.getVersionMonitor(), "fullVersion")); |
| | | String installPath = firstValueAsString(rCtx.getSystemInformation(), "installPath"); |
| | | if (installPath != null) |
| | | { |
| | | desc.setInstallPath(installPath); |
| | | } |
| | | String instancePath = rCtx.getSystemInformation().getAttribute("instancePath").firstValueAsString(); |
| | | String instancePath = firstValueAsString(rCtx.getSystemInformation(), "instancePath"); |
| | | if (instancePath != null) |
| | | { |
| | | desc.setInstancePath(instancePath); |