Examples of AdminService


Examples of com.sun.enterprise.admin.server.core.AdminService

      
    /** Creates a new instance of RuleManager */
    public RuleManager(SelfManagementService service) {
        this.service = service;
        instanceName = (ApplicationServer.getServerContext()).getInstanceName();
        AdminService adSrv = AdminService.getAdminService();
        instanceMbs = (adSrv.getAdminContext()).getMBeanServer();
        configCtx = (ApplicationServer.getServerContext()).getConfigContext();
   
        activeRules = Collections.synchronizedMap(new HashMap<String,Rule>());
        inActiveRules = Collections.synchronizedMap(new HashMap<String,Rule>());
        noActionRules = Collections.synchronizedMap(new HashMap<String, Rule>());
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.AdminService

     */
    public void setRestartRequiredForTarget(ConfigContext ctx,
            ArrayList configChangeList ) {
  
        try {
            AdminService admServ = AdminService.getAdminService();

            if ((admServ != null) && (admServ.isDas())) {
                Set nonDynSet = ElementChangeHelper.
                    getXPathesForDynamicallyNotReconfigurableElements(
                    configChangeList);

                Iterator iter = nonDynSet.iterator();
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.AdminService

        final String timerMigrationNotEnabledForDAS =
                "EJBLifeCycle: Automatic "
                + " timer migration component not enabled "
                + " for DAS instance";
        try {
            AdminService adminService = AdminService.getAdminService();
            if ((adminService != null) && (! adminService.isDas())) {
                try {
                    Cluster cluster = ClusterHelper.getClusterForInstance(
                            serverContext.getConfigContext(),
                            serverContext.getInstanceName());
                    if (cluster != null) {
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.AdminService

     * @exception ServerLifecycleException if this subsystem detects a fatal
     *  error that prevents this subsystem from being used
     */
    public void onReady(ServerContext sc) throws ServerLifecycleException {
        serverStatus |= STATUS_READY;
        AdminService adminService = AdminService.getAdminService();
        if(adminService.isDas()) {
            ConfigContext ctx = adminService.getAdminContext()
            .getAdminConfigContext();
           
            ConfigContextEventListener el = new LoadbalancerAdminEventListener();
            ctx.addConfigContextEventListener(el);
        }
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.AdminService

    public static void init() {
        if (!isEE()) {
            return;
        }

        AdminService adminService = AdminService.getAdminService();

        if (!adminService.isDas()) {
            return;
        }

        ConfigContext ctx = adminService.getAdminContext()
                                        .getAdminConfigContext();
        ConfigContextEventListener el = new ClbAdminEventListener();
        ctx.addConfigContextEventListener(el);
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AdminService

            startService(iiopListeners[i]);
      logFine("Started ASSocketService for IIOP(S)");
  }

  // Start JMX Connector ports
  AdminService adminService = conf.getAdminService();
  JmxConnector[] jmxConnectors = adminService.getJmxConnector();
  for ( int i=0; i<jmxConnectors.length; i++ ) {
      if ( !jmxConnectors[i].isEnabled() )
    continue;
            startService(jmxConnectors[i], false, 0);
      logFine("Started ASSocketService for JMX Connector ");
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AdminService

                //checkDuplicate("mime",httpservice.getMime(), "name");
                checkDuplicate("virtual-server", httpservice.getVirtualServer(), "id");
               
                IiopService iiopservice = config[i].getIiopService();
                checkDuplicate("iiop-listener",iiopservice.getIiopListener(), "id");
                AdminService adminservice = config[i].getAdminService();
                checkDuplicate("jmx-connector",adminservice.getJmxConnector(), "name");
               
                JmsService jmsservice = config[i].getJmsService();
                checkDuplicate("jms-host",jmsservice.getJmsHost(), "name");
               
                SecurityService securityservice = config[i].getSecurityService();
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AdminService

        notifyAllNodeAgentsOfNewLocation(configContext);
    }

    private void notifyAllNodeAgentsOfNewLocation(ConfigContext cc) {
        try {
            AdminService as = ServerHelper.getAdminServiceForServer(
                                cc, "server");
            JmxConnector config = as.getJmxConnectorByName(
                                      as.getSystemJmxConnectorName());           
            ElementProperty clientHostname = config.getElementPropertyByName(
                                            IAdminConstants.HOST_PROPERTY_NAME);
            if (clientHostname != null) {
                String newHost = (String) clientHostname.getValue();
                NodeAgent[] nas = NodeAgentHelper.getNodeAgentsInDomain(cc);
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AdminService

                        new Object[] {newHost + ":" + newPort, newHost} );   
    }

    private void setJMXConnectorInfo(String newHost, String newPort
    throws ConfigException {    
        AdminService as = ServerHelper.getAdminServiceForServer(
                            getConfigContext(), "server");
        JmxConnector jmxConn = as.getJmxConnectorByName(
                                as.getSystemJmxConnectorName());
        jmxConn.setPort(newPort);

        ElementProperty clientHostname =
            jmxConn.getElementPropertyByName(HOST_PROPERTY_NAME);
        clientHostname.setValue(HOST_PROPERTY_NAME, newHost);
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AdminService

    }  

    private boolean haveDASCoordinatesChanged(String newHost, String newPort)
    throws ConfigException {
       
        AdminService as =
            ServerHelper.getAdminServiceForServer(getConfigContext(), "server");
        JmxConnector jmxConn =
            as.getJmxConnectorByName(as.getSystemJmxConnectorName());
       
        if (!jmxConn.getPort().equals(newPort)) return true;

        ElementProperty clientHostname =
            jmxConn.getElementPropertyByName(HOST_PROPERTY_NAME);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.