org.multiverse.javaagent
Class JavaAgentProblemMonitor

java.lang.Object
  extended by org.multiverse.javaagent.JavaAgentProblemMonitor

public final class JavaAgentProblemMonitor
extends java.lang.Object

Since it is not possible to disrupt the instrumentation process executed by the JavaAgent, if problems are encountered, some kind of warning mechanism needs to be created. That is the task of this JavaAgentProblemMonitor.

What is does is it launches a thread that prints warning messages every X second to the InstrumenterLogger. severe when the first problem is signalled.

Class is threadsafe to call.

Author:
Peter Veentjer

Field Summary
static JavaAgentProblemMonitor INSTANCE
           
 
Method Summary
 boolean isProblemFound()
           
 void signalProblem(java.lang.String classname)
          Signals that a problem has happened while instrumenting some class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final JavaAgentProblemMonitor INSTANCE
Method Detail

isProblemFound

public boolean isProblemFound()

signalProblem

public void signalProblem(java.lang.String classname)
Signals that a problem has happened while instrumenting some class.

Parameters:
classname - the class where the problem happened.
Throws:
java.lang.NullPointerException - if classname is null.


Copyright © 2008-2010 Multiverse. All Rights Reserved.