|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.servicemix.ftp.SocketClientPoolSupport
public abstract class SocketClientPoolSupport
A pool of SocketClient instances from the
Jakarta Commons Net library to handle
internet networking connections.
| Constructor Summary | |
|---|---|
SocketClientPoolSupport()
|
|
| Method Summary | |
|---|---|
void |
activateObject(java.lang.Object object)
|
void |
afterPropertiesSet()
|
org.apache.commons.net.SocketClient |
borrowClient()
|
protected void |
connect(org.apache.commons.net.SocketClient client)
|
protected abstract org.apache.commons.net.SocketClient |
createSocketClient()
|
void |
destroy()
|
void |
destroyObject(java.lang.Object object)
|
protected void |
disconnect(org.apache.commons.net.SocketClient client)
|
java.net.InetAddress |
getAddress()
|
java.lang.String |
getHost()
|
java.net.InetAddress |
getLocalAddress()
|
int |
getLocalPort()
|
org.apache.commons.pool.ObjectPool |
getPool()
|
int |
getPort()
|
java.lang.Object |
makeObject()
|
void |
passivateObject(java.lang.Object object)
|
void |
returnClient(org.apache.commons.net.SocketClient client)
|
void |
setAddress(java.net.InetAddress address)
Set the remote internet address to connect to. |
void |
setHost(java.lang.String host)
Set the remote host name to connect to. |
void |
setLocalAddress(java.net.InetAddress localAddress)
Set the local IP address to be used when establishing the connection. |
void |
setLocalPort(int localPort)
Set the local TCP/IP port to be used when establishing the connection. |
void |
setPool(org.apache.commons.pool.ObjectPool pool)
Set a custom ObjectPool instance to use for the connection pooling. |
void |
setPort(int port)
Set the remote port number to connect to. |
boolean |
validateObject(java.lang.Object object)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketClientPoolSupport()
| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exception
public org.apache.commons.net.SocketClient borrowClient()
throws java.lang.Exception
java.lang.Exception
public void returnClient(org.apache.commons.net.SocketClient client)
throws java.lang.Exception
java.lang.Exception
public java.lang.Object makeObject()
throws java.lang.Exception
makeObject in interface org.apache.commons.pool.PoolableObjectFactoryjava.lang.Exception
public void destroyObject(java.lang.Object object)
throws java.lang.Exception
destroyObject in interface org.apache.commons.pool.PoolableObjectFactoryjava.lang.Exceptionpublic boolean validateObject(java.lang.Object object)
validateObject in interface org.apache.commons.pool.PoolableObjectFactory
public void activateObject(java.lang.Object object)
throws java.lang.Exception
activateObject in interface org.apache.commons.pool.PoolableObjectFactoryjava.lang.Exception
public void passivateObject(java.lang.Object object)
throws java.lang.Exception
passivateObject in interface org.apache.commons.pool.PoolableObjectFactoryjava.lang.Exceptionpublic java.net.InetAddress getAddress()
public void setAddress(java.net.InetAddress address)
address - public java.lang.String getHost()
public void setHost(java.lang.String host)
host - public java.net.InetAddress getLocalAddress()
public void setLocalAddress(java.net.InetAddress localAddress)
localAddress - public int getLocalPort()
public void setLocalPort(int localPort)
localPort - public int getPort()
public void setPort(int port)
port - public org.apache.commons.pool.ObjectPool getPool()
public void setPool(org.apache.commons.pool.ObjectPool pool)
pool -
protected void connect(org.apache.commons.net.SocketClient client)
throws java.io.IOException,
javax.jbi.JBIException,
java.lang.Exception
java.io.IOException
javax.jbi.JBIException
java.lang.Exception
protected void disconnect(org.apache.commons.net.SocketClient client)
throws java.lang.Exception
java.lang.Exceptionprotected abstract org.apache.commons.net.SocketClient createSocketClient()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||