Package org.mokai

Examples of org.mokai.Monitorable


  public final Status getStatus() {
    Status retStatus = status; // the status we are returning

    // check if the processor is monitorable
    if (Monitorable.class.isInstance(connector)) {
      Monitorable monitorable = (Monitorable) connector;
      retStatus = monitorable.getStatus();
    }

    // resolve conflicts
    if (retStatus.equals(Status.OK) && status.equals(Status.FAILED)) {
      String message = status.getMessage();
View Full Code Here


    boolean atLeastOneHasStatus = false;
    for (Processor processor : processors) {
      if (Monitorable.class.isInstance(processor)) {
        atLeastOneHasStatus = true;

        Monitorable monitorable = (Monitorable) processor;
        if (monitorable.getStatus() == Status.FAILED) {
          status = Status.FAILED;
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.mokai.Monitorable

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.