com.sun.enterprise.config.serverbeans.Server.isInstance()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(213)

本文整理了Java中com.sun.enterprise.config.serverbeans.Server.isInstance()方法的一些代码示例,展示了Server.isInstance()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.isInstance()方法的具体详情如下:
包路径:com.sun.enterprise.config.serverbeans.Server
类名称:Server
方法名:isInstance

Server.isInstance介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.main.admin/config-api

private void createRemoteServerList() {
  for (Server server : allServers) {
    // no DAS!
    if (server.isInstance() && sameHost(server))
      serversOnHost.add(new ServerPorts(domain, server));
  }
}

代码示例来源:origin: org.glassfish.admin/config-api

private void createRemoteServerList() {
  for (Server server : allServers) {
    // no DAS!
    if (server.isInstance() && sameHost(server))
      serversOnHost.add(new ServerPorts(domain, server));
  }
}

代码示例来源:origin: org.glassfish.admin/admin-util

public Set<String> getTargetsReferringResourceRef(String refName) {
  Set<String> targets = new HashSet<String>();
  List<Server> servers = domain.getServers().getServer();
  for(Server server: servers){
    if(server.getResourceRef(refName) != null){
      if(server.getCluster() != null){
        targets.add(server.getCluster().getName());
      }else if(server.isDas()){
        targets.add(SystemPropertyConstants.DAS_SERVER_NAME);
      }else if(server.isInstance()){
        targets.add(server.getName());
      }
    }
  }
  return targets;
}

代码示例来源:origin: org.glassfish.main.resourcebase.resources/nucleus-resources

public Set<String> getTargetsReferringResourceRef(String refName) {
  Set<String> targets = new HashSet<String>();
  List<Server> servers = domain.getServers().getServer();
  for(Server server: servers){
    if(server.getResourceRef(refName) != null){
      if(server.getCluster() != null){
        targets.add(server.getCluster().getName());
      }else if(server.isDas()){
        targets.add(SystemPropertyConstants.DAS_SERVER_NAME);
      }else if(server.isInstance()){
        targets.add(server.getName());
      }
    }
  }
  return targets;
}

代码示例来源:origin: org.glassfish.main.cluster/gms-adapter

if (server.isInstance()) {
  try {
    ServerDirs sDirs = new ServerDirs(env.getInstanceRoot());

代码示例来源:origin: org.glassfish.admin/config-api

ServerPorts(Domain domain, Server theServer) {
  Cluster cluster = null;
  Config config = null;
  if (theServer.isInstance())
    cluster = domain.getClusterForInstance(theServer.getName());
  String configName = theServer.getConfigRef();
  if (StringUtils.ok(configName))
    config = domain.getConfigNamed(configName);
  initialize(cluster, config, domain, theServer);
}

代码示例来源:origin: org.glassfish.main.admin/config-api

ServerPorts(Domain domain, Server theServer) {
  Cluster cluster = null;
  Config config = null;
  if (theServer.isInstance())
    cluster = domain.getClusterForInstance(theServer.getName());
  String configName = theServer.getConfigRef();
  if (StringUtils.ok(configName))
    config = domain.getConfigNamed(configName);
  initialize(cluster, config, domain, theServer);
}

代码示例来源:origin: org.glassfish.deployment/deployment-admin

ActionReport.ExitCode.SUCCESS)) {
try {
  if (server.isInstance()) {

相关文章