org.apache.tuscany.sca.monitor.impl
Class DefaultMonitorImpl

java.lang.Object
  extended by org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl
All Implemented Interfaces:
Monitor

public class DefaultMonitorImpl
extends java.lang.Object
implements Monitor

A monitor for the watching for validation problems


Constructor Summary
DefaultMonitorImpl()
           
 
Method Summary
 Problem getLastLoggedProblem()
           
 Problem getProblem(java.lang.String messageId)
           
 java.util.List<Problem> getProblems()
          Returns a list of reported problems.
 boolean isMessageLogged(java.lang.String messageId)
           
 void problem(Problem problem)
          Reports a build problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMonitorImpl

public DefaultMonitorImpl()
Method Detail

problem

public void problem(Problem problem)
Description copied from interface: Monitor
Reports a build problem.

Specified by:
problem in interface Monitor

getProblems

public java.util.List<Problem> getProblems()
Description copied from interface: Monitor
Returns a list of reported problems.

Specified by:
getProblems in interface Monitor
Returns:
the list of problems. The list may be empty

getLastLoggedProblem

public Problem getLastLoggedProblem()

isMessageLogged

public boolean isMessageLogged(java.lang.String messageId)

getProblem

public Problem getProblem(java.lang.String messageId)