コード例 #1
0
 private void subscribeJMXRuntimeEvent() {
   if (debug) {
     System.out.println(
         "["
             + new java.util.Date()
             + " "
             + host
             + " "
             + this.getClass().getSimpleName()
             + "] Subscribe JMX Runtime");
     outDebug.println(
         "["
             + new java.util.Date()
             + " "
             + host
             + " "
             + this.getClass().getSimpleName()
             + "] Subscribe JMX Runtime");
   }
   ProActiveRuntimeImpl part = ProActiveRuntimeImpl.getProActiveRuntime();
   part.addDeployment(listener.getDeployID());
   JMXNotificationManager.getInstance().subscribe(part.getMBean().getObjectName(), this);
   if (debug) {
     System.out.println(
         "["
             + new java.util.Date()
             + " "
             + host
             + " "
             + this.getClass().getSimpleName()
             + "] Subscribed");
     outDebug.println(
         "["
             + new java.util.Date()
             + " "
             + host
             + " "
             + this.getClass().getSimpleName()
             + "] Subscribed");
   }
 }
コード例 #2
0
 /**
  * Creates a {@link PAMonitorControllerImpl}.
  *
  * @param owner Component owning the controller.
  */
 public PAMonitorControllerImpl(Component owner) {
   super(owner);
   jmxNotificationManager = JMXNotificationManager.getInstance();
 }
コード例 #3
0
 /*
  * ---------- PRIVATE METHODS FOR SERIALIZATION ----------
  */
 private void readObject(java.io.ObjectInputStream in)
     throws java.io.IOException, ClassNotFoundException {
   in.defaultReadObject();
   jmxNotificationManager = JMXNotificationManager.getInstance();
 }