Package com.almende.eve.state

Examples of com.almende.eve.state.StateBuilder


   
    final ObjectNode stateConfig = config.getState();
    if (stateConfig == null) {
      LOG.warning("Parameter 'state' is required, falling back to SimpleScheduler.");
    } else {
      state = new StateBuilder().withConfig(stateConfig).build();
      for (final String key : state.keySet()) {
        final TaskEntry entry = state.get(key, TaskEntry.class);
        run(entry);
      }
    }
View Full Code Here


   *            the params, containing at least a "state" field, with a
   *            specific State configuration.
   */
  public WakeService(final ObjectNode params) {
    myParams = params;
    state = new StateBuilder().withConfig(
        (ObjectNode) myParams.get("state")).build();
    WakeServiceBuilder.getServices().put(state.getId(), this);
  }
View Full Code Here

   * @param myParams
   *            the new my params
   */
  public void setMyParams(final ObjectNode myParams) {
    this.myParams = myParams;
    state = new StateBuilder().withConfig((ObjectNode) myParams.get("state")).build();
    WakeServiceBuilder.getServices().put(state.getId(), this);
  }
View Full Code Here

    if (sc != null) {
      final StateConfig stateConfig = new StateConfig(sc);
      if (agentId != null && stateConfig.getId() == null) {
        stateConfig.setId(agentId);
      }
      state = new StateBuilder().withConfig(stateConfig).build();
      config.put("state", stateConfig);
    }
  }
View Full Code Here

     */
    MyCookieStore() throws IOException {
      final MemoryStateConfig params = new MemoryStateConfig();
      params.setId(COOKIESTORE);

      myState = new StateBuilder().withConfig(params).build();
    }
View Full Code Here

      final ObjectNode params = JOM.createObjectNode();
      params.put("class",
          "com.almende.eve.state.memory.MemoryStateService");
      params.put("id", COOKIESTORE);
     
      myState = new StateBuilder().withConfig(params).build();
    }
View Full Code Here

TOP

Related Classes of com.almende.eve.state.StateBuilder

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.