org.shiftone.jrat.api
Class Monitor

java.lang.Object
  extended by org.shiftone.jrat.api.Monitor

public class Monitor
extends java.lang.Object

Author:
jeff@shiftone.org (Jeff Drost)

Constructor Summary
Monitor(java.lang.Class klass, java.lang.String methodName)
           
Monitor(java.lang.Class klass, java.lang.String methodName, java.lang.String signature)
           
Monitor(MethodHandler handler)
           
Monitor(java.lang.String className, java.lang.String methodName, java.lang.String signature)
           
 
Method Summary
 java.lang.Object execute(Command command)
           
static java.lang.Object execute(MethodHandler handler, java.lang.Object instance, Command command)
           
static java.lang.Object execute(java.lang.reflect.Method method, java.lang.Object instance, Command command)
           
 java.lang.Object execute(java.lang.Object instance, Command command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Monitor

public Monitor(MethodHandler handler)

Monitor

public Monitor(java.lang.String className,
               java.lang.String methodName,
               java.lang.String signature)

Monitor

public Monitor(java.lang.Class klass,
               java.lang.String methodName,
               java.lang.String signature)

Monitor

public Monitor(java.lang.Class klass,
               java.lang.String methodName)
Method Detail

execute

public java.lang.Object execute(java.lang.Object instance,
                                Command command)
                         throws java.lang.Throwable
Throws:
java.lang.Throwable

execute

public java.lang.Object execute(Command command)

execute

public static java.lang.Object execute(java.lang.reflect.Method method,
                                       java.lang.Object instance,
                                       Command command)
                                throws java.lang.Throwable
Throws:
java.lang.Throwable

execute

public static java.lang.Object execute(MethodHandler handler,
                                       java.lang.Object instance,
                                       Command command)
                                throws java.lang.Throwable
Throws:
java.lang.Throwable