Пример #1
0
 /*
  * Register interest in certain system events. The {@link
  * OtpNodeStatus OtpNodeStatus} handler object contains callback
  * methods, that will be called when certain events occur.
  *
  * @param handler the callback object to register. To clear the
  * handler, specify null as the handler to use.
  *
  **/
 public virtual void registerStatusHandler(OtpNodeStatus handler)
 {
     lock (this)
     {
         this.handler = handler;
     }
 }
Пример #2
0
 private void init()
 {
     serial    = 0;
     pidCount  = 1;
     portCount = 1;
     refId     = new int[3];
     refId[0]  = 1;
     refId[1]  = 0;
     refId[2]  = 0;
     handler   = new OtpNodeStatus();
 }
Пример #3
0
 public void registerStatusHandler(OtpNodeStatus.ConnectionStatusDelegate callback)
 {
     this.handler.registerStatusHandler(callback);
 }
Пример #4
0
 private void init()
 {
     serial = 0;
     pidCount = 1;
     portCount = 1;
     refId = new int[3];
     refId[0] = 1;
     refId[1] = 0;
     refId[2] = 0;
     handler = new OtpNodeStatus();
 }
Пример #5
0
 /*
 * Register interest in certain system events. The {@link
 * OtpNodeStatus OtpNodeStatus} handler object contains callback
 * methods, that will be called when certain events occur.
 *
 * @param handler the callback object to register. To clear the
 * handler, specify null as the handler to use.
 *
 **/
 public virtual void registerStatusHandler(OtpNodeStatus handler)
 {
     lock (this)
     {
         this.handler = handler;
     }
 }