public class UIHelpers extends Object
Constructor and Description |
---|
UIHelpers() |
Modifier and Type | Method and Description |
---|---|
static 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()
corsFilterHandle.
|
static Map |
exceptionToJson(Exception ex,
int statusCode)
Converts exception into json map.
|
static Map<String,Object> |
getActiveAction(ProfileRequest profileRequest,
Map config,
String topologyId)
getActiveAction.
|
static List |
getActiveProfileActions(Nimbus.Iface client,
String id,
String component,
Map config)
getActiveProfileActions.
|
static Map<String,Object> |
getAllTopologiesSummary(List<TopologySummary> topologies,
Map<String,Object> config)
getAllTopologiesSummary.
|
static Map<String,List<ExecutorSummary>> |
getBoltExecutors(List<ExecutorSummary> executorSummaries,
StormTopology stormTopology,
boolean sys)
getBoltExecutors.
|
static Map<String,Object> |
getBuildVisualization(Nimbus.Iface client,
Map<String,Object> config,
String window,
String id,
boolean sys)
getBuildVisualization.
|
static Map<String,Object> |
getClusterSummary(ClusterSummary clusterSummary,
String user,
Map<String,Object> conf)
Converts thrift call result into map fit for UI/api.
|
static Map<String,Object> |
getComponentPage(Nimbus.Iface client,
String id,
String component,
String window,
boolean sys,
String user,
Map config)
getComponentPage.
|
static Map<String,Object> |
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(String host,
String fname,
Map<String,Object> config,
int port)
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.
|
static Map<String,Object> |
getNimbusSummary(ClusterSummary clusterInfo,
Map<String,Object> config)
getNimbusSummary.
|
static Map<String,Object> |
getOwnerResourceSummaries(List<OwnerResourceSummary> ownerResourceSummaries,
Map<String,Object> conf)
Get prettified ownerResourceSummaries.
|
static Map<String,Object> |
getOwnerResourceSummary(List<OwnerResourceSummary> ownerResourceSummaries,
Nimbus.Iface client,
String id,
Map<String,Object> config)
Get a specific owner resource summary.
|
static Map<String,Object> |
getPrettifiedSupervisorMap(SupervisorSummary supervisorSummary,
Map<String,Object> config)
Get supervisor info in a map.
|
static Map<String,Object> |
getProfilingDisabled()
getProfilingDisabled.
|
static Map<String,List<ExecutorSummary>> |
getSpoutExecutors(List<ExecutorSummary> executorSummaries,
StormTopology stormTopology)
getSpoutExecutors.
|
static Map<String,Double> |
getStatDisplayMap(Map<String,Double> rawDisplayMap)
getStatDisplayMap.
|
static Map<String,Object> |
getStatMapFromExecutorSummary(ExecutorSummary executorSummary)
getStatMapFromExecutorSummary.
|
static Map<String,Object> |
getStreamBox(Object visualization)
getStreamBox.
|
static String |
getSupervisorLogLink(String host,
Map<String,Object> config)
Get log link to supervisor log.
|
static Map<String,Object> |
getSupervisorPageInfo(SupervisorPageInfo supervisorPageInfo,
Map<String,Object> config)
getSupervisorPageInfo.
|
static Map<String,Object> |
getSupervisorSummary(List<SupervisorSummary> supervisors,
javax.ws.rs.core.SecurityContext securityContext,
Map<String,Object> config)
getSupervisorSummary.
|
static Map<String,Object> |
getTopolgoyLogConfig(LogConfig logConfig)
getTopolgoyLogConfig.
|
static Map<String,Object> |
getTopologyHistoryInfo(TopologyHistoryInfo topologyHistory)
Get topology history.
|
static Map<String,Map<String,Object>> |
getTopologyLag(StormTopology userTopology,
Map<String,Object> config)
getTopologyLag.
|
static Map<String,Object> |
getTopologyMap(TopologySummary topologySummary)
getTopologyMap.
|
static Map<String,Object> |
getTopologyOpResponse(String id,
String op)
getTopologyOpResponse.
|
static Map<String,Object> |
getTopologyProfilingDump(Nimbus.Iface client,
String id,
String hostPort,
Map<String,Object> config)
getTopologyProfilingDump.
|
static Map<String,Object> |
getTopologyProfilingDumpHeap(Nimbus.Iface client,
String id,
String hostPort,
Map<String,Object> config)
getTopologyProfilingDumpHeap.
|
static Map<String,Object> |
getTopologyProfilingDumpJstack(Nimbus.Iface client,
String id,
String hostPort,
Map<String,Object> config) |
static Map<String,Object> |
getTopologyProfilingRestartWorker(Nimbus.Iface client,
String id,
String hostPort,
Map<String,Object> config)
getTopologyProfilingRestartWorker.
|
static Map<String,Object> |
getTopologyProfilingStart(Nimbus.Iface client,
String id,
String hostPort,
String timeout,
Map<String,Object> config)
getTopologyProfilingStart.
|
static Map<String,Object> |
getTopologyProfilingStop(Nimbus.Iface client,
String id,
String hostPort,
Map<String,Object> config)
getTopologyProfilingStop.
|
static Map<String,Object> |
getTopologySummary(TopologyPageInfo topologyPageInfo,
String window,
Map<String,Object> config,
String remoteUser)
getTopologySummary.
|
static Map<String,Object> |
getTopologyWorkers(TopologyInfo topologyInfo,
Map config)
getTopologyWorkers.
|
static Map<String,Object> |
getVisualizationData(Nimbus.Iface client,
String window,
String topoId,
boolean sys)
getVisualizationData.
|
static String |
getWindowHint(String window)
getWindowHint.
|
static String |
getWorkerDumpLink(String host,
long port,
String topologyId,
Map<String,Object> config)
getWorkerDumpLink.
|
static String |
getWorkerLogLink(String host,
int port,
Map<String,Object> config,
String topologyId)
Get log link to supervisor log.
|
static List<Map> |
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()
mkAccessLoggingFilterHandle.
|
static String |
prettyExecutorInfo(ExecutorInfo e)
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.
|
static Map<String,Object> |
putTopologyActivate(Nimbus.Iface client,
String id)
putTopologyActivate.
|
static Map<String,Object> |
putTopologyDeactivate(Nimbus.Iface client,
String id)
putTopologyDeactivate.
|
static Map<String,Object> |
putTopologyDebugActionSpct(Nimbus.Iface client,
String id,
String action,
String spct,
String component)
putTopologyDebugActionSpct.
|
static Map<String,Object> |
putTopologyKill(Nimbus.Iface client,
String id,
String waitTime)
putTopologyKill.
|
static Map<String,Object> |
putTopologyLogLevel(Nimbus.Iface client,
Map<String,Map> namedLogLevel,
String id)
putTopologyLogLevel.
|
static Map<String,Object> |
putTopologyRebalance(Nimbus.Iface client,
String id,
String waitTime)
putTopologyRebalance.
|
static String |
sanitizeStreamName(String streamName)
sanitizeStreamName.
|
static Map<String,Map<String,Long>> |
sanitizeTransferredStats(Map<String,Map<String,Long>> stats)
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.
|
static Map<String,Object> |
unauthorizedUserJson(String user)
Unauthorized user json.
|
static Map<String,Object> |
unpackBoltPageInfo(ComponentPageInfo componentPageInfo,
String topologyId,
String window,
boolean sys,
Map config)
unpackBoltPageInfo.
|
static Map<String,Object> |
unpackOwnerResourceSummary(OwnerResourceSummary ownerResourceSummary)
Prettify OwnerResourceSummary.
|
static Map<String,Object> |
unpackSpoutPageInfo(ComponentPageInfo componentPageInfo,
String topologyId,
String window,
boolean sys,
Map config)
unpackSpoutPageInfo.
|
static String |
urlFormat(String fmt,
Object... args)
url formatter for log links.
|
static String |
wrapJsonInCallback(String callback,
String response)
wrapJsonInCallback.
|
public static String prettyUptimeStr(String val, Object[][] dividers)
Prettify uptime string.
val
- val.dividers
- dividers.public static String prettyUptimeSec(String sec)
Prettify uptime string.
sec
- uptime in seconds.public static String prettyUptimeSec(int secs)
prettyUptimeSec.
secs
- secspublic static String prettyUptimeMs(String ms)
prettyUptimeMs.
ms
- mspublic static String prettyUptimeMs(int ms)
prettyUptimeMs.
ms
- mspublic static String urlFormat(String fmt, Object... args)
url formatter for log links.
fmt
- string formatargs
- hostname and other arguments.public static String prettyExecutorInfo(ExecutorInfo e)
Prettified executor info.
e
- from Nimbus callpublic static Map<String,Object> unauthorizedUserJson(String user)
Unauthorized user json.
user
- User id.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, boolean enableSslReload)
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.
server
- serverport
- portksPath
- ksPathksPassword
- ksPasswordksType
- ksTypekeyPassword
- keyPasswordtsPath
- tsPathtsPassword
- tsPasswordtsType
- tsTypeneedClientAuth
- needClientAuthwantClientAuth
- wantClientAuthheaderBufferSize
- headerBufferSizeenableSslReload
- enable ssl reloadpublic static org.eclipse.jetty.servlet.FilterHolder corsFilterHandle()
corsFilterHandle.
public static org.eclipse.jetty.servlet.FilterHolder mkAccessLoggingFilterHandle()
mkAccessLoggingFilterHandle.
public static void configFilter(org.eclipse.jetty.server.Server server, javax.servlet.Servlet servlet, List<FilterConfiguration> filtersConfs)
public static void configFilter(org.eclipse.jetty.server.Server server, javax.servlet.Servlet servlet, List<FilterConfiguration> filtersConfs, Map<String,String> params)
Config filter.
server
- Serverservlet
- ServletfiltersConfs
- FiltersConfsparams
- Filter paramspublic static void configFilters(org.eclipse.jetty.servlet.ServletContextHandler context, List<FilterConfiguration> filtersConfs)
Config filters.
context
- Servlet contextfiltersConfs
- filter confspublic static org.eclipse.jetty.server.Server jettyCreateServer(Integer port, String host, Integer httpsPort, Boolean disableHttpBinding)
Construct a Jetty Server instance.
public static org.eclipse.jetty.server.Server jettyCreateServer(Integer port, String host, Integer httpsPort, Integer headerBufferSize, Boolean disableHttpBinding)
Construct a Jetty Server instance.
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.
Exception
public static void stormRunJetty(Integer port, Integer headerBufferSize, IConfigurator configurator) throws Exception
Exception
public static String wrapJsonInCallback(String callback, String response)
wrapJsonInCallback.
callback
- callbackParameterNameresponse
- responsepublic static Map getJsonResponseHeaders(String callback, Map headers)
getJsonResponseHeaders.
callback
- callbackParameterNameheaders
- headerspublic static String getJsonResponseBody(Object data, String callback, boolean needSerialize)
public static Map exceptionToJson(Exception ex, int statusCode)
Converts exception into json map.
ex
- Exception to be converted.statusCode
- Status code to be returned.public static javax.ws.rs.core.Response makeStandardResponse(Object data, String callback)
public static javax.ws.rs.core.Response makeStandardResponse(Object data, String callback, javax.ws.rs.core.Response.Status status)
public static javax.ws.rs.core.Response makeStandardResponse(Object data, String callback, boolean needsSerialization, javax.ws.rs.core.Response.Status status)
makeStandardResponse.
data
- datacallback
- callbackParameterNameneedsSerialization
- needsSerializationpublic static Map<String,Object> getClusterSummary(ClusterSummary clusterSummary, String user, Map<String,Object> conf)
Converts thrift call result into map fit for UI/api.
clusterSummary
- Obtained from Nimbus.user
- User Making requestconf
- Storm Confpublic static Map<String,Object> unpackOwnerResourceSummary(OwnerResourceSummary ownerResourceSummary)
Prettify OwnerResourceSummary.
ownerResourceSummary
- ownerResourceSummarypublic static Map<String,Object> getOwnerResourceSummaries(List<OwnerResourceSummary> ownerResourceSummaries, Map<String,Object> conf)
Get prettified ownerResourceSummaries.
ownerResourceSummaries
- ownerResourceSummaries from thrift callconf
- Storm confpublic static Map<String,Object> getTopologyMap(TopologySummary topologySummary)
getTopologyMap.
topologySummary
- topologySummarypublic static Map<String,Object> getOwnerResourceSummary(List<OwnerResourceSummary> ownerResourceSummaries, Nimbus.Iface client, String id, Map<String,Object> config) throws org.apache.storm.thrift.TException
Get a specific owner resource summary.
ownerResourceSummaries
- Result from thrift call.client
- clientid
- Owner id.config
- Storm conf.org.apache.storm.thrift.TException
public static String getLogviewerLink(String host, String fname, Map<String,Object> config, int port)
getLogviewerLink.
host
- hostfname
- fnameconfig
- configport
- portpublic static String getNimbusLogLink(String host, Map<String,Object> config)
Get log link to nimbus log.
host
- nimbus host nameconfig
- storm configpublic static String getSupervisorLogLink(String host, Map<String,Object> config)
Get log link to supervisor log.
host
- supervisor host nameconfig
- storm configpublic static String getWorkerLogLink(String host, int port, Map<String,Object> config, String topologyId)
Get log link to supervisor log.
host
- supervisor host nameconfig
- storm configpublic static Map<String,Object> getPrettifiedSupervisorMap(SupervisorSummary supervisorSummary, Map<String,Object> config)
Get supervisor info in a map.
supervisorSummary
- from nimbus call.config
- Storm config.public static Map<String,Object> getTopologyHistoryInfo(TopologyHistoryInfo topologyHistory)
Get topology history.
topologyHistory
- from Nimbus call.public static boolean isSecureLogviewer(Map<String,Object> config)
Check if logviewer is secure.
config
- Storm config.public static int getLogviewerPort(Map<String,Object> config)
Get logviewer port depending on whether the logviewer is secure or not.
config
- Storm config.public static List<Map> getWorkerSummaries(SupervisorPageInfo supervisorPageInfo, Map<String,Object> config)
getWorkerSummaries.
supervisorPageInfo
- supervisorPageInfoconfig
- configpublic static Map<String,Object> getSupervisorSummary(List<SupervisorSummary> supervisors, javax.ws.rs.core.SecurityContext securityContext, Map<String,Object> config)
getSupervisorSummary.
supervisors
- supervisor summary list.securityContext
- security context injected.config
- Storm config.public static Map<String,Object> getSupervisorPageInfo(SupervisorPageInfo supervisorPageInfo, Map<String,Object> config)
getSupervisorPageInfo.
supervisorPageInfo
- supervisorPageInfoconfig
- configpublic static Map<String,Object> getAllTopologiesSummary(List<TopologySummary> topologies, Map<String,Object> config)
getAllTopologiesSummary.
topologies
- topologiesconfig
- configpublic static String getWindowHint(String window)
getWindowHint.
window
- windowpublic static Map<String,Double> getStatDisplayMap(Map<String,Double> rawDisplayMap)
getStatDisplayMap.
rawDisplayMap
- rawDisplayMappublic static Map<String,Object> getTopologySummary(TopologyPageInfo topologyPageInfo, String window, Map<String,Object> config, String remoteUser)
getTopologySummary.
topologyPageInfo
- topologyPageInfowindow
- windowconfig
- configremoteUser
- remoteUserpublic static Map<String,Object> getTopologyWorkers(TopologyInfo topologyInfo, Map config)
getTopologyWorkers.
topologyInfo
- topologyInfoconfig
- configpublic static Map<String,Map<String,Object>> getTopologyLag(StormTopology userTopology, Map<String,Object> config)
getTopologyLag.
userTopology
- userTopologyconfig
- configpublic static Map<String,List<ExecutorSummary>> getBoltExecutors(List<ExecutorSummary> executorSummaries, StormTopology stormTopology, boolean sys)
getBoltExecutors.
executorSummaries
- executorSummariesstormTopology
- stormTopologysys
- syspublic static Map<String,List<ExecutorSummary>> getSpoutExecutors(List<ExecutorSummary> executorSummaries, StormTopology stormTopology)
getSpoutExecutors.
executorSummaries
- executorSummariesstormTopology
- stormTopologypublic static String sanitizeStreamName(String streamName)
sanitizeStreamName.
streamName
- streamNamepublic static Map<String,Map<String,Long>> sanitizeTransferredStats(Map<String,Map<String,Long>> stats)
sanitizeTransferredStats.
stats
- statspublic static Map<String,Object> getStatMapFromExecutorSummary(ExecutorSummary executorSummary)
getStatMapFromExecutorSummary.
executorSummary
- executorSummarypublic static Map<String,Object> getInputMap(Map.Entry<GlobalStreamId,Grouping> entryInput)
getInputMap.
entryInput
- entryInputpublic static Map<String,Object> getVisualizationData(Nimbus.Iface client, String window, String topoId, boolean sys) throws org.apache.storm.thrift.TException
getVisualizationData.
client
- clientwindow
- windowtopoId
- topoIdsys
- sysorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> getStreamBox(Object visualization)
getStreamBox.
visualization
- visualizationpublic static Map<String,Object> getBuildVisualization(Nimbus.Iface client, Map<String,Object> config, String window, String id, boolean sys) throws org.apache.storm.thrift.TException
getBuildVisualization.
client
- clientconfig
- configwindow
- windowid
- idsys
- sysorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> getActiveAction(ProfileRequest profileRequest, Map config, String topologyId)
getActiveAction.
profileRequest
- profileRequestconfig
- configtopologyId
- topologyIdpublic static List getActiveProfileActions(Nimbus.Iface client, String id, String component, Map config) throws org.apache.storm.thrift.TException
getActiveProfileActions.
client
- clientid
- idcomponent
- componentconfig
- configorg.apache.storm.thrift.TException
- TExceptionpublic static String getWorkerDumpLink(String host, long port, String topologyId, Map<String,Object> config)
getWorkerDumpLink.
host
- hostport
- porttopologyId
- topologyIdconfig
- configpublic static Map<String,Object> unpackBoltPageInfo(ComponentPageInfo componentPageInfo, String topologyId, String window, boolean sys, Map config)
unpackBoltPageInfo.
componentPageInfo
- componentPageInfotopologyId
- topologyIdwindow
- windowsys
- sysconfig
- configpublic static Map<String,Object> unpackSpoutPageInfo(ComponentPageInfo componentPageInfo, String topologyId, String window, boolean sys, Map config)
unpackSpoutPageInfo.
componentPageInfo
- componentPageInfotopologyId
- topologyIdwindow
- windowsys
- sysconfig
- configpublic 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.
client
- clientid
- idcomponent
- componentwindow
- windowsys
- sysuser
- userconfig
- configorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> getTopolgoyLogConfig(LogConfig logConfig)
getTopolgoyLogConfig.
logConfig
- logConfigpublic static Map<String,Object> getTopologyOpResponse(String id, String op)
getTopologyOpResponse.
id
- idop
- oppublic static Map<String,Object> putTopologyActivate(Nimbus.Iface client, String id) throws org.apache.storm.thrift.TException
putTopologyActivate.
client
- clientid
- idorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> putTopologyDeactivate(Nimbus.Iface client, String id) throws org.apache.storm.thrift.TException
putTopologyDeactivate.
client
- clientid
- idorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> putTopologyDebugActionSpct(Nimbus.Iface client, String id, String action, String spct, String component) throws org.apache.storm.thrift.TException
putTopologyDebugActionSpct.
client
- clientid
- idaction
- actionspct
- spctcomponent
- componentorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> putTopologyRebalance(Nimbus.Iface client, String id, String waitTime) throws org.apache.storm.thrift.TException
putTopologyRebalance.
client
- clientid
- idwaitTime
- waitTimeorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> putTopologyKill(Nimbus.Iface client, String id, String waitTime) throws org.apache.storm.thrift.TException
putTopologyKill.
client
- clientid
- idwaitTime
- waitTimeorg.apache.storm.thrift.TException
- TExceptionpublic static void setTopologyProfilingAction(Nimbus.Iface client, String id, String hostPort, Long timestamp, Map<String,Object> config, ProfileAction profileAction) throws org.apache.storm.thrift.TException
setTopologyProfilingAction.
client
- clientid
- idhostPort
- hostPorttimestamp
- timestampconfig
- configprofileAction
- profileActionorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> getTopologyProfilingStart(Nimbus.Iface client, String id, String hostPort, String timeout, Map<String,Object> config) throws org.apache.storm.thrift.TException
getTopologyProfilingStart.
client
- clientid
- idhostPort
- hostPorttimeout
- timeoutconfig
- configorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> getTopologyProfilingStop(Nimbus.Iface client, String id, String hostPort, Map<String,Object> config) throws org.apache.storm.thrift.TException
getTopologyProfilingStop.
client
- clientid
- idhostPort
- hostPortconfig
- configorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> getProfilingDisabled()
getProfilingDisabled.
public static Map<String,Object> getTopologyProfilingDump(Nimbus.Iface client, String id, String hostPort, Map<String,Object> config) throws org.apache.storm.thrift.TException
getTopologyProfilingDump.
client
- clientid
- idhostPort
- hostPortconfig
- configorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> getTopologyProfilingDumpJstack(Nimbus.Iface client, String id, String hostPort, Map<String,Object> config) throws org.apache.storm.thrift.TException
org.apache.storm.thrift.TException
public static Map<String,Object> getTopologyProfilingRestartWorker(Nimbus.Iface client, String id, String hostPort, Map<String,Object> config) throws org.apache.storm.thrift.TException
getTopologyProfilingRestartWorker.
client
- clientid
- idhostPort
- hostPortconfig
- configorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> getTopologyProfilingDumpHeap(Nimbus.Iface client, String id, String hostPort, Map<String,Object> config) throws org.apache.storm.thrift.TException
getTopologyProfilingDumpHeap.
client
- clientid
- idhostPort
- hostportconfig
- configorg.apache.storm.thrift.TException
- TExceptionpublic static Map<String,Object> putTopologyLogLevel(Nimbus.Iface client, Map<String,Map> namedLogLevel, String id) throws org.apache.storm.thrift.TException
putTopologyLogLevel.
client
- clientnamedLogLevel
- namedLogLevelid
- idorg.apache.storm.thrift.TException
- TExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.