Examples of TaskName


Examples of de.peacei.gae.foodsupplier.data.TaskName

        TaskOptions taskOpt = TaskOptions.Builder.withUrl("/automatedupdate");
        taskOpt.param("mensa", id);
        taskOpt.method(Method.GET);
        taskOpt.taskName(name);
        queue.add(taskOpt);
        TaskName taskName = new TaskName();
        taskName.setIdentifier(id);
        taskName.setTaskName(name);
        taskNameDAO.saveTaskName(taskName);
       
        logger.info("Task added: "+id);
        respBuilder.append("Task added: "+id+"<br>");
      }
View Full Code Here

Examples of de.peacei.gae.foodsupplier.data.TaskName

public class TaskNameDAO {
 
  public TaskNameDAO() { }
 
  public TaskName getTaskName(String id) {
    TaskName taskName = null;
   
    PersistenceManager pm = PMF.get().getPersistenceManager();
    try {
      taskName = pm.getObjectById(TaskName.class, id);
    } catch(Exception e) { }
View Full Code Here

Examples of de.peacei.gae.foodsupplier.data.TaskName

  }
 
  public void deleteTaskName(String id) {
    PersistenceManager pm = PMF.get().getPersistenceManager();
    try {
      TaskName taskName = pm.getObjectById(TaskName.class, id);
      pm.deletePersistent(taskName);
      pm.flush();
    } catch(Exception e) { }
    finally
      pm.close();
View Full Code Here

Examples of org.apache.samza.container.TaskName

    Map<String, String> configMap = new HashMap<String, String>();
    configMap.put("a", "b");
    Config config = new MapConfig(configMap);
    Set<SystemStreamPartition> inputSystemStreamPartitions = new HashSet<SystemStreamPartition>();
    inputSystemStreamPartitions.add(new SystemStreamPartition("foo", "bar", new Partition(1)));
    TaskName taskName = new TaskName("test");
    TaskModel taskModel = new TaskModel(taskName, inputSystemStreamPartitions, new Partition(2));
    Map<TaskName, TaskModel> tasks = new HashMap<TaskName, TaskModel>();
    tasks.put(taskName, taskModel);
    ContainerModel containerModel = new ContainerModel(1, tasks);
    Map<Integer, ContainerModel> containerMap = new HashMap<Integer, ContainerModel>();
View Full Code Here

Examples of org.apache.samza.container.TaskName

  public static class TaskNameDeserializer extends JsonDeserializer<TaskName> {
    @Override
    public TaskName deserialize(JsonParser jsonParser, DeserializationContext context) throws IOException, JsonProcessingException {
      ObjectCodec oc = jsonParser.getCodec();
      JsonNode node = oc.readTree(jsonParser);
      return new TaskName(node.getTextValue());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.