Skip navigation links
C G K M O P R S Y 

C

ConfigManager - Class in org.apache.samza.autoscaling.deployer
This class is a separate module that runs along side with a job, and handles all config changes submitted to a job after the bootstrap of the job.
ConfigManager(Config) - Constructor for class org.apache.samza.autoscaling.deployer.ConfigManager
 

G

getApplicationState(String) - Method in class org.apache.samza.autoscaling.utils.YarnUtil
This function returns the state of a given application.
getCoordinatorServerURL() - Method in class org.apache.samza.autoscaling.deployer.ConfigManager
Gets the current value of the server URL that the job coordinator is serving the job model on.
getCurrentNumContainers() - Method in class org.apache.samza.autoscaling.deployer.ConfigManager
This method returns the number of containers in the job.
getCurrentNumTasks() - Method in class org.apache.samza.autoscaling.deployer.ConfigManager
This method returns the number of tasks in the job.
getRunningAppId(String, int) - Method in class org.apache.samza.autoscaling.utils.YarnUtil
Queries rm for all the applications currently running and finds the application with the matching job name and id

K

killApplication(String) - Method in class org.apache.samza.autoscaling.utils.YarnUtil
This function kills an application given the applicationId

M

main(String[]) - Static method in class org.apache.samza.autoscaling.deployer.ConfigManager
Main function for using the Config Manager.

O

org.apache.samza.autoscaling.deployer - package org.apache.samza.autoscaling.deployer
 
org.apache.samza.autoscaling.utils - package org.apache.samza.autoscaling.utils
 

P

processConfigMessages() - Method in class org.apache.samza.autoscaling.deployer.ConfigManager
This function reads all the messages with "set-config" type added to the coordinator stream since the last time the method was invoked

R

run() - Method in class org.apache.samza.autoscaling.deployer.ConfigManager
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.

S

start() - Method in class org.apache.samza.autoscaling.deployer.ConfigManager
Starts the system by starting the consumer
stop() - Method in class org.apache.samza.autoscaling.deployer.ConfigManager
stops the consumer making the system ready to stop
stop() - Method in class org.apache.samza.autoscaling.utils.YarnUtil
This function stops the YarnUtil by stopping the yarn client and http client.

Y

YarnUtil - Class in org.apache.samza.autoscaling.utils
This is a helper class to interact with yarn.
YarnUtil(String, int) - Constructor for class org.apache.samza.autoscaling.utils.YarnUtil
 
C G K M O P R S Y 
Skip navigation links