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

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


        con.sendControlMessage(pkt);

        if (status != Status.OK) {
            IMQService s = (IMQService)con.getService();
      Agent agent = Globals.getAgent();
      if (agent != null)  {
          agent.notifyConnectionReject(s.getName(),
                  username,
                  con.remoteHostString());
      }

            con.closeConnection(true,
                   GoodbyeReason.CON_FATAL_ERROR,
                  Globals.getBrokerResources().getKString(
                  BrokerResources.M_AUTH_FAIL_CLOSE));
        } else  {
            Agent agent = Globals.getAgent();
            if (agent != null)  {
                agent.registerConnection(con.getConnectionUID().longValue());
                agent.notifyConnectionOpen(con.getConnectionUID().longValue());
            }
  }

        return true;
    }
View Full Code Here


                   c.pause("Destination PAUSE");
               }
           }
        }

  Agent agent = Globals.getAgent();
  if (agent != null)  {
      agent.notifyDestinationPause(this, type);
  }
    }
View Full Code Here

                   c.resume("Destination.RESUME");
               }
           }
        }

  Agent agent = Globals.getAgent();
  if (agent != null)  {
      agent.notifyDestinationResume(this);
  }
       
    }
View Full Code Here

    /**
     * Compact the message file.
     */
    public void compact() throws BrokerException {
  Globals.getStore().compactDestination(this);
  Agent agent = Globals.getAgent();
  if (agent != null)  {
      agent.notifyDestinationCompact(this);
  }
    }
View Full Code Here

           if (indeliveryCount > 0) {
           logger.log(logger.INFO, br.getKString(br.I_NUM_MSGS_INDELIVERY_NOT_PURGED_FROM_DEST,
                                       indeliveryCount, uid.getLocalizedName()));
           }

         Agent agent = Globals.getAgent();
         if (agent != null)  {
             agent.notifyDestinationPurge(this);
         }
       } catch (Exception ex) {
           if (BrokerStateHandler.shuttingDown) {
               logger.log(Logger.INFO,
                   BrokerResources.E_PURGE_DST_FAILED, getName(), ex);
View Full Code Here

                        + " is also being" + " created by another broker");
                 return;
            }

            destinationList.put(d.getDestinationUID(), d);
      Agent agent = Globals.getAgent();
      if (agent != null)  {
          agent.registerDestination(d);
          agent.notifyDestinationCreate(d);
      }
        }
    }
View Full Code Here

                // attach the consumer
                d.addProducer(p);
            }
        }

  Agent agent = Globals.getAgent();
  if (agent != null)  {
      agent.registerDestination(d);
      agent.notifyDestinationCreate(d);
  }
        return d;
    }
View Full Code Here

                }
                d.destroy(reason, noerrnotfound);
                if (notify && d.sendClusterUpdate())
                    Globals.getClusterBroadcast().destroyDestination(d);

          Agent agent = Globals.getAgent();
          if (agent != null)  {
              agent.notifyDestinationDestroy(d);
              agent.unregisterDestination(d);
          }
            }
        } finally {
            d =(Destination)destinationList.remove(uid);
        }
View Full Code Here

        mm.reset();

  /*
   * Reset metrics that are kept track of by JMX MBeans
   */
  Agent agent = Globals.getAgent();
  if (agent != null)  {
      agent.resetMetrics();
  }
    }
View Full Code Here

     *      class.
     * @param oldVal  Old value
     * @param newVal  New value
     */
    public void notifyAttrUpdated(int attr, Object oldVal, Object newVal)  {
  Agent agent = Globals.getAgent();
  if (agent != null)  {
      agent.notifyDestinationAttrUpdated(this, attr, oldVal, newVal);
  }
    }
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.