本文整理了Java中com.sun.enterprise.config.serverbeans.Server.getAdminHost()
方法的一些代码示例,展示了Server.getAdminHost()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.getAdminHost()
方法的具体详情如下:
包路径:com.sun.enterprise.config.serverbeans.Server
类名称:Server
方法名:getAdminHost
暂无
代码示例来源:origin: org.glassfish.main.admin/admin-util
public final String getHost(final String serverName) {
String host = null;
Server server = getServer(serverName);
if (server != null) {
host = server.getAdminHost();
}
return host;
}
代码示例来源:origin: org.glassfish.admin/admin-util
public final String getHost(final String serverName) {
String host = null;
Server server = getServer(serverName);
if (server != null) {
host = server.getAdminHost();
}
return host;
}
代码示例来源:origin: org.glassfish.main.admin/config-api
private boolean sameHost(Server server) {
return NetUtils.isEqual(server.getAdminHost(), host);
}
代码示例来源:origin: org.glassfish.admin/config-api
private boolean sameHost(Server server) {
return NetUtils.isEqual(server.getAdminHost(), host);
}
代码示例来源:origin: org.glassfish.main.core/kernel
public String getHost(String instance) throws InstanceNotFoundException {
Server s = domain.getServerNamed(instance);
if (s == null)
throw new InstanceNotFoundException();
return s.getAdminHost();
}
代码示例来源:origin: org.glassfish.admin/config-api
private void createLocalServerList() {
for (Server server : allServers) {
if (server.isDas())
serversOnHost.add(new ServerPorts(domain, server));
else if (NetUtils.isThisHostLocal(server.getAdminHost())) {
serversOnHost.add(new ServerPorts(domain, server));
}
}
}
代码示例来源:origin: org.glassfish.main.admin/config-api
private void createLocalServerList() {
for (Server server : allServers) {
if (server.isDas())
serversOnHost.add(new ServerPorts(domain, server));
else if (NetUtils.isThisHostLocal(server.getAdminHost())) {
serversOnHost.add(new ServerPorts(domain, server));
}
}
}
代码示例来源:origin: org.glassfish.cluster/cluster-admin
Server dasServer =
servers.getServer(SystemPropertyConstants.DAS_SERVER_NAME);
String dasHost = dasServer.getAdminHost();
String dasPort = Integer.toString(dasServer.getAdminPort());
代码示例来源:origin: org.glassfish.main.cluster/cluster-admin
Server dasServer =
servers.getServer(SystemPropertyConstants.DAS_SERVER_NAME);
String dasHost = dasServer.getAdminHost();
String dasPort = Integer.toString(dasServer.getAdminPort());
代码示例来源:origin: org.glassfish.cluster/cluster-admin
Server dasServer =
servers.getServer(SystemPropertyConstants.DAS_SERVER_NAME);
String dasHost = dasServer.getAdminHost();
String dasPort = Integer.toString(dasServer.getAdminPort());
代码示例来源:origin: org.glassfish.cluster/cluster-admin
Server dasServer =
servers.getServer(SystemPropertyConstants.DAS_SERVER_NAME);
String dasHost = dasServer.getAdminHost();
String dasPort = Integer.toString(dasServer.getAdminPort());
代码示例来源:origin: org.glassfish.cluster/cluster-admin
Server dasServer =
servers.getServer(SystemPropertyConstants.DAS_SERVER_NAME);
String dasHost = dasServer.getAdminHost();
String dasPort = Integer.toString(dasServer.getAdminPort());
代码示例来源:origin: org.glassfish.main.cluster/cluster-admin
Server dasServer =
servers.getServer(SystemPropertyConstants.DAS_SERVER_NAME);
String dasHost = dasServer.getAdminHost();
String dasPort = Integer.toString(dasServer.getAdminPort());
代码示例来源:origin: org.glassfish.main.cluster/cluster-admin
return msg;
String host = instance.getAdminHost();
代码示例来源:origin: org.glassfish.cluster/cluster-admin
ActionReport tReport = habitat.getComponent(ActionReport.class, "html");
InstanceInfo ii = new InstanceInfo(
habitat, server, helper.getAdminPort(server), server.getAdminHost(),
clusterName, logger, timeoutInMsec, tReport, stateService);
infos.add(ii);
代码示例来源:origin: org.glassfish.main.cluster/cluster-admin
boolean clustered = server.getCluster() != null;
int port = helper.getAdminPort(server);
String host = server.getAdminHost();
代码示例来源:origin: org.glassfish.cluster/cluster-admin
boolean clustered = server.getCluster() != null;
int port = helper.getAdminPort(server);
String host = server.getAdminHost();
代码示例来源:origin: org.glassfish.cluster/cluster-admin
return msg;
String host = instance.getAdminHost();
代码示例来源:origin: org.glassfish.main.cluster/cluster-admin
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));
}
代码示例来源:origin: org.glassfish.cluster/cluster-admin
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));
}
内容来源于网络,如有侵权,请联系作者删除!