Package com.sun.appserv.management

Examples of com.sun.appserv.management.DomainRoot


        validateOptions();
        try
        {
            MBeanServerConnection mbsc = getMBeanServerConnection(getHost(), getPort(),
                                                                  getUser(), getPassword());
            DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
            //final Set s = domainRoot.getQueryMgr().queryJ2EETypeSet(XTypes.WEB_SERVICE_ENDPOINT_CONFIG);
            String webServiceName = (String) getOperands().get(0);
            validateWebServiceName(webServiceName, true);
            WebServiceEndpointConfig wsc =
                    getWebServiceEndpointConfig(mbsc, webServiceName, true);
View Full Code Here


   


    private CallFlowMonitor getCallFlowMonitor(MBeanServerConnection mbsc, String instanceName)
    {
        DomainRoot domainRoot =
                ProxyFactory.getInstance(mbsc).getDomainRoot();
        Map<String,ServerRootMonitor> serverRootMonitorMap =
                domainRoot.getMonitoringRoot().getServerRootMonitorMap();
        ServerRootMonitor serverRootMonitor = serverRootMonitorMap.get(instanceName);
        //IF the instance is not running or when no monitoring on, just return;
        if (serverRootMonitor == null)
            return null;
        CallFlowMonitor cfm = serverRootMonitor.getCallFlowMonitor();
View Full Code Here

    }
   
    private void verifyTargetInstance(MBeanServerConnection mbsc, String instanceName)
        throws CommandException
    {
        DomainRoot domainRoot =
                ProxyFactory.getInstance(mbsc).getDomainRoot();
        boolean isServer=false;
        isServer = domainRoot.getDomainConfig().getServerConfigMap().keySet().contains(instanceName);
        if ( ! isServer )
        {
            throw new CommandException(getLocalizedString("TargetNotAnInstance",
                                                 new Object[] {instanceName}));
        }
        else
        {
            final Map<String,J2EEServer> servers =
                domainRoot.getJ2EEDomain().getJ2EEServerMap();
            J2EEServer server = servers.get( instanceName );

            boolean running = server != null &&
                                server.getstate() == server.STATE_RUNNING ||
                                server.getstate() == server.STATE_STARTING;
View Full Code Here

    protected void verifyTargetInstance(MBeanServerConnection mbsc, String instanceName)
        throws CommandException
    {
        try
        {
            final DomainRoot domainRoot =
                    ProxyFactory.getInstance(mbsc).getDomainRoot();
            boolean isServer=false;
            isServer = domainRoot.getDomainConfig().getServerConfigMap().keySet().contains(instanceName);
            if ( ! isServer )
            {
                throw new CommandException(getLocalizedString("TargetNotAnInstance",
                                                     new Object[] {instanceName}));
            }
            else
            {
                final Map<String,J2EEServer> servers =
                    domainRoot.getJ2EEDomain().getJ2EEServerMap();
                final J2EEServer server = servers.get( instanceName );

                final boolean running = server != null &&
                                    server.getstate() == server.STATE_RUNNING ||
                                    server.getstate() == server.STATE_STARTING;
View Full Code Here

             if ( appConfig == null){
                 throw new CommandException (
                            getLocalizedString("NoAppFoundForWS",
                                                new Object[] {regName}));            
             }
            DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
            final WebServiceEndpointInfo info =
                domainRoot.getWebServiceMgr().getWebServiceEndpointInfo(fqWebServiceName);
            if (info == null)
            {
                String moduleName = fqWebServiceName.substring(firstHashIdx + 1,
                                            fqWebServiceName.lastIndexOf("#"));
                throw new CommandException(getLocalizedString("NoModuleOrEndpointFoundForWS",
View Full Code Here

        return null;
    }


    private J2EEApplicationConfig getApplicationConfigMBean (MBeanServerConnection mbsc, String appName) {
        DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
        DomainConfig domainConfig = domainRoot.getDomainConfig();
        Map appCfgMap = domainConfig.getJ2EEApplicationConfigMap();
        if ( appCfgMap != null){
            return (J2EEApplicationConfig) appCfgMap.get(appName);
        } else {
            return null;
View Full Code Here

            return null;
        }
    }
   
    private EJBModuleConfig getEJBModuleConfigMBean(MBeanServerConnection mbsc, String moduleName) {
        DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
        DomainConfig domainConfig = domainRoot.getDomainConfig();
        Map appCfgMap = domainConfig.getEJBModuleConfigMap();
        if ( appCfgMap != null){
            return (EJBModuleConfig) appCfgMap.get(moduleName);
        } else {
            return null;
View Full Code Here

            return null;
        }
    }
   
    private WebModuleConfig getWebModuleConfigMBean(MBeanServerConnection mbsc, String moduleName) {
        DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
        DomainConfig domainConfig = domainRoot.getDomainConfig();
        Map appCfgMap = domainConfig.getWebModuleConfigMap();
        if ( appCfgMap != null){
            return (WebModuleConfig) appCfgMap.get(moduleName);
        } else {
            return null;
View Full Code Here

    }
   
    private String getStandAloneModuleType(MBeanServerConnection mbsc, String fqName)
                    throws CommandException
    {
         DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
         final WebServiceEndpointInfo info =
            domainRoot.getWebServiceMgr().getWebServiceEndpointInfo(
                    fqName);
         if (info == null){
             throw new CommandException (
                        getLocalizedString("NoStandaloneModuleFoundForWS", new Object[]{fqName}));
         }
View Full Code Here

        validateOptions();
        try
        {
            MBeanServerConnection mbsc = getMBeanServerConnection(getHost(), getPort(),
                                                                  getUser(), getPassword());
            DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
            //final Set s = domainRoot.getQueryMgr().queryJ2EETypeSet(XTypes.WEB_SERVICE_ENDPOINT_CONFIG);
            String webServiceName = getOption(WEB_SERVICE_OPTION);
            validateWebServiceName(webServiceName, true);
            WebServiceEndpointConfig wsc =
                    getWebServiceEndpointConfig(mbsc, webServiceName, true);
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.DomainRoot

Copyright © 2018 www.massapicom. 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.