public class JobModel
extends java.lang.Object
The data model used to represent a Samza job. The model is used in the job coordinator and SamzaContainer to determine how to execute Samza jobs.
The hierarchy for a Samza's job data model is that jobs have containers, and containers have tasks. Each data model contains relevant information, such as an id, partition information, etc.
Modifier and Type | Field and Description |
---|---|
int |
maxChangeLogStreamPartitions |
Constructor and Description |
---|
JobModel(Config config,
java.util.Map<java.lang.String,ContainerModel> containers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Config |
getConfig() |
java.util.Map<java.lang.String,ContainerModel> |
getContainers() |
int |
getMaxChangeLogStreamPartitions() |
int |
hashCode() |
java.lang.String |
toString() |
public JobModel(Config config, java.util.Map<java.lang.String,ContainerModel> containers)
public int getMaxChangeLogStreamPartitions()
public Config getConfig()
public java.util.Map<java.lang.String,ContainerModel> getContainers()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object