Package org.apache.storm.scheduler
Class SupervisorDetails
java.lang.Object
org.apache.storm.scheduler.SupervisorDetails
- 
Constructor SummaryConstructorsConstructorDescriptionSupervisorDetails(String id, int serverPort, String host, Object schedulerMeta, Collection<? extends Number> allPorts, Map<String, Double> totalResources) SupervisorDetails(String id, Integer serverPort, String host, Object meta, Object schedulerMeta, Collection<? extends Number> allPorts, Map<String, Double> totalResources) Create the details of a new supervisor.SupervisorDetails(String id, Object meta) SupervisorDetails(String id, Object meta, Collection<? extends Number> allPorts) SupervisorDetails(String id, String host, Object schedulerMeta, Collection<? extends Number> allPorts) SupervisorDetails(String id, String host, Object schedulerMeta, Collection<? extends Number> allPorts, Map<String, Double> totalResources) 
- 
Method Summary
- 
Constructor Details- 
SupervisorDetailspublic SupervisorDetails(String id, Integer serverPort, String host, Object meta, Object schedulerMeta, Collection<? extends Number> allPorts, Map<String, Double> totalResources) Create the details of a new supervisor.- Parameters:
- id- the ID as reported by the supervisor.
- serverPort- the thrift server for the supervisor.
- host- the host the supervisor is on.
- meta- meta data reported by the supervisor (should be a collection of the ports on the supervisor).
- schedulerMeta- Not used and can probably be removed.
- allPorts- all of the ports for the supervisor (a better version of meta)
- totalResources- all of the resources for this supervisor.
 
- 
SupervisorDetails
- 
SupervisorDetails
- 
SupervisorDetails
- 
SupervisorDetailspublic SupervisorDetails(String id, String host, Object schedulerMeta, Collection<? extends Number> allPorts) 
- 
SupervisorDetails
- 
SupervisorDetails
 
- 
- 
Method Details- 
toString
- 
getId
- 
getServerPortpublic int getServerPort()
- 
getHost
- 
getMeta
- 
getAllPorts
- 
getSchedulerMeta
- 
getTotalMemorypublic double getTotalMemory()Get the total Memory on this supervisor in MB.
- 
getTotalCpupublic double getTotalCpu()Get the total CPU on this supervisor in % CPU.
- 
getTotalGenericResources
- 
getTotalResourcesGet all resources for this Supervisor.
 
-