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
-
Constructor Summary
ConstructorDescriptionTimePortAndAssignment
(PortAndAssignment measured, com.codahale.metrics.Timer timer) -
Method Summary
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 Details
-
TimePortAndAssignment
-
-
Method Details
-
getToplogyId
- Specified by:
getToplogyId
in interfacePortAndAssignment
-
getOwner
- Specified by:
getOwner
in interfacePortAndAssignment
-
getPort
public int getPort()- Specified by:
getPort
in interfacePortAndAssignment
-
getAssignment
- Specified by:
getAssignment
in interfacePortAndAssignment
-
complete
public void complete()- Specified by:
complete
in interfacePortAndAssignment
-
toString
-
hashCode
public int hashCode()All implementations of PortAndAssignment should implement the same hashCode() method. -
equals
All implementations of PortAndAssignment should implement the same equals() method.
-