Package org.apache.storm.localizer
Class TimePortAndAssignment
- java.lang.Object
-
- org.apache.storm.metric.timed.Timed<PortAndAssignment>
-
- org.apache.storm.localizer.TimePortAndAssignment
-
- All Implemented Interfaces:
AutoCloseable,PortAndAssignment,TimerDecorated
public class TimePortAndAssignment extends Timed<PortAndAssignment> implements PortAndAssignment
-
-
Constructor Summary
Constructors Constructor Description TimePortAndAssignment(PortAndAssignment measured, com.codahale.metrics.Timer timer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete()booleanequals(Object other)All implementations of PortAndAssignment should implement the same equals() method.LocalAssignmentgetAssignment()StringgetOwner()intgetPort()StringgetToplogyId()inthashCode()All implementations of PortAndAssignment should implement the same hashCode() method.StringtoString()-
Methods inherited from class org.apache.storm.metric.timed.Timed
getMeasured, stopTiming
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.storm.localizer.PortAndAssignment
isEquivalentTo
-
Methods inherited from interface org.apache.storm.metric.timed.TimerDecorated
close, stopTiming
-
-
-
-
Constructor Detail
-
TimePortAndAssignment
public TimePortAndAssignment(PortAndAssignment measured, com.codahale.metrics.Timer timer)
-
-
Method Detail
-
getToplogyId
public String getToplogyId()
- Specified by:
getToplogyIdin interfacePortAndAssignment
-
getOwner
public String getOwner()
- Specified by:
getOwnerin interfacePortAndAssignment
-
getPort
public int getPort()
- Specified by:
getPortin interfacePortAndAssignment
-
getAssignment
public LocalAssignment getAssignment()
- Specified by:
getAssignmentin interfacePortAndAssignment
-
complete
public void complete()
- Specified by:
completein interfacePortAndAssignment
-
hashCode
public int hashCode()
All implementations of PortAndAssignment should implement the same hashCode() method.
-
-