Package com.sun.appserv.management

Examples of com.sun.appserv.management.DomainRoot


     * ex. jaxrpc-simple#jaxrpc-simple.war#HelloIF <webservice>
     * @return nothingToLis
     */
    private boolean printWebServices(MBeanServerConnection mbsc)
    {
        DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
        Map map = domainRoot.getWebServiceMgr().getWebServiceEndpointKeys();
        Iterator keys = map.keySet().iterator();
        if (!keys.hasNext())
            return true;
        while (keys.hasNext())
            CLILogger.getInstance().printMessage(keys.next().toString() +
View Full Code Here


                    getWebServiceEndpointConfig(mbsc, webServiceName, false);
            if (wsc == null)
                throw new CommandException(getLocalizedString("CannotFindWebservice"));
            return displayTransformationRules(wsc);
        }
        DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
        final Set s = domainRoot.getQueryMgr().queryJ2EETypeSet(XTypes.WEB_SERVICE_ENDPOINT_CONFIG);
        final Iterator iter = s.iterator();
        boolean nothingToList = true;
        while (iter.hasNext() )
        {
            final WebServiceEndpointConfig wsc = (WebServiceEndpointConfig)iter.next();
View Full Code Here

        Timer timer = new Timer();
        try
        {
                //use http connector
            MBeanServerConnection mbsc = getMBeanServerConnection(host, port, user, password);
            final DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
       
            verifyTargetInstance(domainRoot, instanceName);
            final ServerRootMonitor srm = getServerRootMonitor(domainRoot, instanceName);
            MonitorTask monitorTask = getTask(monitorType, srm, filterName, timer, verbose, fileName);
            timer.scheduleAtFixedRate(monitorTask, 0, interval);
View Full Code Here

  {
      final MBeanServer   server  = MBeanServerFactory.createMBeanServer( "test" );
      assert( domainXML.exists() && domainXML.length() != 0 );
     
      final OfflineConfigIniter initer    = new OfflineConfigIniter( server, domainXML );
      final DomainRoot    domainRoot  = initer.getDomainRoot();
     
      return domainRoot;
  }
View Full Code Here

 
 
    public void
  testAMXReady()
  {
      final DomainRoot    domainRoot  = getDomainRoot();
     
      while ( ! domainRoot.getAMXReady() )
      {
          mySleep( 10 );
      }
  }
View Full Code Here

  }
 
    public void
  testWaitAMXReady()
  {
      final DomainRoot    domainRoot  = getDomainRoot();
     
      domainRoot.waitAMXReady();
  }
View Full Code Here

    public boolean multipleServersSupported()
    {
        if ( isDAS())
        {
            MBeanServer mbeanServer = java.lang.management.ManagementFactory.getPlatformMBeanServer();
            DomainRoot domainRoot = ProxyFactory.getInstance(mbeanServer).getDomainRoot();

            return domainRoot.getSystemInfo().supportsFeature(
                SystemInfo.MULTIPLE_SERVERS_FEATURE);
        }
        else
        {
            return false;
View Full Code Here

 
    public void
  testDomainRootCachedProxies()
    throws Exception
  {
    final DomainRoot  root  = (DomainRoot)getDomainRoot();
   
    assert( root.getJ2EEDomain() == root.getJ2EEDomain() );
    assert( root.getDomainConfig() == root.getDomainConfig() );
    assert( root.getQueryMgr() == root.getQueryMgr() );
    assert( root.getBulkAccess() == root.getBulkAccess() );
    assert( root.getUploadDownloadMgr() == root.getUploadDownloadMgr() );
    assert( root.getConfigDottedNames() == root.getConfigDottedNames() );
    assert( root.getMonitoringDottedNames() == root.getMonitoringDottedNames() );
   
    assert( root.getJ2EEDomain() == root.getJ2EEDomain() );
  }
View Full Code Here

   */
    public void
  testProxyTime()
    throws Exception
  {
    final DomainRoot  root  = (DomainRoot)getDomainRoot();
   
    final long  start = now();
    for( int i = 0; i < 5; ++i )
    {
      root.getContainer();
      root.getDomainRoot();
     
      root.getJ2EEDomain();
      root.getDomainConfig();
      root.getQueryMgr();
      root.getBulkAccess();
      root.getUploadDownloadMgr();
      root.getConfigDottedNames();
      root.getMonitoringDottedNames();
      root.getDeploymentMgr();
    }
    final long elapsed  = now() - start;
   
    // should be < 300 ms, so this is a 10X margin...
    assert( elapsed < 300 * 10 );
View Full Code Here

 
    public synchronized void
  xtestQueryMgr()
    throws IllegalAccessException, InvocationTargetException
  {
    final DomainRoot  domainRoot  = getDomainRoot();
    final QueryMgr    queryMgr   = domainRoot.getQueryMgr();
   
    final String  domain  = Util.getObjectName( queryMgr ).getDomain();
   
    printPerf( "-- QueryMgr --- " );
   
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.