org.sonar.core.batch.monitoring
Class Monitored
java.lang.Object
org.sonar.core.batch.monitoring.Monitored
public class Monitored
- extends java.lang.Object
Field Summary |
protected long |
duration
|
protected java.lang.String |
name
|
protected long |
time
|
Constructor Summary |
Monitored(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
name
protected final java.lang.String name
time
protected long time
duration
protected long duration
Monitored
public Monitored(java.lang.String name)
notifyScheduled
public void notifyScheduled()
notifyStarted
public void notifyStarted()
notifyFinished
public void notifyFinished()
notifyProcessing
public void notifyProcessing(java.lang.String taskName)
notifyAborted
public void notifyAborted(java.lang.String taskName,
java.lang.Object cause)
notifyProcessed
public void notifyProcessed(java.lang.String taskName)
getMonitoredTasks
public java.util.Collection<MonitoredTask> getMonitoredTasks()
isRunning
public boolean isRunning()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getName
public java.lang.String getName()
getTime
public long getTime()
getDuration
public long getDuration()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2008 SonarSource SA. All Rights Reserved.