Examples of ConnectorConnectionPoolConfig


Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

  ensureDefaultInstance( final DomainConfig domainConfig )
  {
      ConnectorResourceConfig   result  =
          domainConfig.getConnectorResourceConfigMap().get( getDefaultInstanceName() );
     
      final ConnectorConnectionPoolConfig connectorConnectionPool =
          ConnectorConnectionPoolConfigTest.ensureDefaultInstance( domainConfig );
     
      if ( result == null )
      {
          result  = createInstance( domainConfig,
              getDefaultInstanceName(),
                  connectorConnectionPool.getName(), null );
      }
     
      return result;
  }
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

    }
   
      public static ConnectorConnectionPoolConfig
  ensureDefaultInstance( final DomainConfig dc )
  {
      ConnectorConnectionPoolConfig result =
          dc.getConnectorConnectionPoolConfigMap().get( getDefaultInstanceName() );
     
      if ( result == null )
      {
          result  = createInstance( dc, getDefaultInstanceName(),
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

    protected final AMXConfig
  createProgeny(final String name, final Map<String,String> options )
  {
    final Map<String,String>  allOptions  = MapUtil.newMap( OPTIONS, options );
   
      final ConnectorConnectionPoolConfig  config  =
        getDomainConfig().createConnectorConnectionPoolConfig(
                   name,
                   RESOURCE_ADAPTOR_NAME,
                   CONNECTOR_DEF_NAME, allOptions);
    return( config );
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

  private static final String[] DEFAULT_USERGROUPS         = new String[0];
 
        public static SecurityMapConfig
  ensureDefaultInstance( final DomainConfig domainConfig )
  {
      final ConnectorConnectionPoolConfig ccpc    =
          ConnectorConnectionPoolConfigTest.ensureDefaultInstance( domainConfig );
     
      SecurityMapConfig   result  =
          ccpc.getSecurityMapConfigMap().get( getDefaultInstanceName() );
      if ( result == null )
      {
          result  = createInstance( ccpc,
              getDefaultInstanceName(),
              DEFAULT_BACKEND_PRINCIPAL,
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

      final ResourceAdapterConfig rac = ResourceAdapterConfigTest.createInstance(
          getDomainConfig(), TEST_NAME );
     
      try
      {
          final ConnectorConnectionPoolConfig ccpc    =
              ConnectorConnectionPoolConfigTest.createInstance( getDomainConfig(),
                  TEST_NAME,
                  CONNECTOR_DEF_NAME,
                  rac.getName(), null );
         
          try
          {
              final String smcName    = TEST_NAME;
              final String[]  principals  = new String[] { TEST_NAME };
              final String[]  userGroups  = new String[ 0 ];
              final SecurityMapConfig  smc = createInstance(
                  ccpc,
                  smcName,
                  DEFAULT_BACKEND_PRINCIPAL,
                  DEFAULT_BACKEND_PASSWORD,
                  principals,
                  null );
              try
              {
                  assert( smcName.equals( smc.getName() ) );
                  assert( smc == ccpc.getSecurityMapConfigMap().get( smc.getName() ) );
                  testGetters( smc );
                 
                  final Set<String> principalsBefore  = GSetUtil.newSet( smc.getPrincipalNames() );
                  final String    PRINCIPAL1  = "testCreateRemove.test1";
                  smc.createPrincipal( PRINCIPAL1 );
                 
                  final Set<String> principalsAfter  = GSetUtil.newSet( smc.getPrincipalNames() );
                  assert( principalsAfter.contains( PRINCIPAL1 ) );
                 
                  smc.removePrincipal( PRINCIPAL1 );
                  assert( principalsBefore.equals( GSetUtil.newSet( smc.getPrincipalNames() ) ) );
                 
              }
              finally
              {
                  ccpc.removeSecurityMapConfig( smc.getName() );
              }             
          }
          finally
          {
              getDomainConfig().removeConnectorConnectionPoolConfig( ccpc.getName() );
          }
      }
      finally
      {
          getDomainConfig().removeResourceAdapterConfig( rac.getName() );
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

  private static final String[] DEFAULT_USERGROUPS         = new String[0];
 
        public static SecurityMapConfig
  ensureDefaultInstance( final DomainConfig domainConfig )
  {
      final ConnectorConnectionPoolConfig ccpc    =
          ConnectorConnectionPoolConfigTest.ensureDefaultInstance( domainConfig );
     
      SecurityMapConfig   result  =
          ccpc.getSecurityMapConfigMap().get( getDefaultInstanceName() );
      if ( result == null )
      {
          result  = createInstance( ccpc,
              getDefaultInstanceName(),
              DEFAULT_BACKEND_PRINCIPAL,
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

      final ResourceAdapterConfig rac = ResourceAdapterConfigTest.createInstance(
          getDomainConfig(), TEST_NAME );
     
      try
      {
          final ConnectorConnectionPoolConfig ccpc    =
              ConnectorConnectionPoolConfigTest.createInstance( getDomainConfig(),
                  TEST_NAME,
                  CONNECTOR_DEF_NAME,
                  rac.getName(), null );
         
          try
          {
              final String smcName    = "SecurityMapConfigTest.testCreateRemove";
              final String[]  principals  = new String[] { "SecurityMapConfigTest.testCreateRemove" };
              final String[]  userGroups  = new String[ 0 ];
              final SecurityMapConfig  smc = createInstance(
                  ccpc,
                  smcName,
                  DEFAULT_BACKEND_PRINCIPAL,
                  DEFAULT_BACKEND_PASSWORD,
                  principals,
                  null );
              try
              {
                  assert( smcName.equals( smc.getName() ) );
                  assert( smc == ccpc.getSecurityMapConfigMap().get( smc.getName() ) );
                  testGetters( smc );
                 
                  final Set<String> principalsBefore  = GSetUtil.newSet( smc.getPrincipalNames() );
                  final String    PRINCIPAL1  = "testCreateRemove.test1";
                  smc.createPrincipal( PRINCIPAL1 );
                 
                  final Set<String> principalsAfter  = GSetUtil.newSet( smc.getPrincipalNames() );
                  assert( principalsAfter.contains( PRINCIPAL1 ) );
                 
                  smc.removePrincipal( PRINCIPAL1 );
                  assert( principalsBefore.equals( GSetUtil.newSet( smc.getPrincipalNames() ) ) );
                 
              }
              finally
              {
                  ccpc.removeSecurityMapConfig( smc.getName() );
              }             
          }
          finally
          {
              getDomainConfig().removeConnectorConnectionPoolConfig( ccpc.getName() );
          }
      }
      finally
      {
          getDomainConfig().removeResourceAdapterConfig( rac.getName() );
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

       
        Map<String, ConnectorResourceConfig> crcMap =
                dc.getConnectorResourceConfigMap();
       
        for (String poolName : ccpcMap.keySet() ){
            ConnectorConnectionPoolConfig ccpc = ccpcMap.get(poolName);
            String connectionDefnName = ccpc.getConnectionDefinitionName();
            if (JAXR_REGISTRY_TYPE.equals(connectionDefnName) ||
                    UDDI_JAXR_REGISTRY_TYPE.equals(connectionDefnName)){
               
                for (String resourceName:crcMap.keySet()){
                    ConnectorResourceConfig crc = crcMap.get(resourceName);
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

        List result = new ArrayList();
        try{
            Iterator iter = AMXUtil.getDomainConfig().getConnectorConnectionPoolConfigMap().values().iterator();
            if(iter != null ){
                while(iter.hasNext()){
                    ConnectorConnectionPoolConfig res = (ConnectorConnectionPoolConfig)iter.next();
                    HashMap oneRow = new HashMap();
                    oneRow.put("name", res.getName());
                    oneRow.put("selected", (hasOrig)? isSelected(res.getName(), selectedList): false);
                    oneRow.put("resInfo", res.getResourceAdapterName());
                    oneRow.put("extraInfo", res.getConnectionDefinitionName());
                    oneRow.put("description", checkEmpty(res.getDescription()));
                    result.add(oneRow);
                }
            }
        }catch(Exception ex){
            ex.printStackTrace();
View Full Code Here

Examples of com.sun.appserv.management.config.ConnectorConnectionPoolConfig

            @HandlerOutput(name="isConnectionValidationRequired", type=Boolean.class)
            })
        public static void getConnectorConnectionPoolInfo(HandlerContext handlerCtx) {
       
            String jndiName = (String) handlerCtx.getInputValue("jndiName");
            ConnectorConnectionPoolConfig pool = AMXUtil.getDomainConfig().getConnectorConnectionPoolConfigMap().get(jndiName);
            if (pool == null){
                GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchConnectorConnectionPool"));
                return;
            }
            handlerCtx.setOutputValue("resourceAdapterName", pool.getResourceAdapterName());
            handlerCtx.setOutputValue("connectionDefinitionName", pool.getConnectionDefinitionName());
            handlerCtx.setOutputValue("description", pool.getDescription());
            handlerCtx.setOutputValue("steadyPoolSize", pool.getSteadyPoolSize());
            handlerCtx.setOutputValue("maxPoolSize", pool.getMaxPoolSize());
            handlerCtx.setOutputValue("poolResizeQuantity", pool.getPoolResizeQuantity());
            handlerCtx.setOutputValue("idleTimeoutInSeconds", pool.getIdleTimeoutInSeconds());
            handlerCtx.setOutputValue("maxWaitTimeInMillis", pool.getMaxWaitTimeInMillis());
            handlerCtx.setOutputValue("isConnectionValidationRequired", pool.getConnectionValidationRequired());
            handlerCtx.setOutputValue("failAllConnections", pool.getFailAllConnections());
            handlerCtx.setOutputValue("transactionSupport", pool.getTransactionSupport());
        }
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.