NimbusData源码

属性

  • downloaders,uploaders
// TODO two kind of value:Channel/BufferFileInputStream
private TimeCacheMap<Object, Object> downloaders;
private TimeCacheMap<Object, Object> uploaders;
/**
* During upload/download with the master, how long an upload or download connection is idle before nimbus considers it dead and drops the connection.
*/

public static final String NIMBUS_FILE_COPY_EXPIRATION_SECS = "nimbus.file.copy.expiration.secs";
  • submittedCount
  • stormClusterState ==> com.alibaba.jstorm.cluster.StormClusterState
  • statusTransition

StormClusterState

public void disconnect() throws Exception;
public void remove_storm(String topology_id) throws Exception;
public void try_remove_storm(String topology_id);
public List<String> assignments(RunnableCallback callback) throws Exception;
public Assignment assignment_info(String topology_id, RunnableCallback callback) throws Exception;
public void set_assignment(String topology_id, Assignment info) throws Exception;
public AssignmentBak assignment_bak(String topologyName) throws Exception;
public void backup_assignment(String topology_id, AssignmentBak info) throws Exception;
public List<String> active_storms() throws Exception;
public StormBase storm_base(String topology_id, RunnableCallback callback) throws Exception;
public void activate_storm(String topology_id, StormBase storm_base) throws Exception;
public void update_storm(String topology_id, StormStatus new_elems) throws Exception;
public void set_storm_monitor(String topologyId, boolean isEnable) throws Exception;
public void remove_storm_base(String topology_id) throws Exception;
public List<String> task_storms() throws Exception;
public Set<Integer> task_ids(String topology_id) throws Exception;
public Set<Integer> task_ids_by_componentId(String topologyId, String componentId) throws Exception;
public void set_task(String topologyId, Map<Integer, TaskInfo> taskInfoMap) throws Exception;
public void add_task(String topology_id, Map<Integer, TaskInfo> taskInfoMap) throws Exception;
public void remove_task(String topologyId, Set<Integer> taskIds) throws Exception;
public Map<Integer, TaskInfo> task_all_info(String topology_id) throws Exception;
public List<String> heartbeat_storms() throws Exception;
public void topology_heartbeat(String topology_id, TopologyTaskHbInfo info) throws Exception;
public TopologyTaskHbInfo topology_heartbeat(String topologyId) throws Exception;
public void teardown_heartbeats(String topology_id) throws Exception;
public List<String> task_error_storms() throws Exception;
public List<String> task_error_ids(String topologyId) throws Exception;
public void report_task_error(String topology_id, int task_id, Throwable error) throws Exception;
public void report_task_error(String topology_id, int task_id, String error, String tag) throws Exception;
public Map<Integer, String> topo_lastErr_time(String topologyId) throws Exception;
public void remove_lastErr_time(String topologyId) throws Exception;
public List<TaskError> task_errors(String topology_id, int task_id) throws Exception;
public void remove_task_error(String topologyId, int taskId) throws Exception;
public List<String> task_error_time(String topologyId, int taskId) throws Exception;
public String task_error_info(String topologyId, int taskId, long timeStamp) throws Exception;
public void teardown_task_errors(String topology_id) throws Exception;
public List<String> supervisors(RunnableCallback callback) throws Exception;
public SupervisorInfo supervisor_info(String supervisor_id) throws Exception;
public void supervisor_heartbeat(String supervisor_id, SupervisorInfo info) throws Exception;
public boolean try_to_be_leader(String path, String host, RunnableCallback callback) throws Exception;
public String get_leader_host() throws Exception;
public boolean leader_existed() throws Exception;
public List<String> get_nimbus_slaves() throws Exception;
public void update_nimbus_slave(String host, int time) throws Exception;
public String get_nimbus_slave_time(String host) throws Exception;
public void unregister_nimbus_host(String host) throws Exception;
public void update_nimbus_detail(String hostPort, Map map) throws Exception;
public Map get_nimbus_detail(String hostPort, boolean watch) throws Exception;
public void unregister_nimbus_detail(String hostPort) throws Exception;
public void set_topology_metric(String topologyId, Object metric) throws Exception;
public Object get_topology_metric(String topologyId) throws Exception;
public List<String> get_metrics() throws Exception;
public List<String> list_dirs(String path, boolean watch) throws Exception;
public List<String> backpressureInfos() throws Exception;
public void set_backpressure_info(String topologyId, Map<String, SourceBackpressureInfo> sourceToBackpressureInfo) throws Exception;
public Map<String, SourceBackpressureInfo> get_backpressure_info(String topologyId) throws Exception;
public void teardown_backpressure(String topologyId) throws Exception;