org.sonar.core.batch.monitoring
Class Monitored

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 long getDuration()
           
 java.util.Collection<MonitoredTask> getMonitoredTasks()
           
 java.lang.String getName()
           
 long getTime()
           
 int hashCode()
           
 boolean isRunning()
           
 void notifyAborted(java.lang.String taskName, java.lang.Object cause)
           
 void notifyFinished()
           
 void notifyProcessed(java.lang.String taskName)
           
 void notifyProcessing(java.lang.String taskName)
           
 void notifyScheduled()
           
 void notifyStarted()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final java.lang.String name

time

protected long time

duration

protected long duration
Constructor Detail

Monitored

public Monitored(java.lang.String name)
Method Detail

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.