Package uk.ac.bbsrc.tgac.miso.core.event.model

Examples of uk.ac.bbsrc.tgac.miso.core.event.model.PoolEvent


  }

  protected void firePoolReadyEvent() {
    if (this.getId() != 0L) {
      //PoolEvent pe = new PoolEvent(this, MisoEventType.POOL_READY, "Pool "+getName()+" ("+getAlias()+") ready to run");
      PoolEvent pe = new PoolEvent(this, MisoEventType.POOL_READY, "Pool "+getName()+" ready to run");
      for (MisoListener listener : getListeners()) {
        listener.stateChanged(pe);
      }
    }
  }
View Full Code Here


  }

  @Override
  public boolean respondsTo(Event event) {
    if (event instanceof PoolEvent) {
      PoolEvent pe = (PoolEvent)event;
      Pool p = pe.getEventObject();
      if (pe.getEventType().equals(MisoEventType.POOL_READY) && p.getReadyToRun()) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

  }

  @Override
  public void generateResponse(Event event) {
    if (event instanceof PoolEvent) {
      PoolEvent pe = (PoolEvent)event;
      Pool p = pe.getEventObject();

      for (User user : p.getWatchers()) {
        log.info("Responding to " + user.getLoginName());

        Alert a = new DefaultAlert(user);
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.event.model.PoolEvent

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.