Examples of ConfigManager


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

                                        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

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

    // 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

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

            } 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

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

        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

Examples of com.taobao.tddl.jdbc.group.config.ConfigManager

      };
      List<DataSourceWrapper> dss = ConfigManager.buildDataSourceWrapper(dsKeyAndWeightCommaArray, wrapper);
      init(dss);
    } else {
      checkProperties();
      configManager = new ConfigManager(this);
      configManager.init();
    }
  }
View Full Code Here

Examples of es.urjc.escet.semium.ConfigManager

     * @param response servlet response
     */
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
       
        ConfigManager cm = ConfigManager.getInstance();
       
        /** Security **/
        PermissionManager pm = PermissionManager.getInstance();
        SessionManager sm = new SessionManager(request.getSession());
        if(!pm.hasPermission(sm.getCurrentUser(),PermissionManager.permission.permitGeneralAdministration))
            response.sendRedirect("login?redirect=configviewer");
        /** End Security **/
       
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();

        String status = "";
       
        if(request.getParameter("reload")!=null){
            cm.reload();
            status = "reloaded";
        }
        if(request.getParameter("rewrite")!=null){
            try{
                cm.save();
                status = "written";
            }catch (Exception ex){
                status = "could not write config: " + ex.toString();
            }
        }
       
        out.println("<html>");
        out.println("<head>");
        out.println("<title>View current configuration</title>");
        out.println("</head>");
        out.println("<body>");
        out.println("<a href=\"admin\">back</a><br/>");
        out.println("<h1>Active Configuration </h1>");
        out.println(status);
        out.println(cm.toHTMLString());
        out.println("<form action=\"configviewer?reload\" method=\"POST\"><input type=\"submit\" value=\"reload\"/></form>");
        out.println("<form action=\"configviewer?rewrite\" method=\"POST\"><input type=\"submit\" value=\"rewrite\"/></form>");
        out.println("</body>");
        out.println("</html>");

View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    @Override
    protected void initBeforeSetView() {
        super.initBeforeSetView();

        configManager = new ConfigManager();
        startStopController = new StartStopController(this, errorController, readOnly);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new GenericSensorListController(null, errorController);
        actuatorsListController = new GenericActuatorListController(null, errorController);
View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    /**
     * Common to all constructors.
     */
    private void construct() {
        setDragEnabled(true);
        configManager = new ConfigManager();
        copyAction = new AbstractAction("Copy") {
            private static final long serialVersionUID = 9217466802582309262L;

            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    @Override
    protected void initBeforeSetView() {
        super.initBeforeSetView();

        configManager = new ConfigManager();
        startStopController = new StartStopController(this, errorController, readOnly);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorListController(null, errorController);
        actuatorsListController = new ActuatorListController(null, errorController);
View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    @Override
    protected void initBeforeSetView() {
        super.initBeforeSetView();

        configManager = new ConfigManager();
        startStopController = new StartStopController(this, errorController, readOnly);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorListController(null, errorController);
        actuatorsListController = new ActuatorListController(null, errorController);
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.