Package com.sun.messaging.jmq.jmsserver.management.agent

Examples of com.sun.messaging.jmq.jmsserver.management.agent.Agent$ClusterStateListener


      localConnectionList.remove(con.getConnectionUID());

      throw new SecurityException(errStr);
  }

  Agent agent = Globals.getAgent();
  if (agent != null)  {
      agent.registerConnection(con.getConnectionUID().longValue());
      agent.notifyConnectionOpen(con.getConnectionUID().longValue());
  }

  /*
  System.err.println("#### CREATE DIRECT CXN: returning: " + con);
  System.err.println("#### CREATE DIRECT CXN: service from cxn info: " + con.getConnectionInfo().service);
View Full Code Here


                logger.log(Logger.INFO,
                           BrokerResources.I_CHANGE_OF_MEMORY_STATE,
                           args);

                Agent agent = Globals.getAgent();
                if (agent != null)  {
                    agent.notifyResourceStateChange(levelHandlers[oldLevel].localizedLevelName(),
          levelHandlers[newState].localizedLevelName(),
          null);
                }

                currentLevel = newState;
View Full Code Here

      new AttributeChangeNotification(this, sequenceNumber++, new Date().getTime(),
          "Attribute change", attrName,
                 newVal == null ? "" : newVal.getClass().getName(),
          oldVal, newVal));
 
  Agent agent = Globals.getAgent();

  if (agent != null)  {
      agent.notifyServiceAttrUpdated(getName(), attrName, oldVal, newVal);
  }
    }
View Full Code Here

          oldVal = null;
      }
            notifyAttrChange(BrokerAttributes.PORT, newVal, oldVal);

      Agent agent = Globals.getAgent();
      if (agent != null)  {
          agent.portMapperPortUpdated((Integer)oldVal, (Integer)newVal);
      }
  }

        initProps();
        return true;
View Full Code Here

    {
        if (!containsKey(id)) return; // already gone
  /*
   * Unregister/Destroy connection MBeans in the JMX agent in the broker.
   */
  Agent agent = Globals.getAgent();
  if (agent != null)  {
      agent.notifyConnectionClose(id.longValue());
      agent.unregisterConnection(id.longValue());
  }

  synchronized(addLock) {
            if (addCount > 0) {
                try {
View Full Code Here

        ServiceInfo info = (ServiceInfo)services.get(servicename);
        if (info != null) {
            info.pause(pause_all);
      setServiceStateProp(servicename, ServiceState.PAUSED);

            Agent agent = Globals.getAgent();
            if (agent != null)  {
                agent.notifyServicePause(servicename);
      }
        } else { // handle error
        }
    }
View Full Code Here

        ServiceInfo info = (ServiceInfo)services.get(servicename);
        if (info != null) {
            info.resume();
      setServiceStateProp(servicename, ServiceState.RUNNING);

            Agent agent = Globals.getAgent();
            if (agent != null)  {
                agent.notifyServiceResume(servicename);
      }
        } else { // handle error
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.management.agent.Agent$ClusterStateListener

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.