Package org.apache.storm.daemon.ui
Class UIHelpers
java.lang.Object
org.apache.storm.daemon.ui.UIHelpers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
configFilter
(org.eclipse.jetty.server.Server server, javax.servlet.Servlet servlet, List<FilterConfiguration> filtersConfs) static void
configFilter
(org.eclipse.jetty.server.Server server, javax.servlet.Servlet servlet, List<FilterConfiguration> filtersConfs, Map<String, String> params) Config filter.static void
configFilters
(org.eclipse.jetty.servlet.ServletContextHandler context, List<FilterConfiguration> filtersConfs) Config filters.static void
configSsl
(org.eclipse.jetty.server.Server server, Integer port, String ksPath, String ksPassword, String ksType, String keyPassword, String tsPath, String tsPassword, String tsType, Boolean needClientAuth, Boolean wantClientAuth, boolean enableSslReload) static void
configSsl
(org.eclipse.jetty.server.Server server, Integer port, String ksPath, String ksPassword, String ksType, String keyPassword, String tsPath, String tsPassword, String tsType, Boolean needClientAuth, Boolean wantClientAuth, Integer headerBufferSize, boolean enableSslReload) configSsl.static org.eclipse.jetty.servlet.FilterHolder
corsFilterHandle.static Map
exceptionToJson
(Exception ex, int statusCode) Converts exception into json map.getActiveAction
(ProfileRequest profileRequest, Map config, String topologyId) getActiveAction.static List
getActiveProfileActions
(Nimbus.Iface client, String id, String component, Map config) getActiveProfileActions.getAllTopologiesSummary
(List<TopologySummary> topologies, Map<String, Object> config) getAllTopologiesSummary.static Map<String,
List<ExecutorSummary>> getBoltExecutors
(List<ExecutorSummary> executorSummaries, StormTopology stormTopology, boolean sys) getBoltExecutors.getBuildVisualization
(Nimbus.Iface client, Map<String, Object> config, String window, String id, boolean sys) getBuildVisualization.getClusterSummary
(ClusterSummary clusterSummary, String user, Map<String, Object> conf) Converts thrift call result into map fit for UI/api.getComponentPage
(Nimbus.Iface client, String id, String component, String window, boolean sys, String user, Map config) getComponentPage.getInputMap
(Map.Entry<GlobalStreamId, Grouping> entryInput) getInputMap.static String
getJsonResponseBody
(Object data, String callback, boolean needSerialize) static Map
getJsonResponseHeaders
(String callback, Map headers) getJsonResponseHeaders.static String
getLogviewerLink.static int
getLogviewerPort
(Map<String, Object> config) Get logviewer port depending on whether the logviewer is secure or not.static String
getNimbusLogLink
(String host, Map<String, Object> config) Get log link to nimbus log.getNimbusSummary
(ClusterSummary clusterInfo, Map<String, Object> config) getNimbusSummary.getOwnerResourceSummaries
(List<OwnerResourceSummary> ownerResourceSummaries, Map<String, Object> conf) Get prettified ownerResourceSummaries.getOwnerResourceSummary
(List<OwnerResourceSummary> ownerResourceSummaries, Nimbus.Iface client, String id, Map<String, Object> config) Get a specific owner resource summary.getPrettifiedSupervisorMap
(SupervisorSummary supervisorSummary, Map<String, Object> config) Get supervisor info in a map.getProfilingDisabled.static Map<String,
List<ExecutorSummary>> getSpoutExecutors
(List<ExecutorSummary> executorSummaries, StormTopology stormTopology) getSpoutExecutors.getStatDisplayMap
(Map<String, Double> rawDisplayMap) getStatDisplayMap.getStatMapFromExecutorSummary
(ExecutorSummary executorSummary) getStatMapFromExecutorSummary.getStreamBox
(Object visualization) getStreamBox.static String
getSupervisorLogLink
(String host, Map<String, Object> config) Get log link to supervisor log.getSupervisorPageInfo
(SupervisorPageInfo supervisorPageInfo, Map<String, Object> config) getSupervisorPageInfo.getSupervisorSummary
(List<SupervisorSummary> supervisors, javax.ws.rs.core.SecurityContext securityContext, Map<String, Object> config) getSupervisorSummary.getTopolgoyLogConfig
(LogConfig logConfig) getTopolgoyLogConfig.getTopologyHistoryInfo
(TopologyHistoryInfo topologyHistory) Get topology history.getTopologyLag
(StormTopology userTopology, Map<String, Object> config) getTopologyLag.getTopologyMap
(TopologySummary topologySummary) getTopologyMap.getTopologyOpResponse
(String id, String op) getTopologyOpResponse.getTopologyProfilingDump
(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) getTopologyProfilingDump.getTopologyProfilingDumpHeap
(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) getTopologyProfilingDumpHeap.getTopologyProfilingDumpJstack
(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) getTopologyProfilingRestartWorker
(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) getTopologyProfilingRestartWorker.getTopologyProfilingStart
(Nimbus.Iface client, String id, String hostPort, String timeout, Map<String, Object> config) getTopologyProfilingStart.getTopologyProfilingStop
(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) getTopologyProfilingStop.getTopologySummary
(TopologyPageInfo topologyPageInfo, String window, Map<String, Object> config, String remoteUser) getTopologySummary.getTopologyWorkers
(TopologyInfo topologyInfo, Map config) getTopologyWorkers.getVisualizationData
(Nimbus.Iface client, String window, String topoId, boolean sys) getVisualizationData.static String
getWindowHint
(String window) getWindowHint.static String
getWorkerDumpLink.static String
Get log link to supervisor log.getWorkerSummaries
(SupervisorPageInfo supervisorPageInfo, Map<String, Object> config) getWorkerSummaries.static boolean
isSecureLogviewer
(Map<String, Object> config) Check if logviewer is secure.static org.eclipse.jetty.server.Server
jettyCreateServer
(Integer port, String host, Integer httpsPort, Boolean disableHttpBinding) Construct a Jetty Server instance.static org.eclipse.jetty.server.Server
jettyCreateServer
(Integer port, String host, Integer httpsPort, Integer headerBufferSize, Boolean disableHttpBinding) Construct a Jetty Server instance.static javax.ws.rs.core.Response
makeStandardResponse
(Object data, String callback) static javax.ws.rs.core.Response
makeStandardResponse
(Object data, String callback, boolean needsSerialization, javax.ws.rs.core.Response.Status status) makeStandardResponse.static javax.ws.rs.core.Response
makeStandardResponse
(Object data, String callback, javax.ws.rs.core.Response.Status status) static org.eclipse.jetty.servlet.FilterHolder
mkAccessLoggingFilterHandle.static String
Prettified executor info.static String
prettyUptimeMs
(int ms) prettyUptimeMs.static String
prettyUptimeMs
(String ms) prettyUptimeMs.static String
prettyUptimeSec
(int secs) prettyUptimeSec.static String
prettyUptimeSec
(String sec) Prettify uptime string.static String
prettyUptimeStr
(String val, Object[][] dividers) Prettify uptime string.putTopologyActivate
(Nimbus.Iface client, String id) putTopologyActivate.putTopologyDeactivate
(Nimbus.Iface client, String id) putTopologyDeactivate.putTopologyDebugActionSpct
(Nimbus.Iface client, String id, String action, String spct, String component) putTopologyDebugActionSpct.putTopologyKill
(Nimbus.Iface client, String id, String waitTime) putTopologyKill.putTopologyLogLevel
(Nimbus.Iface client, Map<String, Map> namedLogLevel, String id) putTopologyLogLevel.putTopologyRebalance
(Nimbus.Iface client, String id, String waitTime) putTopologyRebalance.static String
sanitizeStreamName
(String streamName) Sanitizes streamName for use as an identifier in the visualization.sanitizeTransferredStats.static void
setTopologyProfilingAction
(Nimbus.Iface client, String id, String hostPort, Long timestamp, Map<String, Object> config, ProfileAction profileAction) setTopologyProfilingAction.static void
stormRunJetty
(Integer port, Integer headerBufferSize, IConfigurator configurator) static void
stormRunJetty
(Integer port, String host, Integer httpsPort, Integer headerBufferSize, IConfigurator configurator) Modified version of run-jetty Assumes configurator sets handler.unauthorizedUserJson
(String user) Unauthorized user json.unpackBoltPageInfo
(ComponentPageInfo componentPageInfo, String topologyId, String window, boolean sys, Map config) unpackBoltPageInfo.unpackOwnerResourceSummary
(OwnerResourceSummary ownerResourceSummary) Prettify OwnerResourceSummary.unpackSpoutPageInfo
(ComponentPageInfo componentPageInfo, String topologyId, String window, boolean sys, Map config) unpackSpoutPageInfo.static String
url formatter for log links.static String
wrapJsonInCallback
(String callback, String response) wrapJsonInCallback.
-
Constructor Details
-
UIHelpers
public UIHelpers()
-
-
Method Details
-
prettyUptimeStr
Prettify uptime string.- Parameters:
val
- val.dividers
- dividers.- Returns:
- prettified uptime string.
-
prettyUptimeSec
Prettify uptime string.- Parameters:
sec
- uptime in seconds.- Returns:
- prettified uptime string.
-
prettyUptimeSec
prettyUptimeSec.- Parameters:
secs
- secs- Returns:
- prettyUptimeSec
-
prettyUptimeMs
prettyUptimeMs.- Parameters:
ms
- ms- Returns:
- prettyUptimeMs
-
prettyUptimeMs
prettyUptimeMs.- Parameters:
ms
- ms- Returns:
- prettyUptimeMs
-
urlFormat
url formatter for log links.- Parameters:
fmt
- string formatargs
- hostname and other arguments.- Returns:
- string formatter
-
prettyExecutorInfo
Prettified executor info.- Parameters:
e
- from Nimbus call- Returns:
- prettified executor info string
-
unauthorizedUserJson
Unauthorized user json.- Parameters:
user
- User id.- Returns:
- Unauthorized user json.
-
configSsl
-
configSsl
public static void configSsl(org.eclipse.jetty.server.Server server, Integer port, String ksPath, String ksPassword, String ksType, String keyPassword, String tsPath, String tsPassword, String tsType, Boolean needClientAuth, Boolean wantClientAuth, Integer headerBufferSize, boolean enableSslReload) configSsl.- Parameters:
server
- serverport
- portksPath
- ksPathksPassword
- ksPasswordksType
- ksTypekeyPassword
- keyPasswordtsPath
- tsPathtsPassword
- tsPasswordtsType
- tsTypeneedClientAuth
- needClientAuthwantClientAuth
- wantClientAuthheaderBufferSize
- headerBufferSizeenableSslReload
- enable ssl reload
-
corsFilterHandle
public static org.eclipse.jetty.servlet.FilterHolder corsFilterHandle()corsFilterHandle.- Returns:
- corsFilterHandle
-
mkAccessLoggingFilterHandle
public static org.eclipse.jetty.servlet.FilterHolder mkAccessLoggingFilterHandle()mkAccessLoggingFilterHandle.- Returns:
- mkAccessLoggingFilterHandle
-
configFilter
public static void configFilter(org.eclipse.jetty.server.Server server, javax.servlet.Servlet servlet, List<FilterConfiguration> filtersConfs) -
configFilter
public static void configFilter(org.eclipse.jetty.server.Server server, javax.servlet.Servlet servlet, List<FilterConfiguration> filtersConfs, Map<String, String> params) Config filter.- Parameters:
server
- Serverservlet
- ServletfiltersConfs
- FiltersConfsparams
- Filter params
-
configFilters
public static void configFilters(org.eclipse.jetty.servlet.ServletContextHandler context, List<FilterConfiguration> filtersConfs) Config filters.- Parameters:
context
- Servlet contextfiltersConfs
- filter confs
-
jettyCreateServer
public static org.eclipse.jetty.server.Server jettyCreateServer(Integer port, String host, Integer httpsPort, Boolean disableHttpBinding) Construct a Jetty Server instance. -
jettyCreateServer
public static org.eclipse.jetty.server.Server jettyCreateServer(Integer port, String host, Integer httpsPort, Integer headerBufferSize, Boolean disableHttpBinding) Construct a Jetty Server instance. -
stormRunJetty
public static void stormRunJetty(Integer port, String host, Integer httpsPort, Integer headerBufferSize, IConfigurator configurator) throws Exception Modified version of run-jetty Assumes configurator sets handler.- Throws:
Exception
-
stormRunJetty
public static void stormRunJetty(Integer port, Integer headerBufferSize, IConfigurator configurator) throws Exception - Throws:
Exception
-
wrapJsonInCallback
wrapJsonInCallback.- Parameters:
callback
- callbackParameterNameresponse
- response- Returns:
- wrapJsonInCallback
-
getJsonResponseHeaders
getJsonResponseHeaders.- Parameters:
callback
- callbackParameterNameheaders
- headers- Returns:
- getJsonResponseHeaders
-
getJsonResponseBody
-
exceptionToJson
Converts exception into json map.- Parameters:
ex
- Exception to be converted.statusCode
- Status code to be returned.- Returns:
- Map to be converted into json.
-
makeStandardResponse
-
makeStandardResponse
-
makeStandardResponse
public static javax.ws.rs.core.Response makeStandardResponse(Object data, String callback, boolean needsSerialization, javax.ws.rs.core.Response.Status status) makeStandardResponse.- Parameters:
data
- datacallback
- callbackParameterNameneedsSerialization
- needsSerialization- Returns:
- makeStandardResponse
-
getClusterSummary
public static Map<String,Object> getClusterSummary(ClusterSummary clusterSummary, String user, Map<String, Object> conf) Converts thrift call result into map fit for UI/api.- Parameters:
clusterSummary
- Obtained from Nimbus.user
- User Making requestconf
- Storm Conf- Returns:
- Cluster Summary for display on UI/monitoring purposes via API
-
unpackOwnerResourceSummary
public static Map<String,Object> unpackOwnerResourceSummary(OwnerResourceSummary ownerResourceSummary) Prettify OwnerResourceSummary.- Parameters:
ownerResourceSummary
- ownerResourceSummary- Returns:
- Map of prettified OwnerResourceSummary.
-
getOwnerResourceSummaries
public static Map<String,Object> getOwnerResourceSummaries(List<OwnerResourceSummary> ownerResourceSummaries, Map<String, Object> conf) Get prettified ownerResourceSummaries.- Parameters:
ownerResourceSummaries
- ownerResourceSummaries from thrift callconf
- Storm conf- Returns:
- map to be converted to json.
-
getTopologyMap
getTopologyMap.- Parameters:
topologySummary
- topologySummary- Returns:
- getTopologyMap
-
getOwnerResourceSummary
public static Map<String,Object> getOwnerResourceSummary(List<OwnerResourceSummary> ownerResourceSummaries, Nimbus.Iface client, String id, Map<String, Object> config) throws org.apache.storm.thrift.TExceptionGet a specific owner resource summary.- Parameters:
ownerResourceSummaries
- Result from thrift call.client
- clientid
- Owner id.config
- Storm conf.- Returns:
- prettified owner resource summary.
- Throws:
org.apache.storm.thrift.TException
-
getLogviewerLink
public static String getLogviewerLink(String host, String fname, Map<String, Object> config, int port) getLogviewerLink.- Parameters:
host
- hostfname
- fnameconfig
- configport
- port- Returns:
- getLogviewerLink.
-
getNimbusLogLink
Get log link to nimbus log.- Parameters:
host
- nimbus host nameconfig
- storm config- Returns:
- log link.
-
getSupervisorLogLink
Get log link to supervisor log.- Parameters:
host
- supervisor host nameconfig
- storm config- Returns:
- log link.
-
getWorkerLogLink
public static String getWorkerLogLink(String host, int port, Map<String, Object> config, String topologyId) Get log link to supervisor log.- Parameters:
host
- supervisor host nameconfig
- storm config- Returns:
- log link.
-
getPrettifiedSupervisorMap
public static Map<String,Object> getPrettifiedSupervisorMap(SupervisorSummary supervisorSummary, Map<String, Object> config) Get supervisor info in a map.- Parameters:
supervisorSummary
- from nimbus call.config
- Storm config.- Returns:
- prettified supervisor info map.
-
getTopologyHistoryInfo
Get topology history.- Parameters:
topologyHistory
- from Nimbus call.- Returns:
- map ready to be returned.
-
isSecureLogviewer
Check if logviewer is secure.- Parameters:
config
- Storm config.- Returns:
- true if logiviwer is secure.
-
getLogviewerPort
Get logviewer port depending on whether the logviewer is secure or not.- Parameters:
config
- Storm config.- Returns:
- appropriate port.
-
getWorkerSummaries
public static List<Map> getWorkerSummaries(SupervisorPageInfo supervisorPageInfo, Map<String, Object> config) getWorkerSummaries.- Parameters:
supervisorPageInfo
- supervisorPageInfoconfig
- config- Returns:
- getWorkerSummaries
-
getSupervisorSummary
public static Map<String,Object> getSupervisorSummary(List<SupervisorSummary> supervisors, javax.ws.rs.core.SecurityContext securityContext, Map<String, Object> config) getSupervisorSummary.- Parameters:
supervisors
- supervisor summary list.securityContext
- security context injected.config
- Storm config.- Returns:
- Prettified JSON.
-
getSupervisorPageInfo
public static Map<String,Object> getSupervisorPageInfo(SupervisorPageInfo supervisorPageInfo, Map<String, Object> config) getSupervisorPageInfo.- Parameters:
supervisorPageInfo
- supervisorPageInfoconfig
- config- Returns:
- getSupervisorPageInfo
-
getAllTopologiesSummary
public static Map<String,Object> getAllTopologiesSummary(List<TopologySummary> topologies, Map<String, Object> config) getAllTopologiesSummary.- Parameters:
topologies
- topologiesconfig
- config- Returns:
- getAllTopologiesSummary
-
getWindowHint
getWindowHint.- Parameters:
window
- window- Returns:
- getWindowHint
-
getStatDisplayMap
getStatDisplayMap.- Parameters:
rawDisplayMap
- rawDisplayMap- Returns:
- getStatDisplayMap
-
getTopologySummary
public static Map<String,Object> getTopologySummary(TopologyPageInfo topologyPageInfo, String window, Map<String, Object> config, String remoteUser) getTopologySummary.- Parameters:
topologyPageInfo
- topologyPageInfowindow
- windowconfig
- configremoteUser
- remoteUser- Returns:
- getTopologySummary
-
getTopologyWorkers
getTopologyWorkers.- Parameters:
topologyInfo
- topologyInfoconfig
- config- Returns:
- getTopologyWorkers.
-
getTopologyLag
public static Map<String,Map<String, getTopologyLagObject>> (StormTopology userTopology, Map<String, Object> config) getTopologyLag.- Parameters:
userTopology
- userTopologyconfig
- config- Returns:
- getTopologyLag.
-
getBoltExecutors
public static Map<String,List<ExecutorSummary>> getBoltExecutors(List<ExecutorSummary> executorSummaries, StormTopology stormTopology, boolean sys) getBoltExecutors.- Parameters:
executorSummaries
- executorSummariesstormTopology
- stormTopologysys
- sys- Returns:
- getBoltExecutors.
-
getSpoutExecutors
public static Map<String,List<ExecutorSummary>> getSpoutExecutors(List<ExecutorSummary> executorSummaries, StormTopology stormTopology) getSpoutExecutors.- Parameters:
executorSummaries
- executorSummariesstormTopology
- stormTopology- Returns:
- getSpoutExecutors.
-
sanitizeStreamName
Sanitizes streamName for use as an identifier in the visualization. Replaces all characters except A-Z, a-z, '.', '-', and '_' with '_'. If streamName does not start with A-Z or a-z, adds '_s' prefix.- Parameters:
streamName
- non-null streamName- Returns:
- sanitized stream name
-
sanitizeTransferredStats
public static Map<String,Map<String, sanitizeTransferredStatsLong>> (Map<String, Map<String, Long>> stats) sanitizeTransferredStats.- Parameters:
stats
- stats- Returns:
- sanitizeTransferredStats
-
getStatMapFromExecutorSummary
getStatMapFromExecutorSummary.- Parameters:
executorSummary
- executorSummary- Returns:
- getStatMapFromExecutorSummary
-
getInputMap
getInputMap.- Parameters:
entryInput
- entryInput- Returns:
- getInputMap
-
getVisualizationData
public static Map<String,Object> getVisualizationData(Nimbus.Iface client, String window, String topoId, boolean sys) throws org.apache.storm.thrift.TException getVisualizationData.- Parameters:
client
- clientwindow
- windowtopoId
- topoIdsys
- sys- Returns:
- getVisualizationData
- Throws:
org.apache.storm.thrift.TException
- TException
-
getStreamBox
getStreamBox.- Parameters:
visualization
- visualization- Returns:
- getStreamBox
-
getBuildVisualization
public static Map<String,Object> getBuildVisualization(Nimbus.Iface client, Map<String, Object> config, String window, String id, boolean sys) throws org.apache.storm.thrift.TExceptiongetBuildVisualization.- Parameters:
client
- clientconfig
- configwindow
- windowid
- idsys
- sys- Returns:
- getBuildVisualization
- Throws:
org.apache.storm.thrift.TException
- TException
-
getActiveAction
public static Map<String,Object> getActiveAction(ProfileRequest profileRequest, Map config, String topologyId) getActiveAction.- Parameters:
profileRequest
- profileRequestconfig
- configtopologyId
- topologyId- Returns:
- getActiveAction
-
getActiveProfileActions
public static List getActiveProfileActions(Nimbus.Iface client, String id, String component, Map config) throws org.apache.storm.thrift.TException getActiveProfileActions.- Parameters:
client
- clientid
- idcomponent
- componentconfig
- config- Returns:
- getActiveProfileActions
- Throws:
org.apache.storm.thrift.TException
- TException
-
getWorkerDumpLink
public static String getWorkerDumpLink(String host, long port, String topologyId, Map<String, Object> config) getWorkerDumpLink.- Parameters:
host
- hostport
- porttopologyId
- topologyIdconfig
- config- Returns:
- getWorkerDumpLink
-
unpackBoltPageInfo
public static Map<String,Object> unpackBoltPageInfo(ComponentPageInfo componentPageInfo, String topologyId, String window, boolean sys, Map config) unpackBoltPageInfo.- Parameters:
componentPageInfo
- componentPageInfotopologyId
- topologyIdwindow
- windowsys
- sysconfig
- config- Returns:
- unpackBoltPageInfo
-
unpackSpoutPageInfo
public static Map<String,Object> unpackSpoutPageInfo(ComponentPageInfo componentPageInfo, String topologyId, String window, boolean sys, Map config) unpackSpoutPageInfo.- Parameters:
componentPageInfo
- componentPageInfotopologyId
- topologyIdwindow
- windowsys
- sysconfig
- config- Returns:
- unpackSpoutPageInfo
-
getComponentPage
public static Map<String,Object> getComponentPage(Nimbus.Iface client, String id, String component, String window, boolean sys, String user, Map config) throws org.apache.storm.thrift.TException getComponentPage.- Parameters:
client
- clientid
- idcomponent
- componentwindow
- windowsys
- sysuser
- userconfig
- config- Returns:
- getComponentPage
- Throws:
org.apache.storm.thrift.TException
- TException
-
getTopolgoyLogConfig
getTopolgoyLogConfig.- Parameters:
logConfig
- logConfig- Returns:
- getTopolgoyLogConfig
-
getTopologyOpResponse
getTopologyOpResponse.- Parameters:
id
- idop
- op- Returns:
- getTopologyOpResponse
-
putTopologyActivate
public static Map<String,Object> putTopologyActivate(Nimbus.Iface client, String id) throws org.apache.storm.thrift.TException putTopologyActivate.- Parameters:
client
- clientid
- id- Returns:
- putTopologyActivate
- Throws:
org.apache.storm.thrift.TException
- TException
-
putTopologyDeactivate
public static Map<String,Object> putTopologyDeactivate(Nimbus.Iface client, String id) throws org.apache.storm.thrift.TException putTopologyDeactivate.- Parameters:
client
- clientid
- id- Returns:
- putTopologyDeactivate
- Throws:
org.apache.storm.thrift.TException
- TException
-
putTopologyDebugActionSpct
public static Map<String,Object> putTopologyDebugActionSpct(Nimbus.Iface client, String id, String action, String spct, String component) throws org.apache.storm.thrift.TException putTopologyDebugActionSpct.- Parameters:
client
- clientid
- idaction
- actionspct
- spctcomponent
- component- Returns:
- putTopologyDebugActionSpct
- Throws:
org.apache.storm.thrift.TException
- TException
-
putTopologyRebalance
public static Map<String,Object> putTopologyRebalance(Nimbus.Iface client, String id, String waitTime) throws org.apache.storm.thrift.TException putTopologyRebalance.- Parameters:
client
- clientid
- idwaitTime
- waitTime- Returns:
- putTopologyRebalance
- Throws:
org.apache.storm.thrift.TException
- TException
-
putTopologyKill
public static Map<String,Object> putTopologyKill(Nimbus.Iface client, String id, String waitTime) throws org.apache.storm.thrift.TException putTopologyKill.- Parameters:
client
- clientid
- idwaitTime
- waitTime- Returns:
- putTopologyKill
- Throws:
org.apache.storm.thrift.TException
- TException
-
setTopologyProfilingAction
public static void setTopologyProfilingAction(Nimbus.Iface client, String id, String hostPort, Long timestamp, Map<String, Object> config, ProfileAction profileAction) throws org.apache.storm.thrift.TExceptionsetTopologyProfilingAction.- Parameters:
client
- clientid
- idhostPort
- hostPorttimestamp
- timestampconfig
- configprofileAction
- profileAction- Throws:
org.apache.storm.thrift.TException
- TException
-
getTopologyProfilingStart
public static Map<String,Object> getTopologyProfilingStart(Nimbus.Iface client, String id, String hostPort, String timeout, Map<String, Object> config) throws org.apache.storm.thrift.TExceptiongetTopologyProfilingStart.- Parameters:
client
- clientid
- idhostPort
- hostPorttimeout
- timeoutconfig
- config- Returns:
- getTopologyProfilingStart
- Throws:
org.apache.storm.thrift.TException
- TException
-
getTopologyProfilingStop
public static Map<String,Object> getTopologyProfilingStop(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) throws org.apache.storm.thrift.TExceptiongetTopologyProfilingStop.- Parameters:
client
- clientid
- idhostPort
- hostPortconfig
- config- Returns:
- getTopologyProfilingStop
- Throws:
org.apache.storm.thrift.TException
- TException
-
getProfilingDisabled
getProfilingDisabled.- Returns:
- getProfilingDisabled
-
getTopologyProfilingDump
public static Map<String,Object> getTopologyProfilingDump(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) throws org.apache.storm.thrift.TExceptiongetTopologyProfilingDump.- Parameters:
client
- clientid
- idhostPort
- hostPortconfig
- config- Returns:
- getTopologyProfilingDump
- Throws:
org.apache.storm.thrift.TException
- TException
-
getTopologyProfilingDumpJstack
public static Map<String,Object> getTopologyProfilingDumpJstack(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) throws org.apache.storm.thrift.TException- Throws:
org.apache.storm.thrift.TException
-
getTopologyProfilingRestartWorker
public static Map<String,Object> getTopologyProfilingRestartWorker(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) throws org.apache.storm.thrift.TExceptiongetTopologyProfilingRestartWorker.- Parameters:
client
- clientid
- idhostPort
- hostPortconfig
- config- Returns:
- getTopologyProfilingRestartWorker
- Throws:
org.apache.storm.thrift.TException
- TException
-
getTopologyProfilingDumpHeap
public static Map<String,Object> getTopologyProfilingDumpHeap(Nimbus.Iface client, String id, String hostPort, Map<String, Object> config) throws org.apache.storm.thrift.TExceptiongetTopologyProfilingDumpHeap.- Parameters:
client
- clientid
- idhostPort
- hostportconfig
- config- Returns:
- getTopologyProfilingDumpHeap
- Throws:
org.apache.storm.thrift.TException
- TException
-
putTopologyLogLevel
public static Map<String,Object> putTopologyLogLevel(Nimbus.Iface client, Map<String, Map> namedLogLevel, String id) throws org.apache.storm.thrift.TExceptionputTopologyLogLevel.- Parameters:
client
- clientnamedLogLevel
- namedLogLevelid
- id- Returns:
- putTopologyLogLevel.
- Throws:
org.apache.storm.thrift.TException
- TException
-
getNimbusSummary
public static Map<String,Object> getNimbusSummary(ClusterSummary clusterInfo, Map<String, Object> config) getNimbusSummary.- Parameters:
clusterInfo
- clusterInfoconfig
- config- Returns:
- getNimbusSummary
-