public interface IScheduler
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
This is to for disposing or cleaning up any internal state accumulated by
the scheduler
|
java.util.List<java.lang.String> |
getJobLinks()
This method will be called after onScheduler
It is responsible to return links to topology's customized ui pages.
|
void |
initialize(Config config,
Config runtime)
This will initialize scheduler using config file.
|
boolean |
onKill(Scheduler.KillTopologyRequest request)
Called by SchedulerServer when it receives a http request to kill topology,
while the http request body would be the protobuf Scheduler.KillTopologyRequest.
|
boolean |
onRestart(Scheduler.RestartTopologyRequest request)
Called by SchedulerServer when it receives a http request to restart topology,
while the http request body would be the protobuf Scheduler.RestartTopologyRequest.
|
boolean |
onSchedule(PackingPlan packing)
This method will be called after initialize.
|
void initialize(Config config, Config runtime)
void close()
Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
close
in interface java.lang.AutoCloseable
boolean onSchedule(PackingPlan packing)
packing
- Initial mapping suggested by running packing algorithm.java.util.List<java.lang.String> getJobLinks()
boolean onKill(Scheduler.KillTopologyRequest request)
request
- The KillTopologyRequest sent from local heron-cliboolean onRestart(Scheduler.RestartTopologyRequest request)
request
- The RestartTopologyRequest sent from local heron-cli