public class LocalCluster extends Object implements ILocalClusterTrackedTopologyAware, Nimbus.Iface
A stand alone storm cluster that runs inside a single process. It is intended to be used for testing. Both internal testing for Apache Storm itself and for people building storm topologies.
LocalCluster is an AutoCloseable so if you are using it in tests you can use a try block to be sure it is shut down.
try (LocalCluster cluster = new LocalCluster()) { // Do some tests } // The cluster has been shut down.Modifier and Type | Class and Description |
---|---|
static class |
LocalCluster.Builder
Simple way to configure a LocalCluster to meet your needs.
|
class |
LocalCluster.LocalTopology
When running a topology locally, for tests etc.
|
ILocalCluster.ILocalTopology
Modifier and Type | Field and Description |
---|---|
static KillOptions |
KILL_NOW |
Constructor and Description |
---|
LocalCluster()
Create a default LocalCluster.
|
LocalCluster(String zkHost,
Long zkPort)
Create a LocalCluster that connects to an existing Zookeeper instance.
|
Modifier and Type | Method and Description |
---|---|
void |
activate(String topologyName)
Activate a topology
|
Supervisor |
addSupervisor()
Add another supervisor to the topology.
|
Supervisor |
addSupervisor(Number ports)
Add another supervisor to the topology.
|
Supervisor |
addSupervisor(Number ports,
Map<String,Object> conf,
String id)
Add another supervisor to the topology.
|
Supervisor |
addSupervisor(Number ports,
String id)
Add another supervisor to the topology.
|
void |
advanceClusterTime(int secs)
Advance the cluster time when the cluster is using SimulatedTime.
|
void |
advanceClusterTime(int secs,
int incSecs)
Advance the cluster time when the cluster is using SimulatedTime.
|
BeginDownloadResult |
beginBlobDownload(String key) |
String |
beginCreateBlob(String key,
SettableBlobMeta meta) |
String |
beginFileUpload() |
String |
beginUpdateBlob(String key) |
void |
cancelBlobUpload(String session) |
void |
close() |
void |
createStateInZookeeper(String key) |
void |
deactivate(String topologyName)
Deactivate a topology
|
void |
debug(String name,
String component,
boolean enable,
double samplingPercentage)
Enable/disable logging the tuples generated in topology via an internal EventLogger bolt.
|
void |
deleteBlob(String key) |
ByteBuffer |
downloadBlobChunk(String session) |
ByteBuffer |
downloadChunk(String id) |
void |
finishBlobUpload(String session) |
void |
finishFileUpload(String location) |
ReadableBlobMeta |
getBlobMeta(String key) |
int |
getBlobReplication(String key) |
ClusterSummary |
getClusterInfo() |
IStormClusterState |
getClusterState()
This is intended for internal testing only.
|
ComponentPageInfo |
getComponentPageInfo(String topologyId,
String componentId,
String window,
boolean isIncludeSys) |
List<ProfileRequest> |
getComponentPendingProfileActions(String id,
String componentId,
ProfileAction action) |
Map<String,Object> |
getDaemonConf() |
NimbusSummary |
getLeader() |
LogConfig |
getLogConfig(String name) |
StormMetricsRegistry |
getMetricRegistry() |
Nimbus |
getNimbus() |
String |
getNimbusConf() |
List<OwnerResourceSummary> |
getOwnerResourceSummaries(String owner) |
Supervisor |
getSupervisor(String id)
Get a specific Supervisor.
|
SupervisorAssignments |
getSupervisorAssignments(String node)
Get assigned assignments for a specific supervisor
|
SupervisorPageInfo |
getSupervisorPageInfo(String id,
String host,
boolean isIncludeSys) |
int |
getThriftServerPort() |
StormTopology |
getTopology(String id)
Get the compiled storm topology
|
String |
getTopologyConf(String id)
The config of a topology as a JSON string
|
TopologyHistoryInfo |
getTopologyHistory(String user) |
TopologyInfo |
getTopologyInfo(String id)
Get the state of a topology
|
TopologyInfo |
getTopologyInfoWithOpts(String id,
GetInfoOptions options) |
TopologyPageInfo |
getTopologyPageInfo(String id,
String window,
boolean isIncludeSys) |
String |
getTrackedId()
If the cluster is tracked get the id for the tracked cluster.
|
StormTopology |
getUserTopology(String id)
Returns the user specified topology as submitted originally.
|
boolean |
isRemoteBlobExists(String blobKey)
Decide if the blob is removed from cluster.
|
boolean |
isTopologyNameAllowed(String name) |
void |
killSupervisor(String id)
Kill a specific supervisor.
|
void |
killTopology(String topologyName)
Kill a topology (if you are not using ILocalTopology)
|
void |
killTopologyWithOpts(String name,
KillOptions options)
Kill a topology (if you are not using ILocalTopology)
|
ListBlobsResult |
listBlobs(String session) |
static void |
main(String[] args)
Main entry point to running in local mode.
|
void |
processWorkerMetrics(WorkerMetrics metrics) |
void |
rebalance(String name,
RebalanceOptions options)
Rebalance a topology
|
void |
sendSupervisorWorkerHeartbeat(SupervisorWorkerHeartbeat heatbeat)
Send supervisor local worker heartbeat when a supervisor is unreachable
|
void |
sendSupervisorWorkerHeartbeats(SupervisorWorkerHeartbeats heartbeats)
Send supervisor worker heartbeats for a specific supervisor
|
void |
setBlobMeta(String key,
SettableBlobMeta meta) |
void |
setLogConfig(String name,
LogConfig config) |
void |
setWorkerProfiler(String id,
ProfileRequest profileRequest) |
void |
shutdown()
Shut down the cluster.
|
LocalCluster.LocalTopology |
submitTopology(String topologyName,
Map<String,Object> conf,
StormTopology topology)
Submit a topology to be run in local mode
|
LocalCluster.LocalTopology |
submitTopology(String topologyName,
Map<String,Object> conf,
TrackedTopology topology)
Submit a tracked topology to be run in local mode
|
void |
submitTopology(String name,
String uploadedJarLocation,
String jsonConf,
StormTopology topology) |
LocalCluster.LocalTopology |
submitTopologyWithOpts(String topologyName,
Map<String,Object> conf,
StormTopology topology,
SubmitOptions submitOpts)
Submit a topology to be run in local mode
|
LocalCluster.LocalTopology |
submitTopologyWithOpts(String topologyName,
Map<String,Object> conf,
TrackedTopology topology,
SubmitOptions submitOpts)
Submit a tracked topology to be run in local mode
|
void |
submitTopologyWithOpts(String name,
String uploadedJarLocation,
String jsonConf,
StormTopology topology,
SubmitOptions options) |
int |
updateBlobReplication(String key,
int replication) |
void |
uploadBlobChunk(String session,
ByteBuffer chunk) |
void |
uploadChunk(String location,
ByteBuffer chunk) |
void |
uploadNewCredentials(String topologyName,
Credentials creds)
Upload new credentials to a topology.
|
void |
waitForIdle()
Wait for the cluster to be idle.
|
void |
waitForIdle(long timeoutMs)
Wait for the cluster to be idle.
|
static <T> T |
withLocalModeOverride(Callable<T> c,
long ttlSec)
Run c with a local mode cluster overriding the NimbusClient and DRPCClient calls.
|
static <T> T |
withLocalModeOverride(Callable<T> c,
long ttlSec,
Map<String,Object> daemonConf)
Run c with a local mode cluster overriding the NimbusClient and DRPCClient calls.
|
public static final KillOptions KILL_NOW
public LocalCluster() throws Exception
Create a default LocalCluster.
Exception
- on any errorpublic static <T> T withLocalModeOverride(Callable<T> c, long ttlSec) throws Exception
Run c with a local mode cluster overriding the NimbusClient and DRPCClient calls. NOTE local mode override happens by default now unless netty is turned on for the local cluster.
c
- the callable to run in this modettlSec
- the number of seconds to let the cluster run after c has completedException
- on any Exception.public static <T> T withLocalModeOverride(Callable<T> c, long ttlSec, Map<String,Object> daemonConf) throws Exception
Run c with a local mode cluster overriding the NimbusClient and DRPCClient calls. NOTE local mode override happens by default now unless netty is turned on for the local cluster.
c
- the callable to run in this modettlSec
- the number of seconds to let the cluster run after c has completeddaemonConf
- configs to set for the daemon processes.Exception
- on any Exception.public static void main(String[] args) throws Exception
Main entry point to running in local mode.
args
- arguments to be run in local modeException
- on any error when running.public Nimbus getNimbus()
public StormMetricsRegistry getMetricRegistry()
public LocalCluster.LocalTopology submitTopology(String topologyName, Map<String,Object> conf, StormTopology topology) throws org.apache.storm.thrift.TException
ILocalCluster
Submit a topology to be run in local mode
submitTopology
in interface ILocalCluster
topologyName
- the name of the topology to useconf
- the config for the topologytopology
- the topology itself.org.apache.storm.thrift.TException
- on any error from nimbuspublic LocalCluster.LocalTopology submitTopologyWithOpts(String topologyName, Map<String,Object> conf, StormTopology topology, SubmitOptions submitOpts) throws org.apache.storm.thrift.TException
ILocalCluster
Submit a topology to be run in local mode
submitTopologyWithOpts
in interface ILocalCluster
topologyName
- the name of the topology to useconf
- the config for the topologytopology
- the topology itself.submitOpts
- options for topologyorg.apache.storm.thrift.TException
- on any error from nimbuspublic LocalCluster.LocalTopology submitTopology(String topologyName, Map<String,Object> conf, TrackedTopology topology) throws org.apache.storm.thrift.TException
ILocalClusterTrackedTopologyAware
Submit a tracked topology to be run in local mode
submitTopology
in interface ILocalClusterTrackedTopologyAware
topologyName
- the name of the topology to useconf
- the config for the topologytopology
- the topology itself.org.apache.storm.thrift.TException
- on any error from nimbuspublic LocalCluster.LocalTopology submitTopologyWithOpts(String topologyName, Map<String,Object> conf, TrackedTopology topology, SubmitOptions submitOpts) throws org.apache.storm.thrift.TException
ILocalClusterTrackedTopologyAware
Submit a tracked topology to be run in local mode
submitTopologyWithOpts
in interface ILocalClusterTrackedTopologyAware
topologyName
- the name of the topology to useconf
- the config for the topologytopology
- the topology itself.submitOpts
- options for topologyorg.apache.storm.thrift.TException
- on any error from nimbuspublic void uploadNewCredentials(String topologyName, Credentials creds) throws org.apache.storm.thrift.TException
ILocalCluster
Upload new credentials to a topology.
uploadNewCredentials
in interface Nimbus.Iface
uploadNewCredentials
in interface ILocalCluster
topologyName
- the name of the topologycreds
- the new credentails for the topology.org.apache.storm.thrift.TException
- on any error from nimbuspublic void killTopology(String topologyName) throws org.apache.storm.thrift.TException
ILocalCluster
Kill a topology (if you are not using ILocalTopology)
killTopology
in interface Nimbus.Iface
killTopology
in interface ILocalCluster
topologyName
- the name of the topologyorg.apache.storm.thrift.TException
- on any error from nimbuspublic void killTopologyWithOpts(String name, KillOptions options) throws org.apache.storm.thrift.TException
ILocalCluster
Kill a topology (if you are not using ILocalTopology)
killTopologyWithOpts
in interface Nimbus.Iface
killTopologyWithOpts
in interface ILocalCluster
options
- for how to kill the topologyorg.apache.storm.thrift.TException
- on any error from nimbuspublic void activate(String topologyName) throws org.apache.storm.thrift.TException
ILocalCluster
Activate a topology
activate
in interface Nimbus.Iface
activate
in interface ILocalCluster
topologyName
- the name of the topology to activateorg.apache.storm.thrift.TException
- on any error from nimbuspublic void deactivate(String topologyName) throws org.apache.storm.thrift.TException
ILocalCluster
Deactivate a topology
deactivate
in interface Nimbus.Iface
deactivate
in interface ILocalCluster
topologyName
- the name of the topology to deactivateorg.apache.storm.thrift.TException
- on any error from nimbuspublic void rebalance(String name, RebalanceOptions options) throws org.apache.storm.thrift.TException
ILocalCluster
Rebalance a topology
rebalance
in interface Nimbus.Iface
rebalance
in interface ILocalCluster
name
- the name of the topologyoptions
- options for rebalanceing the topology.org.apache.storm.thrift.TException
- on any error from nimbuspublic void shutdown()
ILocalCluster
Shut down the cluster.
shutdown
in interface ILocalCluster
public String getTopologyConf(String id) throws org.apache.storm.thrift.TException
ILocalCluster
The config of a topology as a JSON string
getTopologyConf
in interface Nimbus.Iface
getTopologyConf
in interface ILocalCluster
id
- the id of the topology (not the name)org.apache.storm.thrift.TException
- on any error from nimbuspublic StormTopology getTopology(String id) throws org.apache.storm.thrift.TException
ILocalCluster
Get the compiled storm topology
getTopology
in interface Nimbus.Iface
getTopology
in interface ILocalCluster
id
- the id of the topology (not the name)org.apache.storm.thrift.TException
- on any error from nimbuspublic ClusterSummary getClusterInfo() throws org.apache.storm.thrift.TException
getClusterInfo
in interface Nimbus.Iface
getClusterInfo
in interface ILocalCluster
org.apache.storm.thrift.TException
- on any error from nimbuspublic TopologyInfo getTopologyInfo(String id) throws org.apache.storm.thrift.TException
ILocalCluster
Get the state of a topology
getTopologyInfo
in interface Nimbus.Iface
getTopologyInfo
in interface ILocalCluster
id
- the id of the topology (not the name)org.apache.storm.thrift.TException
- on any error from nimbuspublic int getThriftServerPort()
public boolean isRemoteBlobExists(String blobKey) throws AuthorizationException, org.apache.storm.thrift.TException
Nimbus.Iface
Decide if the blob is removed from cluster.
isRemoteBlobExists
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void close() throws Exception
close
in interface AutoCloseable
Exception
public Supervisor getSupervisor(String id)
Get a specific Supervisor. This is intended mostly for internal testing.
id
- the id of the supervisorpublic void killSupervisor(String id)
Kill a specific supervisor. This is intended mostly for internal testing.
id
- the id of the supervisorpublic Supervisor addSupervisor() throws Exception
Add another supervisor to the topology. This is intended mostly for internal testing.
Exception
public Supervisor addSupervisor(Number ports) throws Exception
Add another supervisor to the topology. This is intended mostly for internal testing.
ports
- the number of ports/slots the supervisor should haveException
public Supervisor addSupervisor(Number ports, String id) throws Exception
Add another supervisor to the topology. This is intended mostly for internal testing.
ports
- the number of ports/slots the supervisor should haveid
- the id of the new supervisor, so you can find it later.Exception
public Supervisor addSupervisor(Number ports, Map<String,Object> conf, String id) throws Exception
Add another supervisor to the topology. This is intended mostly for internal testing.
ports
- the number of ports/slots the supervisor should haveconf
- any config values that should be added/over written in the daemon conf of the cluster.id
- the id of the new supervisor, so you can find it later.Exception
public void waitForIdle() throws InterruptedException
Wait for the cluster to be idle. This is intended to be used with Simulated time and is for internal testing. Note that this does not wait for spout or bolt executors to be idle.
InterruptedException
- if interrupted while waiting.AssertionError
- if the cluster did not come to an idle point with a timeout.public void waitForIdle(long timeoutMs) throws InterruptedException
Wait for the cluster to be idle. This is intended to be used with Simulated time and is for internal testing. Note that this does not wait for spout or bolt executors to be idle.
timeoutMs
- the number of ms to wait before throwing an error.InterruptedException
- if interrupted while waiting.AssertionError
- if the cluster did not come to an idle point with a timeout.public void advanceClusterTime(int secs) throws InterruptedException
ILocalCluster
Advance the cluster time when the cluster is using SimulatedTime. This is intended for internal testing only.
advanceClusterTime
in interface ILocalCluster
secs
- the number of seconds to advance timeInterruptedException
public void advanceClusterTime(int secs, int incSecs) throws InterruptedException
ILocalCluster
Advance the cluster time when the cluster is using SimulatedTime. This is intended for internal testing only.
advanceClusterTime
in interface ILocalCluster
secs
- the number of seconds to advance timeInterruptedException
public IStormClusterState getClusterState()
ILocalCluster
This is intended for internal testing only.
getClusterState
in interface ILocalCluster
public String getTrackedId()
ILocalCluster
If the cluster is tracked get the id for the tracked cluster. This is intended for internal testing only.
getTrackedId
in interface ILocalCluster
public void submitTopology(String name, String uploadedJarLocation, String jsonConf, StormTopology topology) throws AlreadyAliveException, InvalidTopologyException, AuthorizationException, org.apache.storm.thrift.TException
submitTopology
in interface Nimbus.Iface
AlreadyAliveException
InvalidTopologyException
AuthorizationException
org.apache.storm.thrift.TException
public void submitTopologyWithOpts(String name, String uploadedJarLocation, String jsonConf, StormTopology topology, SubmitOptions options) throws AlreadyAliveException, InvalidTopologyException, AuthorizationException, org.apache.storm.thrift.TException
submitTopologyWithOpts
in interface Nimbus.Iface
AlreadyAliveException
InvalidTopologyException
AuthorizationException
org.apache.storm.thrift.TException
public void setLogConfig(String name, LogConfig config) throws org.apache.storm.thrift.TException
setLogConfig
in interface Nimbus.Iface
org.apache.storm.thrift.TException
public LogConfig getLogConfig(String name) throws org.apache.storm.thrift.TException
getLogConfig
in interface Nimbus.Iface
org.apache.storm.thrift.TException
public void debug(String name, String component, boolean enable, double samplingPercentage) throws NotAliveException, AuthorizationException, org.apache.storm.thrift.TException
Nimbus.Iface
Enable/disable logging the tuples generated in topology via an internal EventLogger bolt. The component name is optional and if null or empty, the debug flag will apply to the entire topology.
The ‘samplingPercentage’ will limit loggging to a percentage of generated tuples.
debug
in interface Nimbus.Iface
NotAliveException
AuthorizationException
org.apache.storm.thrift.TException
public void setWorkerProfiler(String id, ProfileRequest profileRequest) throws org.apache.storm.thrift.TException
setWorkerProfiler
in interface Nimbus.Iface
org.apache.storm.thrift.TException
public List<ProfileRequest> getComponentPendingProfileActions(String id, String componentId, ProfileAction action) throws org.apache.storm.thrift.TException
getComponentPendingProfileActions
in interface Nimbus.Iface
org.apache.storm.thrift.TException
public String beginCreateBlob(String key, SettableBlobMeta meta) throws AuthorizationException, KeyAlreadyExistsException, org.apache.storm.thrift.TException
beginCreateBlob
in interface Nimbus.Iface
AuthorizationException
KeyAlreadyExistsException
org.apache.storm.thrift.TException
public String beginUpdateBlob(String key) throws AuthorizationException, KeyNotFoundException, org.apache.storm.thrift.TException
beginUpdateBlob
in interface Nimbus.Iface
AuthorizationException
KeyNotFoundException
org.apache.storm.thrift.TException
public void uploadBlobChunk(String session, ByteBuffer chunk) throws AuthorizationException, org.apache.storm.thrift.TException
uploadBlobChunk
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void finishBlobUpload(String session) throws AuthorizationException, org.apache.storm.thrift.TException
finishBlobUpload
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void cancelBlobUpload(String session) throws AuthorizationException, org.apache.storm.thrift.TException
cancelBlobUpload
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public ReadableBlobMeta getBlobMeta(String key) throws AuthorizationException, KeyNotFoundException, org.apache.storm.thrift.TException
getBlobMeta
in interface Nimbus.Iface
AuthorizationException
KeyNotFoundException
org.apache.storm.thrift.TException
public void setBlobMeta(String key, SettableBlobMeta meta) throws AuthorizationException, KeyNotFoundException, org.apache.storm.thrift.TException
setBlobMeta
in interface Nimbus.Iface
AuthorizationException
KeyNotFoundException
org.apache.storm.thrift.TException
public BeginDownloadResult beginBlobDownload(String key) throws AuthorizationException, KeyNotFoundException, org.apache.storm.thrift.TException
beginBlobDownload
in interface Nimbus.Iface
AuthorizationException
KeyNotFoundException
org.apache.storm.thrift.TException
public ByteBuffer downloadBlobChunk(String session) throws AuthorizationException, org.apache.storm.thrift.TException
downloadBlobChunk
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void deleteBlob(String key) throws AuthorizationException, KeyNotFoundException, org.apache.storm.thrift.TException
deleteBlob
in interface Nimbus.Iface
AuthorizationException
KeyNotFoundException
org.apache.storm.thrift.TException
public ListBlobsResult listBlobs(String session) throws org.apache.storm.thrift.TException
listBlobs
in interface Nimbus.Iface
org.apache.storm.thrift.TException
public int getBlobReplication(String key) throws AuthorizationException, KeyNotFoundException, org.apache.storm.thrift.TException
getBlobReplication
in interface Nimbus.Iface
AuthorizationException
KeyNotFoundException
org.apache.storm.thrift.TException
public int updateBlobReplication(String key, int replication) throws AuthorizationException, KeyNotFoundException, org.apache.storm.thrift.TException
updateBlobReplication
in interface Nimbus.Iface
AuthorizationException
KeyNotFoundException
org.apache.storm.thrift.TException
public void createStateInZookeeper(String key) throws org.apache.storm.thrift.TException
createStateInZookeeper
in interface Nimbus.Iface
org.apache.storm.thrift.TException
public String beginFileUpload() throws AuthorizationException, org.apache.storm.thrift.TException
beginFileUpload
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void uploadChunk(String location, ByteBuffer chunk) throws AuthorizationException, org.apache.storm.thrift.TException
uploadChunk
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void finishFileUpload(String location) throws AuthorizationException, org.apache.storm.thrift.TException
finishFileUpload
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public ByteBuffer downloadChunk(String id) throws AuthorizationException, org.apache.storm.thrift.TException
downloadChunk
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public String getNimbusConf() throws AuthorizationException, org.apache.storm.thrift.TException
getNimbusConf
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public NimbusSummary getLeader() throws AuthorizationException, org.apache.storm.thrift.TException
getLeader
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public boolean isTopologyNameAllowed(String name) throws AuthorizationException, org.apache.storm.thrift.TException
isTopologyNameAllowed
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public TopologyInfo getTopologyInfoWithOpts(String id, GetInfoOptions options) throws NotAliveException, AuthorizationException, org.apache.storm.thrift.TException
getTopologyInfoWithOpts
in interface Nimbus.Iface
NotAliveException
AuthorizationException
org.apache.storm.thrift.TException
public TopologyPageInfo getTopologyPageInfo(String id, String window, boolean isIncludeSys) throws NotAliveException, AuthorizationException, org.apache.storm.thrift.TException
getTopologyPageInfo
in interface Nimbus.Iface
NotAliveException
AuthorizationException
org.apache.storm.thrift.TException
public SupervisorPageInfo getSupervisorPageInfo(String id, String host, boolean isIncludeSys) throws NotAliveException, AuthorizationException, org.apache.storm.thrift.TException
getSupervisorPageInfo
in interface Nimbus.Iface
NotAliveException
AuthorizationException
org.apache.storm.thrift.TException
public ComponentPageInfo getComponentPageInfo(String topologyId, String componentId, String window, boolean isIncludeSys) throws NotAliveException, AuthorizationException, org.apache.storm.thrift.TException
getComponentPageInfo
in interface Nimbus.Iface
NotAliveException
AuthorizationException
org.apache.storm.thrift.TException
public StormTopology getUserTopology(String id) throws NotAliveException, AuthorizationException, org.apache.storm.thrift.TException
Nimbus.Iface
Returns the user specified topology as submitted originally. Compare Nimbus.Iface.getTopology(String id)
.
getUserTopology
in interface Nimbus.Iface
NotAliveException
AuthorizationException
org.apache.storm.thrift.TException
public TopologyHistoryInfo getTopologyHistory(String user) throws AuthorizationException, org.apache.storm.thrift.TException
getTopologyHistory
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public List<OwnerResourceSummary> getOwnerResourceSummaries(String owner) throws AuthorizationException, org.apache.storm.thrift.TException
getOwnerResourceSummaries
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public SupervisorAssignments getSupervisorAssignments(String node) throws AuthorizationException, org.apache.storm.thrift.TException
Nimbus.Iface
Get assigned assignments for a specific supervisor
getSupervisorAssignments
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void sendSupervisorWorkerHeartbeats(SupervisorWorkerHeartbeats heartbeats) throws AuthorizationException, org.apache.storm.thrift.TException
Nimbus.Iface
Send supervisor worker heartbeats for a specific supervisor
sendSupervisorWorkerHeartbeats
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void sendSupervisorWorkerHeartbeat(SupervisorWorkerHeartbeat heatbeat) throws AuthorizationException, org.apache.storm.thrift.TException
Nimbus.Iface
Send supervisor local worker heartbeat when a supervisor is unreachable
sendSupervisorWorkerHeartbeat
in interface Nimbus.Iface
AuthorizationException
org.apache.storm.thrift.TException
public void processWorkerMetrics(WorkerMetrics metrics) throws org.apache.storm.thrift.TException
processWorkerMetrics
in interface Nimbus.Iface
org.apache.storm.thrift.TException
Copyright © 2019 The Apache Software Foundation. All rights reserved.