public class ConfigManager
extends java.lang.Object
| Constructor and Description |
|---|
ConfigManager(org.apache.samza.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCoordinatorServerURL()
Gets the current value of the server URL that the job coordinator is serving the job model on.
|
int |
getCurrentNumContainers()
This method returns the number of containers in the job.
|
int |
getCurrentNumTasks()
This method returns the number of tasks in the job.
|
static void |
main(java.lang.String[] args)
Main function for using the Config Manager.
|
void |
processConfigMessages()
This function reads all the messages with "set-config" type added to the coordinator stream since the last time the method was invoked
|
void |
run()
This method is an infinite loop that periodically checks if there are any new messages in the job coordinator stream, and reads them if they exist.
|
void |
start()
Starts the system by starting the consumer
|
void |
stop()
stops the consumer making the system ready to stop
|
public void run()
public void start()
public void stop()
public void processConfigMessages()
public int getCurrentNumTasks()
public int getCurrentNumContainers()
public java.lang.String getCoordinatorServerURL()
public static void main(java.lang.String[] args)
args - input arguments for running ConfigManager.