Package org.xmlBlaster.util.context

Examples of org.xmlBlaster.util.context.ContextNode


   
        // JMX
      try {
         Global glob = Global.instance();
           String instanceName = glob.validateJmxValue("AjaxServlet");
           this.contextNode = new ContextNode(ContextNode.SERVICE_MARKER_TAG, instanceName, null);//, glob.getContextNode());
           this.mbeanHandle = glob.registerMBean(this.contextNode, this);
        }
      catch (XmlBlasterException e) {
         log("Ignoring problem during JMX session registration: " + e.toString());
      }
View Full Code Here


         // String registryName = "mom.publisher";
         synchronized (ReplManagerPlugin.class) {
            this.instanceName = "replication";
         }
        
         ContextNode contextNode = new ContextNode(ContextNode.CONTRIB_MARKER_TAG, instanceName,
               this.global.getContextNode());
         if (!this.global.isRegisteredMBean(contextNode))
            this.mbeanHandle = this.global.registerMBean(contextNode, this);
        
         if (this.pool == null)
View Full Code Here

         }
      }
      SqlStatement sqlStatement = new SqlStatement(replPrefix, reqId, statement, slaves);
      this.sqlStatementMap.put(reqId, sqlStatement);
      String instanceName = getInstanceName() + ContextNode.SEP + replPrefix + ContextNode.SEP + reqId;
      ContextNode contextNode = new ContextNode(ContextNode.CONTRIB_MARKER_TAG, instanceName, this.global.getContextNode());
      sqlStatement.setHandle(this.global.registerMBean(contextNode, sqlStatement));
   }
View Full Code Here

     
      this.nodeInfo = new NodeConnectQos(this.remoteGlob, nodeId);
      this.state = new NodeStateInfo(this.remoteGlob);
      this.ME = "ClusterNode" + this.remoteGlob.getLogPrefixDashed() + "-" + "/node/" + getId() + "/";

      this.contextNode = new ContextNode(ContextNode.CLUSTERCONF_MARKER_TAG,
            getId(), this.fatherGlob.getClusterManager().getContextNode());
      this.mbeanHandle = this.fatherGlob.registerMBean(this.contextNode, this);

      //!!!      addDomainInfo(new NodeMasterInfo());
   }
View Full Code Here

         }
         this.glob = (ServerScope)this.property.getGlobal();

         // For JMX instanceName may not contain ","
         String instanceName = this.glob.validateJmxValue(this.storageId.getId());
         this.contextNode = new ContextNode(ContextNode.MAP_MARKER_TAG, instanceName,
                             this.glob.getContextNode()); // TODO: pass from real parent like TopicInfo
         this.mbeanHandle = this.glob.registerMBean(this.contextNode, this);

         // StoragePluginManager pluginManager = (StoragePluginManager)this.glob.getObjectEntry("org.xmlBlaster.engine.msgstore.StoragePluginManager");
         StoragePluginManager pluginManager = glob.getStoragePluginManager();
View Full Code Here

     
      // persistent change
      try {
         // Find out my topic name:
         String tmp = this.storageId.getXBStore().getPostfix();
         ContextNode ctx = ContextNode.valueOf(tmp);
         String oid = ctx.getInstanceName();
         if (oid != null) {
            org.xmlBlaster.client.key.PublishKey pk = new org.xmlBlaster.client.key.PublishKey(glob, oid);
            org.xmlBlaster.client.qos.PublishQos pq = new org.xmlBlaster.client.qos.PublishQos(glob);
            pq.getData().setAdministrative(true);
            pq.setPriority(PriorityEnum.MAX_PRIORITY);
View Full Code Here

      if (xmlBlasterImpl == null) {
         throw new XmlBlasterException(this.glob, ErrorCode.INTERNAL_UNKNOWN, ME + ".init", "xmlBlasterImpl object is null");
      }

      // For JMX instanceName may not contain ","
      this.contextNode = new ContextNode(ContextNode.SERVICE_MARKER_TAG,
            "XmlRpcDriver[" + getType() + "]",
            glob.getContextNode());
      this.mbeanHandle = this.glob.registerMBean(this.contextNode, this);
        
      try {
View Full Code Here

      throws XmlBlasterException {
      this.glob = glob;
      this.pluginConfig = pluginConfig;

      // For JMX instanceName may not contain ","
      this.contextNode = new ContextNode(ContextNode.SERVICE_MARKER_TAG,
            "Pop3Driver[" + getType() + "]", this.glob
                  .getScopeContextNode());
      this.mbeanHandle = this.glob.registerMBean(this.contextNode, this);

      this.pollingInterval = glob.get("pop3PollingInterval", 2000L, null,
View Full Code Here

      synchronized (NodeMasterInfo.class) {
         count = counter++;
      }
      version = glob.getProperty().get("cluster.domainMapper.version", DEFAULT_version);
     
      this.contextNode = new ContextNode(ContextNode.CLUSTERMASTER_MARKER_TAG,
            ""+getCount(), clusterNode.getContextNode());
      this.mbeanHandle = this.serverScope.registerMBean(this.contextNode, this);
   }
View Full Code Here

      if (log.isLoggable(Level.FINEST)) {
         log.finest(ME+": plugin paramenters: '" + pluginInfo.dumpPluginParameters() + "'");
         log.finest(ME+": plugin user data  : '" + pluginInfo.getUserData() + "'");
      }
      // For JMX instanceName may not contain ","
      this.contextNode = new ContextNode(ContextNode.SERVICE_MARKER_TAG,
            "FileWatcherPlugin[" + getType() + "]", global.getScopeContextNode());
      this.mbeanHandle = global.registerMBean(this.contextNode, this);

   }
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.context.ContextNode

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.