public class TopologyDetails extends Object
Constructor and Description |
---|
TopologyDetails(String topologyId,
Map<String,Object> topologyConf,
StormTopology topology,
int numWorkers,
Map<ExecutorDetails,String> executorToComponents,
int launchTime,
String owner) |
TopologyDetails(String topologyId,
Map<String,Object> topologyConf,
StormTopology topology,
int numWorkers,
Map<ExecutorDetails,String> executorToComponents,
String owner) |
TopologyDetails(String topologyId,
Map<String,Object> topologyConf,
StormTopology topology,
int numWorkers,
String owner) |
Modifier and Type | Method and Description |
---|---|
void |
addResourcesForExec(ExecutorDetails exec,
NormalizedResourceRequest resourceList)
add resource requirements for a executor.
|
boolean |
equals(Object o) |
NormalizedResourceRequest |
getApproximateResources(Set<ExecutorDetails> execs)
Get approximate resources for given topology executors.
|
NormalizedResourceRequest |
getApproximateTotalResources()
Get an approximate total resources needed for this topology.
|
String |
getComponentFromExecutor(ExecutorDetails exec) |
Map<String,Set<ExecutorDetails>> |
getComponentToExecutors() |
Map<String,Object> |
getConf() |
Set<ExecutorDetails> |
getExecutors() |
Map<ExecutorDetails,String> |
getExecutorToComponent() |
String |
getId() |
int |
getLaunchTime()
Get the timestamp of when this topology was launched.
|
String |
getName() |
int |
getNumWorkers() |
Double |
getOffHeapMemoryRequirement(ExecutorDetails exec)
Gets the off heap memory requirement for a certain task within a topology.
|
Double |
getOnHeapMemoryRequirement(ExecutorDetails exec)
Gets the on heap memory requirement for a certain task within a topology.
|
double |
getRequestedNonSharedOffHeap() |
double |
getRequestedNonSharedOnHeap() |
double |
getRequestedSharedOffHeap() |
double |
getRequestedSharedOnHeap() |
Set<SharedMemory> |
getSharedMemoryRequests(Collection<ExecutorDetails> executors)
Gets the total memory resource list for a set of tasks that is part of a topology.
|
NormalizedResourceRequest |
getTaskResourceReqList(ExecutorDetails exec)
get the resources requirements for a executor.
|
StormTopology |
getTopology() |
int |
getTopologyPriority()
get the priority of this topology.
|
String |
getTopologySubmitter()
Get the user that submitted this topology.
|
Double |
getTopologyWorkerMaxHeapSize()
Get the max heap size for a worker used by this topology.
|
Double |
getTotalCpuReqTask(ExecutorDetails exec)
Get the total CPU requirement for executor.
|
Double |
getTotalMemReqTask(ExecutorDetails exec)
Gets the total memory requirement for a task.
|
double |
getTotalRequestedCpu()
Note: The public API relevant to resource aware scheduling is unstable as of May 2015.
|
Map<String,Double> |
getTotalRequestedGenericResources() |
double |
getTotalRequestedMemOffHeap()
Note: The public API relevant to resource aware scheduling is unstable as of May 2015.
|
double |
getTotalRequestedMemOnHeap()
Note: The public API relevant to resource aware scheduling is unstable as of May 2015.
|
NormalizedResourceRequest |
getTotalResources(ExecutorDetails exec)
Get the total resource requirement for an executor.
|
int |
getUpTime()
Get how long this topology has been executing.
|
Map<String,Component> |
getUserTopolgyComponents()
Returns a representation of the non-system components of the topology graph.
|
boolean |
hasExecInTopo(ExecutorDetails exec)
Checks if a executor is part of this topology.
|
int |
hashCode() |
boolean |
hasSpouts()
Determine if there are non-system spouts.
|
Map<ExecutorDetails,String> |
selectExecutorToComponent(Collection<ExecutorDetails> executors) |
String |
toString() |
public TopologyDetails(String topologyId, Map<String,Object> topologyConf, StormTopology topology, int numWorkers, String owner)
public TopologyDetails(String topologyId, Map<String,Object> topologyConf, StormTopology topology, int numWorkers, Map<ExecutorDetails,String> executorToComponents, String owner)
public TopologyDetails(String topologyId, Map<String,Object> topologyConf, StormTopology topology, int numWorkers, Map<ExecutorDetails,String> executorToComponents, int launchTime, String owner)
public String getId()
public String getName()
public int getNumWorkers()
public StormTopology getTopology()
public Map<ExecutorDetails,String> getExecutorToComponent()
public Map<ExecutorDetails,String> selectExecutorToComponent(Collection<ExecutorDetails> executors)
public Map<String,Set<ExecutorDetails>> getComponentToExecutors()
public Set<ExecutorDetails> getExecutors()
public Map<String,Component> getUserTopolgyComponents()
public boolean hasSpouts()
public String getComponentFromExecutor(ExecutorDetails exec)
public Double getOnHeapMemoryRequirement(ExecutorDetails exec)
exec
- the executor the inquiry is concerning.public Double getOffHeapMemoryRequirement(ExecutorDetails exec)
exec
- the executor the inquiry is concerning.public Double getTotalMemReqTask(ExecutorDetails exec)
exec
- the executor the inquiry is concerning.public Set<SharedMemory> getSharedMemoryRequests(Collection<ExecutorDetails> executors)
executors
- all executors for a topologypublic NormalizedResourceRequest getTotalResources(ExecutorDetails exec)
exec
- the executor to get the resources for.public NormalizedResourceRequest getApproximateTotalResources()
public NormalizedResourceRequest getApproximateResources(Set<ExecutorDetails> execs)
execs
- the executors the inquiry is concerning.public Double getTotalCpuReqTask(ExecutorDetails exec)
public double getTotalRequestedMemOnHeap()
public double getRequestedSharedOnHeap()
public double getRequestedNonSharedOnHeap()
public double getTotalRequestedMemOffHeap()
public double getRequestedNonSharedOffHeap()
public double getRequestedSharedOffHeap()
public double getTotalRequestedCpu()
public NormalizedResourceRequest getTaskResourceReqList(ExecutorDetails exec)
exec
- executor detailspublic boolean hasExecInTopo(ExecutorDetails exec)
public void addResourcesForExec(ExecutorDetails exec, NormalizedResourceRequest resourceList)
public Double getTopologyWorkerMaxHeapSize()
public String getTopologySubmitter()
public int getTopologyPriority()
public int getLaunchTime()
public int getUpTime()
Copyright © 2023 The Apache Software Foundation. All rights reserved.