Package org.playorm.monitor.api

Examples of org.playorm.monitor.api.PlayOrmMonitor


    }
  }
  private void runMonitor(NoSqlEntityManager mgr, MonitorDbo monitor,
      DateTime now) {
    log.info("run monitor="+monitor.getId());
    PlayOrmMonitor p = CopyUtil.copy(monitor);
    fireToListener(p);
    monitor.setLastRun(now);
    mgr.put(monitor);
    mgr.flush();
  }
View Full Code Here


  }

  public static PlayOrmMonitor copy(MonitorDbo monitor) {
    if(monitor == null)
      return null;
    PlayOrmMonitor mon = new PlayOrmMonitor();
    mon.setId(monitor.getId());
    mon.setTimePeriodMillis(monitor.getTimePeriodMillis());
    String props = monitor.getRawProperties();
    String[] propsArray = props.split("\\|");
    for(String prop : propsArray) {
      String[] kv = prop.split("=");
      mon.addProperty(kv[0], kv[1]);
    }
    return mon;
  }
View Full Code Here

    }
  }
  private void runMonitor(NoSqlEntityManager mgr, MonitorDbo monitor,
      DateTime now) {
    log.debug("run monitor="+monitor.getId());
    PlayOrmMonitor p = CopyUtil.copy(monitor);
    fireToListener(p);
    monitor.setLastRun(now);
    mgr.put(monitor);
    mgr.flush();
  }
View Full Code Here

TOP

Related Classes of org.playorm.monitor.api.PlayOrmMonitor

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.