Package com.sun.appserv.management.config

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


                @HandlerInput(name="RemoveProps", type=ArrayList.class)
        })
    public static void saveJdbcConnectionPoolProperty(HandlerContext handlerCtx) {
        try{
            String jndiName = (String) handlerCtx.getInputValue("jndiName");
            JDBCConnectionPoolConfig pool = AMXUtil.getDomainConfig().getJDBCConnectionPoolConfigMap().get(jndiName);
            if (pool == null){
                GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.noSuchJDBCConnectionPool"));
                return;
            }
            AMXUtil.editProperties(handlerCtx, pool);
View Full Code Here


            @HandlerOutput(name="isIsolationLevelGuaranteed", type=Boolean.class)}
                )
        public static void getJdbcConnectionPoolDefaultInfo(HandlerContext handlerCtx) {
       
            String jndiName = (String) handlerCtx.getInputValue("jndiName");
            JDBCConnectionPoolConfig pool = AMXUtil.getDomainConfig().getJDBCConnectionPoolConfigMap().get(jndiName);
            if (pool == null){
    GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.noSuchJDBCConnectionPool"));
                return;
            }
            handlerCtx.setOutputValue("resType", pool.getDefaultValue("ResType"));
            handlerCtx.setOutputValue("description", pool.getDefaultValue("Description"));
            handlerCtx.setOutputValue("steadyPoolSize", pool.getDefaultValue("SteadyPoolSize"));
            handlerCtx.setOutputValue("maxPoolSize", pool.getDefaultValue("MaxPoolSize"));
            handlerCtx.setOutputValue("poolResizeQuantity", pool.getDefaultValue("PoolResizeQuantity"));
            handlerCtx.setOutputValue("idleTimeoutInSeconds", pool.getDefaultValue("IdleTimeoutInSeconds"));
            handlerCtx.setOutputValue("maxWaitTimeInMillis", pool.getDefaultValue("MaxWaitTimeInMillis"));
            handlerCtx.setOutputValue("isConnectionValidationRequired", pool.getDefaultValue("IsConnectionValidationRequired"));
            handlerCtx.setOutputValue("connectionValidationMethod", pool.getDefaultValue("ConnectionValidationMethod"));
            handlerCtx.setOutputValue("validationTableName", pool.getDefaultValue("ValidationTableName"));
            handlerCtx.setOutputValue("failAllConnections", pool.getDefaultValue("FailAllConnections"));
            handlerCtx.setOutputValue("allowNonComponentCallers", pool.getDefaultValue("AllowNonComponentCallers"));
            handlerCtx.setOutputValue("nonTransactionalConnections", pool.getDefaultValue("NonTransactionalConnections"));
            handlerCtx.setOutputValue("transactionIsolationLevel", pool.getDefaultValue("TransactionIsolationLevel"));
            handlerCtx.setOutputValue("isIsolationLevelGuaranteed", pool.getDefaultValue("IsIsolationLevelGuaranteed"));
        }
View Full Code Here

                @HandlerOutput(name="advance", type=Map.class)}
        )
        public static void getPoolAdvanceInfo(HandlerContext handlerCtx) {
       
            String jndiName = (String) handlerCtx.getInputValue("jndiName");
            JDBCConnectionPoolConfig pool = AMXUtil.getDomainConfig().getJDBCConnectionPoolConfigMap().get(jndiName);
            if (pool == null){
    GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.noSuchJDBCConnectionPool"));
                return;
            }
            Map advance = new HashMap();
            advance.put("wrapJDBCObjects",  StringToBoolean( pool.getWrapJDBCObjects()));
            advance.put("statementTimeoutInSeconds", pool.getStatementTimeoutInSeconds());
            advance.put("validateAtMostOncePeriodInSeconds", pool.getValidateAtMostOncePeriodInSeconds());
            advance.put("connectionLeakTimeoutInSeconds", pool.getConnectionLeakTimeoutInSeconds());
            advance.put("connectionLeakReclaim",  StringToBoolean( pool.getConnectionLeakReclaim()));
            advance.put("connectionCreationRetryAttempts",  pool.getConnectionCreationRetryAttempts());
            advance.put("connectionCreationRetryIntervalInSeconds", pool.getConnectionCreationRetryIntervalInSeconds());
            advance.put("lazyConnectionEnlistment",  StringToBoolean( pool.getLazyConnectionEnlistment()));
            advance.put("lazyConnectionAssociation",  StringToBoolean( pool.getLazyConnectionAssociation()));
            advance.put("associateWithThread", StringToBooleanpool.getAssociateWithThread()));
            advance.put("matchConnections",  StringToBoolean( pool.getMatchConnections()));
            advance.put("maxConnectionUsageCount", pool.getMaxConnectionUsageCount());
            handlerCtx.setOutputValue("advance", advance);
        }
View Full Code Here

                @HandlerOutput(name="advance", type=Map.class)}
        )
        public static void getPoolAdvanceDefaultInfo(HandlerContext handlerCtx) {
       
            String jndiName = (String) handlerCtx.getInputValue("jndiName");
            JDBCConnectionPoolConfig pool = AMXUtil.getDomainConfig().getJDBCConnectionPoolConfigMap().get(jndiName);
            if (pool == null){
    GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.noSuchJDBCConnectionPool"));
                return;
            }
            Map advance = new HashMap();
View Full Code Here

      )
    public static void savePoolAdvanceInfo(HandlerContext handlerCtx) {
        try{
            String jndiName = (String) handlerCtx.getInputValue("jndiName");
            Map advance = (Map) handlerCtx.getInputValue("advance");
            JDBCConnectionPoolConfig pool = AMXUtil.getDomainConfig().getJDBCConnectionPoolConfigMap().get(jndiName);
                if (pool == null){
        GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.noSuchJDBCConnectionPool"));
                    return;
                }
    pool.setWrapJDBCObjects(BooleanToString (advance.get("wrapJDBCObjects")));
    pool.setStatementTimeoutInSeconds((String) advance.get("statementTimeoutInSeconds"));
                pool.setValidateAtMostOncePeriodInSeconds((String) advance.get("validateAtMostOncePeriodInSeconds"));
                pool.setConnectionLeakTimeoutInSeconds((String) advance.get("connectionLeakTimeoutInSeconds"));
                pool.setConnectionLeakReclaim( BooleanToString( advance.get("connectionLeakReclaim")));
                pool.setConnectionCreationRetryAttempts((String) advance.get("connectionCreationRetryAttempts"));
                pool.setConnectionCreationRetryIntervalInSeconds((String) advance.get("connectionCreationRetryIntervalInSeconds"));
                pool.setLazyConnectionEnlistment( BooleanToString( advance.get("lazyConnectionEnlistment")));
                pool.setLazyConnectionAssociation( BooleanToStringadvance.get("lazyConnectionAssociation")));
                pool.setAssociateWithThread(BooleanToStringadvance.get("associateWithThread")));
                pool.setMatchConnections(BooleanToStringadvance.get("matchConnections")));
                pool.setMaxConnectionUsageCount((String) advance.get("maxConnectionUsageCount"));
        }catch (Exception ex){
             GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.JDBCConnectionPoolConfig

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.