Examples of DomainRoot


Examples of com.sun.appserv.management.DomainRoot

 
    public synchronized void
  xtestDomainConfig()
    throws IllegalAccessException, InvocationTargetException
  {
    final DomainRoot  domainRoot    = getDomainRoot();
    final DomainConfig  domainConfig   = domainRoot.getDomainConfig();
   
    printPerf( "-- DomainConfig --- " );
   
    final int  ITER  = 20;
   
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

 
    public void
  testSpeed( )
    throws IOException, JMException
  {
    final DomainRoot  domainRootProxy  = ProxyFactory.getInstance( mConn ).
      createDomainRoot();
   
    final MBeanServerConnection  conn  = getMBeanServerConnection();
   
    testGetMBeanInfoSpeed( conn, Util.getObjectName( domainRootProxy ).getDomain(), JMXUtil.WILD_ALL  );
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

       
        return null;
    }
    private DomainConfig getDomainConfig(){
        final MBeanServer server = MBeanServerFactory.getMBeanServer();
        final DomainRoot domainRoot =
                ProxyFactory.getInstance(server).getDomainRoot();
        final DomainConfig  domainConfig = domainRoot.getDomainConfig();
        return domainConfig;
    }
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

        if ( INSTANCE != null )
        {
            throw new IllegalStateException();
        }
       
        final DomainRoot domainRoot =
            ProxyFactory.getInstance( server ).getProxy( domainRootObjectName, DomainRoot.class );
       
        INSTANCE = new LoadBalancerSupport( domainRoot, server );
        INSTANCE.mConfigListener.startListening();
       
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

     */
    public DomainRoot
  getDomainRoot()
    throws IOException
  {
    final DomainRoot    domainRoot  =
        ProxyFactory.getInstance( this ).getDomainRoot( true );
   
    return domainRoot;
  }
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

       
        try
        {
            MBeanServerConnection mbsc = getMBeanServerConnection(getHost(), getPort(),
                                                                  getUser(), getPassword());
            DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
            String lbName = (String) getOperands().get(0);
            LoadBalancer loadBalancer = domainRoot.getLoadBalancerMap().get(lbName);
            if (loadBalancer == null)
            {
                throw new CommandException(_strMgr.getString("NoLBFound",
                                            new Object[]{lbName}));
            }
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

           
        try
        {
            MBeanServerConnection mbsc = getMBeanServerConnection(getHost(), getPort(),
                                                    getUser(), getPassword());
            DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
            LBConfigHelper lbconfigHelper = new LBConfigHelper(domainRoot);
            lbconfigHelper.configureLBWeight(clusterName, instanceWeights);
            CLILogger.getInstance().printDetailMessage(getLocalizedString(
                                                       "CommandSuccessful",
                                                       new Object[] {name}));
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

  initDomainRoot( )
    throws IOException
  {
    final ObjectName  domainRootObjectName  = getDomainRootObjectName( );
   
    final DomainRoot  domainRoot  = (DomainRoot)
      newProxyInstance(domainRootObjectName, new Class[] { DomainRoot.class });
   
    return( domainRoot );
  }
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

       
        try
        {
            MBeanServerConnection mbsc = getMBeanServerConnection(getHost(), getPort(),
                                                                  getUser(), getPassword());
            DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
            DomainConfig domainConfig = domainRoot.getDomainConfig();
            Map lbMap = domainConfig.getLoadBalancerConfigMap();
            for (Object key : lbMap.keySet())
                CLILogger.getInstance().printMessage((String)key);
            CLILogger.getInstance().printDetailMessage(getLocalizedString(
                   "CommandSuccessful",
View Full Code Here

Examples of com.sun.appserv.management.DomainRoot

   
    private void verifyTargetCluster(MBeanServerConnection mbsc, String clusterName)
        throws CommandException
    {
        DomainRoot domainRoot =
                ProxyFactory.getInstance(mbsc).getDomainRoot();
        boolean isCluster=false;
        isCluster = domainRoot.getDomainConfig().getClusterConfigMap().keySet().contains( clusterName );
        if ( ! isCluster )
        {
            throw new CommandException(_strMgr.getString("TargetNotACluster",
                                                 new Object[] {clusterName}));
        }
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.