Package com.sun.sgs.impl.kernel

Examples of com.sun.sgs.impl.kernel.ConfigManager


                TransactionCoordinator.
                    TXN_DISABLE_PREPAREANDCOMMIT_OPT_PROPERTY,
                false);
       
        // Set our portion of the ConfigManager MXBean
        ConfigManager config = (ConfigManager) collectorHandle.getCollector().
                getRegisteredMBean(ConfigManager.MXBEAN_NAME);
        config.setStandardTxnTimeout(boundedTimeout);
    }
View Full Code Here


            } catch (JMException e) {
                logger.logThrow(Level.CONFIG, e, "Could not register MBean");
            }
           
            /* Set the protocol descriptor in the ConfigMXBean. */
            ConfigManager config = (ConfigManager)
                    collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            if (config == null) {
                logger.log(Level.CONFIG, "Could not find ConfigMXBean");
            } else {
                config.setProtocolDescriptor(
        protocolAcceptor.getDescriptor().toString());
            }
     
  } catch (Exception e) {
      if (logger.isLoggable(Level.CONFIG)) {
View Full Code Here

    // tasks complete
    void taskFinishedSuccess(boolean trans, long ready, long run, long lag) {
        // Don't include unbounded tasks in our statistics.
        if (firstTask) {
            firstTask = false;
            ConfigManager config = (ConfigManager)
                collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            standardTimeout = config.getStandardTxnTimeout();
        }
        if (run > standardTimeout) {
            return;
        }
       
View Full Code Here

                                        WatchdogServiceStats.MXBEAN_NAME);
            } catch (JMException e) {
                logger.logThrow(Level.CONFIG, e, "Could not register MBean");
            }
            // set our data in the ConfigMXBean
            ConfigManager config = (ConfigManager)
                    collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            if (config == null) {
                logger.log(Level.CONFIG, "Could not find ConfigMXBean");
            } else {
                config.setJmxPort(jmxPort);
            }
           
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(Level.CONFIG,
         "node registered, host:{0}, localNodeId:{1}",
View Full Code Here

                                        WatchdogServiceStats.MXBEAN_NAME);
            } catch (JMException e) {
                logger.logThrow(Level.CONFIG, e, "Could not register MBean");
            }
            // set our data in the ConfigMXBean
            ConfigManager config = (ConfigManager)
                    collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            if (config == null) {
                logger.log(Level.CONFIG, "Could not find ConfigMXBean");
            } else {
                config.setJmxPort(jmxPort);
            }
           
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(Level.CONFIG,
         "node registered, host:{0}, localNodeId:{1}",
View Full Code Here

    // tasks complete
    void taskFinishedSuccess(boolean trans, long ready, long run, long lag) {
        // Don't include unbounded tasks in our statistics.
        if (firstTask) {
            firstTask = false;
            ConfigManager config = (ConfigManager)
                collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            standardTimeout = config.getStandardTxnTimeout();
        }
        if (run > standardTimeout) {
            return;
        }
       
View Full Code Here

            } catch (JMException e) {
                logger.logThrow(Level.CONFIG, e, "Could not register MBean");
            }
           
            /* Set the protocol descriptor in the ConfigMXBean. */
            ConfigManager config = (ConfigManager)
                    collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            if (config == null) {
                logger.log(Level.CONFIG, "Could not find ConfigMXBean");
            } else {
                config.setProtocolDescriptor(
        protocolAcceptor.getDescriptor().toString());
            }

            logger.log(Level.CONFIG,
                       "Created ClientSessionServiceImpl with properties:" +
View Full Code Here

        collector = new ProfileCollectorImpl(ProfileLevel.MIN, props, null);
        collectorHandle = new ProfileCollectorHandleImpl(collector);
       
        // Create and register the ConfigManager, which is used
        // by the TaskAggregateStats at the end of each transaction
        ConfigManager config = new ConfigManager(props);
        collector.registerMBean(config, ConfigManager.MXBEAN_NAME);
    }
View Full Code Here

                TransactionCoordinator.
                    TXN_DISABLE_PREPAREANDCOMMIT_OPT_PROPERTY,
                false);
       
        // Set our portion of the ConfigManager MXBean
        ConfigManager config = (ConfigManager) collectorHandle.getCollector().
                getRegisteredMBean(ConfigManager.MXBEAN_NAME);
        config.setStandardTxnTimeout(boundedTimeout);
    }
View Full Code Here

        collectorHandle = new ProfileCollectorHandleImpl(collector);
        OperationLoggingProfileOpListener listener =
            new OperationLoggingProfileOpListener(props, owner, null);
        collector.addListener(listener, true);
       
        ConfigManager config = new ConfigManager(props);
        try {
            collector.registerMBean(config, ConfigManager.MXBEAN_NAME);
        } catch (JMException e) {
            System.out.println("Could not register ConfigManager" + e);
        }
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.kernel.ConfigManager

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.