Search in sources :

Example 16 with JobModel

use of org.apache.samza.job.model.JobModel in project samza by apache.

the class StorageRecovery method getContainerModels.

/**
   * build the ContainerModels from job config file and put the results in the
   * map
   */
private void getContainerModels() {
    JobModel jobModel = JobModelManager.apply(jobConfig).jobModel();
    containers = jobModel.getContainers();
}
Also used : JobModel(org.apache.samza.job.model.JobModel)

Aggregations

JobModel (org.apache.samza.job.model.JobModel)16 ContainerModel (org.apache.samza.job.model.ContainerModel)8 HashMap (java.util.HashMap)6 TaskModel (org.apache.samza.job.model.TaskModel)6 TaskName (org.apache.samza.container.TaskName)5 MapConfig (org.apache.samza.config.MapConfig)4 Test (org.junit.Test)4 SamzaException (org.apache.samza.SamzaException)3 JobModelManager (org.apache.samza.coordinator.JobModelManager)3 ObjectMapper (org.codehaus.jackson.map.ObjectMapper)3 IOException (java.io.IOException)2 Map (java.util.Map)2 CountDownLatch (java.util.concurrent.CountDownLatch)2 Config (org.apache.samza.config.Config)2 HttpServer (org.apache.samza.coordinator.server.HttpServer)2 DefaultServlet (org.eclipse.jetty.servlet.DefaultServlet)2 ServletHolder (org.eclipse.jetty.servlet.ServletHolder)2 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1