public static boolean isDas(Config c) { try { String type = c.getAdminService().getType(); if (type != null && ( type.equals("das") || type.equals("das-and-server"))) return true; } catch (Exception e) { // fall through } return false; }
private JmxConnector writeableJmxConnector() throws TransactionFailure { if (jmxConnector_w == null) { final AdminService adminService = config_w.getAdminService(); if (adminService == null) { return null; } final JmxConnector jmxC = adminService.getSystemJmxConnector(); if (jmxC == null) { return null; } jmxConnector_w = t.enroll(jmxC); } return jmxConnector_w; }
/** * Returns if the SystemJMXConnector is secure or not * * @param instance * @return */ public boolean isSecureJMX(String instance) { String isSecure = "false"; if (domain.getServerNamed(instance) != null) { if (domain.getServerNamed(instance).getConfig().getAdminService().getSystemJmxConnector() != null) { isSecure = domain.getServerNamed(instance).getConfig().getAdminService().getSystemJmxConnector().getSecurityEnabled(); } } return Boolean.parseBoolean(isSecure); } }
AdminService as = cfg.getAdminService(); if (as == null) guiContextRoot = ServerEnvironmentImpl.DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT;
private void configure(StringBuilder sb) throws TransactionFailure, PropertyVetoException { Server s = ConfigBeansUtilities.getServerNamed(ADMIN_SERVER); String ac = s.getConfigRef(); Config asc = null; //admin server config, that needs the configuration for (Config cfg : allConfigs.getConfig()) { if (cfg.getName().equals(ac)) { asc = cfg; break; } } //following things should happen transactionally - TODO replace SingleConfigCode by ConfigCode ... //createBackupRealm(sb, getAdminRealm(asc.getSecurityService()), getNewRealmName(asc.getSecurityService())); deleteRealm(asc.getSecurityService(), sb); createRealm(asc.getSecurityService(), sb); configureAdminService(asc.getAdminService()); //configure(asc.getSecurityService(), asc.getAdminService(), sb); }
AdminService service = config.getAdminService(); for( JmxConnector jmxConnector : service.getJmxConnector()){ Ssl sslElement = jmxConnector.getSsl();
private void addSslToJMXConnector(Config config, ActionReport report) { AdminService adminService = config.getAdminService();
} else if ("jmx-connector".equals(type)) { JmxConnector jmxConnector = null; for (JmxConnector listener : config.getAdminService().getJmxConnector()) { if (listener.getName().equals(listenerId)) { jmxConnector = listener;
public static void addIndex(Config c, ServiceLocator habitat, String name) { ServiceLocatorUtilities.addOneDescriptor(habitat, BuilderHelper.createConstantDescriptor(c, name, Config.class)); // directly referenced objects ConfigBeanProxy dirref[] = { c.getAdminService(), c.getAvailabilityService(), c.getDiagnosticService(), c.getHttpService(), c.getJavaConfig(), c.getLogService(), c.getNetworkConfig(), c.getSecurityService(), c.getThreadPools(), c.getMonitoringService(), }; for (ConfigBeanProxy cbp : dirref) { if (cbp != null) { ServiceLocatorUtilities.addOneDescriptor(habitat, BuilderHelper.createConstantDescriptor(cbp, name, ConfigSupport.getImpl(cbp).getProxyType())); } } // containers for (Container extension : c.getContainers()) { ServiceLocatorUtilities.addOneDescriptor(habitat, BuilderHelper.createConstantDescriptor(extension, name, ConfigSupport.getImpl(extension).getProxyType())); } }
AdminService adminsvc = cfg.getAdminService(); if (adminsvc != null) { List<JmxConnector> jmxConnectors = adminsvc.getJmxConnector();