org.smallmind.cloud.namespace.java.pool
Class JavaContextConnectionInstance

java.lang.Object
  extended by org.smallmind.cloud.namespace.java.pool.JavaContextConnectionInstance
All Implemented Interfaces:
EventListener, JavaContextListener, Existential, ConnectionInstance<PooledJavaContext>

public class JavaContextConnectionInstance
extends Object
implements ConnectionInstance<PooledJavaContext>, JavaContextListener


Constructor Summary
JavaContextConnectionInstance(ConnectionPool<PooledJavaContext> connectionPool, PooledJavaContext pooledJavaContext)
           
 
Method Summary
 void close()
           
 void contextAborted(JavaContextEvent javaContextEvent)
           
 void contextClosed(JavaContextEvent javaContextEvent)
           
 StackTraceElement[] getExistentialStackTrace()
           
 PooledJavaContext serve()
           
 boolean validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaContextConnectionInstance

public JavaContextConnectionInstance(ConnectionPool<PooledJavaContext> connectionPool,
                                     PooledJavaContext pooledJavaContext)
                              throws NamingException
Throws:
NamingException
Method Detail

getExistentialStackTrace

public StackTraceElement[] getExistentialStackTrace()
Specified by:
getExistentialStackTrace in interface Existential

validate

public boolean validate()
Specified by:
validate in interface ConnectionInstance<PooledJavaContext>

contextClosed

public void contextClosed(JavaContextEvent javaContextEvent)
Specified by:
contextClosed in interface JavaContextListener

contextAborted

public void contextAborted(JavaContextEvent javaContextEvent)
Specified by:
contextAborted in interface JavaContextListener

serve

public PooledJavaContext serve()
                        throws Exception
Specified by:
serve in interface ConnectionInstance<PooledJavaContext>
Throws:
Exception

close

public void close()
           throws Exception
Specified by:
close in interface ConnectionInstance<PooledJavaContext>
Throws:
Exception


Copyright © 2011. All Rights Reserved.