Package org.jboss.fresh.events

Examples of org.jboss.fresh.events.EventBroadcaster


   
    // Uses
    pkgen = new RandomKeyPKGenerator("11,31", null);
    pkgen.reseed(hostLabel + subdomain + System.currentTimeMillis());

    eb = new EventBroadcaster(this, "EventCentral");
  }
View Full Code Here


    allBcsByID.put(id, bc);
  }

  public synchronized EventBroadcaster unregisterEventBroadcaster(String id) {
    //log.info("Unregistering for id: "+id);
    EventBroadcaster eb = (EventBroadcaster) allBcsByID.remove(id);
    bcsByID.remove(id);
    //log.info("Remainging: "+bcsByID);
    return eb;
  }
View Full Code Here

//log.info("Registering lis on " + ec + " : " + origin + "  =  " + lis);
      ec.registerEventListener(origin, lis, new String[]{"///ECentral/"}, EventCentral.SILENT | EventCentral.HIDDEN);
    } catch (Exception ex) {
      log.error("Internal Event System error: failed to register EventListener ///ECentral/", ex);
    }
    eb = new EventBroadcaster(ec, "EventNetRouterImpl");
  }
View Full Code Here

        // it's ugly that creating an instance does registration at the same time
        // we could check here that all broadcasters have host properly set
        // probably all should have host set. We can not just set it ourselves.
        // It must be properly set when whoever creates it registers it originally.
        try {
          EventBroadcaster ebc = new EventBroadcaster(name, ec);
        } catch (InvalidFormatException ex) {
          log.error("There's EventCentral in the system that does not enforce proper names: " + ex);
        }
      }
      Set reglset = ec.getListeners().keySet();
View Full Code Here

    // let's help a little - let's close all the in buffers of all the processes:
    // and system out also.


    try {
      EventBroadcaster eb = getEventBroadcaster();
      if (eb != null) {
        eb.dispatchEvent(new ShellEvent(EVENT_CLASS, "shellDispose", this));
      }
    } catch (Exception ex) {
      log.error(ex.getMessage(), ex);
    }
View Full Code Here

TOP

Related Classes of org.jboss.fresh.events.EventBroadcaster

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.