com.ca.commons.jndi.beans
Class FailureSimulateDirContextFactory

java.lang.Object
  extended by com.ca.commons.jndi.beans.ResilientDirContextFactory
      extended by com.ca.commons.jndi.beans.FailureSimulateDirContextFactory
All Implemented Interfaces:
DirContextFactory, InvocationHandler, Runnable

public final class FailureSimulateDirContextFactory
extends ResilientDirContextFactory
implements Runnable


Field Summary
 
Fields inherited from class com.ca.commons.jndi.beans.ResilientDirContextFactory
defaultPort, delay, jndiEnv, LOGGER, realCtx
 
Constructor Summary
FailureSimulateDirContextFactory()
           
 
Method Summary
protected  Object doInvoke(Method method, Object[] args)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 void run()
           
 
Methods inherited from class com.ca.commons.jndi.beans.ResilientDirContextFactory
close, getContext, getFailoverList, getJNDIEnv, getRetries, getRetryDelay, returnContext, setFailoverList, setJNDIEnv, setRetries, setRetryDelay, testContexts, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FailureSimulateDirContextFactory

public FailureSimulateDirContextFactory()
Method Detail

doInvoke

protected Object doInvoke(Method method,
                          Object[] args)
                   throws IllegalAccessException,
                          InterruptedException,
                          NamingException,
                          InvocationTargetException
Overrides:
doInvoke in class ResilientDirContextFactory
Throws:
IllegalAccessException
InterruptedException
NamingException
InvocationTargetException

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Overrides:
invoke in class ResilientDirContextFactory
Throws:
Throwable

run

public void run()
Specified by:
run in interface Runnable


Created 2011-07-14 13:27 EST