Package javax.management

Examples of javax.management.Notification


   protected void stopService() throws Exception
   {
      shutdown.set(true);

      //notify the login modules the mcf is going away, they need to look it up again later.
      sendNotification(new Notification(STOPPING_NOTIFICATION, getServiceName(), getNextNotificationSequenceNumber()));
      /*
       * if (jaasSecurityManagerService != null && securityDomainJndiName != null)
         server.invoke(jaasSecurityManagerService, "flushAuthenticationCache", new Object[] { securityDomainJndiName }, new String[] { String.class.getName() });
       */
      poolingStrategy.setConnectionListenerFactory(null);
View Full Code Here


      startAgent();
     
      log.info("SNMP agent going active");
       
      // Send the cold start!
      this.sendNotification(new Notification(EventTypes.COLDSTART, this,
                                             getNextNotificationSequenceNumber()));
   }
View Full Code Here

   /**
    * Sends outs controller notifications about service lifecycle events
    */
   private void sendControllerNotification(String type, ObjectName serviceName)
   {
      Notification notification = new Notification(type, this, super.nextNotificationSequenceNumber());
      notification.setUserData(serviceName);
      sendNotification(notification);
   }
View Full Code Here

      manager.declareBean("log", log, Logger.class);
      manager.declareBean("server", server, MBeanServer.class);
      manager.declareBean("manager", alm, AlarmManager.class);

      // test with a dummy notification first, to see if the script is valid
      Notification testNotification = new Notification("jboss.script.test", serviceName, 0);
      manager.declareBean("notification", testNotification, Notification.class);
      manager.declareBean("handback", "", Object.class);

      manager.exec(language, "in-memory-script", 0, 0, script);
View Full Code Here

   **/   
   public void sendV1()
      throws Exception
   {
      sendNotification(
         new Notification("V1", this, getNextNotificationSequenceNumber(),
                          "V1 test notifications"));
   }
View Full Code Here

   **/         
   public void sendV2()
      throws Exception
   {
      sendNotification(
         new Notification("V2", this, getNextNotificationSequenceNumber(),
                          "V2 test notifications"));       
   }
View Full Code Here

   /**
    * @see org.jboss.ha.framework.server.EventFactory#createEvent(java.lang.Object, java.lang.String)
    */
   public Notification createEvent(Object source, String type)
   {
      return new Notification(type, this, this.getNextNotificationSequenceNumber());
   }
View Full Code Here

         lc.start();
      }
      connectorsRunning = true;

      // Notify listeners that connectors have started processing requests
      sendNotification(new Notification(TOMCAT_CONNECTORS_STARTED, this, getNextNotificationSequenceNumber()));
   }
View Full Code Here

         throw new IllegalStateException("Must set TomcatDeployer before stopping connectors");
      if (!connectorsRunning)
         return;

      // Notify listeners that connectors have started processing requests
      sendNotification(new Notification(TOMCAT_CONNECTORS_STOPPED, this, getNextNotificationSequenceNumber()));

      MBeanServer server = super.getServer();
      ObjectName service = new ObjectName(tomcatDeployer.getDomain() + ":type=Service,serviceName=jboss.web");
      Object[] args = {};
      String[] sig = {};
View Full Code Here

  }
 
 
  public void dispatch(int eventType, String message)
  {
    Notification notification = new Notification(String.valueOf(eventType), this, _sequenceNumber++, message);
    sendNotification(notification);
  }
View Full Code Here

TOP

Related Classes of javax.management.Notification

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.