public final String getHost(final String serverName) { String host = null; Server server = getServer(serverName); if (server != null) { host = server.getAdminHost(); } return host; }
public final String getHost(final String serverName) { String host = null; Server server = getServer(serverName); if (server != null) { host = server.getAdminHost(); } return host; }
public final int getAdminPort(final String serverName) { return getAdminPort(getServer(serverName)); }
public final int getAdminPort(final String serverName) { return getAdminPort(getServer(serverName)); }
private String initializeInstance() { if (!StringUtils.ok(instanceName)) return Strings.get("stop.instance.noInstanceName", cmdName); instance = helper.getServer(instanceName); if (instance == null) return Strings.get("stop.instance.noSuchInstance", instanceName); return null; }
private String initializeInstance() { if (!StringUtils.ok(instanceName)) return Strings.get("stop.instance.noInstanceName", cmdName); instance = helper.getServer(instanceName); if (instance == null) return Strings.get("stop.instance.noSuchInstance", instanceName); return null; }
private void prepare() throws InstanceNotRunningException { if (isError()) return; if (!StringUtils.ok(instanceName)) { setError(Strings.get("stop.instance.noInstanceName")); return; } instance = helper.getServer(instanceName); if (instance == null) { setError(Strings.get("stop.instance.noSuchInstance", instanceName)); return; } host = instance.getAdminHost(); if (host == null) { setError(Strings.get("stop.instance.noHost", instanceName)); return; } port = helper.getAdminPort(instance); if (port < 0) { setError(Strings.get("stop.instance.noPort", instanceName)); return; } if (!isInstanceRestartable()) setError(Strings.get("restart.notRestartable", instanceName)); if (logger.isLoggable(Level.FINER)) logger.finer(ObjectAnalyzer.toString(this)); }
private void prepare() throws InstanceNotRunningException { if (isError()) return; if (!StringUtils.ok(instanceName)) { setError(Strings.get("stop.instance.noInstanceName")); return; } instance = helper.getServer(instanceName); if (instance == null) { setError(Strings.get("stop.instance.noSuchInstance", instanceName)); return; } host = instance.getAdminHost(); if (host == null) { setError(Strings.get("stop.instance.noHost", instanceName)); return; } port = helper.getAdminPort(instance); if (port < 0) { setError(Strings.get("stop.instance.noPort", instanceName)); return; } if (!isInstanceRestartable()) setError(Strings.get("restart.notRestartable", instanceName)); logger.finer(ObjectAnalyzer.toString(this)); }