Container.ContainerTypeassignment, conf, containerMemoryTracker, ops, port, resourceIsolationManager, runAsUser, supervisorId, supervisorPort, symlinksDisabled, topoConf, topologyId, type, workerId| Constructor and Description |
|---|
LocalContainer(Map<String,Object> conf,
String supervisorId,
int supervisorPort,
int port,
LocalAssignment assignment,
IContext sharedContext,
StormMetricsRegistry metricsRegistry,
ContainerMemoryTracker containerMemoryTracker,
Supervisor.Iface localSupervisor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllProcessesDead()
Check whether all processes are dead.
|
protected void |
createArtifactsLink()
Create symlink from the containers directory/artifacts to the artifacts directory.
|
protected void |
createBlobstoreLinks()
Create symlinks for each of the blobs from the container's directory to corresponding links in the storm dist directory.
|
boolean |
didMainProcessExit()
Return true if the main process exited, else false.
|
void |
kill()
Kill the processes in this container nicely.
|
void |
launch()
Launch the process for the first time.
|
void |
relaunch()
Restart the processes in this container.
|
boolean |
runProfiling(ProfileRequest request,
boolean stop)
Run a profiling request.
|
cleanUp, cleanUpForRestart, deleteSavedWorkerUser, forceKill, getMemoryReservationMb, getMemoryUsageMb, getTotalTopologyMemoryReserved, getTotalTopologyMemoryUsed, getTotalWorkersForThisTopology, getWorkerId, getWorkerUser, isMemoryLimitViolated, readHeartbeat, readTopoConf, saveWorkerUser, setup, toString, updateMemoryAccounting, writeLogMetadatapublic LocalContainer(Map<String,Object> conf, String supervisorId, int supervisorPort, int port, LocalAssignment assignment, IContext sharedContext, StormMetricsRegistry metricsRegistry, ContainerMemoryTracker containerMemoryTracker, Supervisor.Iface localSupervisor) throws IOException
IOExceptionprotected void createArtifactsLink()
ContainercreateArtifactsLink in class Containerprotected void createBlobstoreLinks()
ContainercreateBlobstoreLinks in class Containerpublic void launch()
throws IOException
Containerlaunch in class ContainerIOException - on any errorpublic void kill()
throws IOException
Killablekill in interface Killablekill in class ContainerIOException - on any errorpublic boolean areAllProcessesDead()
throws IOException
KillableareAllProcessesDead in interface KillableareAllProcessesDead in class ContainerIOException - on any errorpublic void relaunch()
throws IOException
Containerrelaunch in class ContainerIOException - on any errorpublic boolean didMainProcessExit()
ContainerdidMainProcessExit in class Containerpublic boolean runProfiling(ProfileRequest request, boolean stop) throws IOException, InterruptedException
ContainerrunProfiling in class Containerrequest - the request to runstop - is this a stop request?IOException - on any errorInterruptedException - if running the command is interrupted.Copyright © 2023 The Apache Software Foundation. All rights reserved.