Class SocketOutputStreamPoolFactory
java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.BaseKeyedPooledObjectFactory<SocketConnectionInfos,SocketOutputStream>
org.apache.jmeter.visualizers.backend.graphite.SocketOutputStreamPoolFactory
- All Implemented Interfaces:
org.apache.commons.pool2.KeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream>
public class SocketOutputStreamPoolFactory
extends org.apache.commons.pool2.BaseKeyedPooledObjectFactory<SocketConnectionInfos,SocketOutputStream>
implements org.apache.commons.pool2.KeyedPooledObjectFactory<SocketConnectionInfos,SocketOutputStream>
Pool Factory of
SocketOutputStream
- Since:
- 2.13
-
Constructor Summary
ConstructorDescriptionSocketOutputStreamPoolFactory
(int socketConnectTimeoutInMillis, int socketTimeoutInMillis) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(SocketConnectionInfos connectionInfos) void
destroyObject
(SocketConnectionInfos socketConnectionInfos, org.apache.commons.pool2.PooledObject<SocketOutputStream> socketOutputStream) org.apache.commons.pool2.PooledObject<SocketOutputStream>
makeObject
(SocketConnectionInfos connectionInfos) boolean
validateObject
(SocketConnectionInfos hostAndPort, org.apache.commons.pool2.PooledObject<SocketOutputStream> socketOutputStream) org.apache.commons.pool2.PooledObject<SocketOutputStream>
wrap
(SocketOutputStream outputStream) Methods inherited from class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
activateObject, passivateObject
Methods inherited from class org.apache.commons.pool2.BaseObject
toString, toStringAppendFields
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.commons.pool2.KeyedPooledObjectFactory
activateObject, destroyObject, passivateObject
-
Constructor Details
-
SocketOutputStreamPoolFactory
public SocketOutputStreamPoolFactory(int socketConnectTimeoutInMillis, int socketTimeoutInMillis)
-
-
Method Details
-
makeObject
public org.apache.commons.pool2.PooledObject<SocketOutputStream> makeObject(SocketConnectionInfos connectionInfos) throws Exception - Specified by:
makeObject
in interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream> - Overrides:
makeObject
in classorg.apache.commons.pool2.BaseKeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream> - Throws:
Exception
-
destroyObject
public void destroyObject(SocketConnectionInfos socketConnectionInfos, org.apache.commons.pool2.PooledObject<SocketOutputStream> socketOutputStream) throws Exception - Specified by:
destroyObject
in interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream> - Overrides:
destroyObject
in classorg.apache.commons.pool2.BaseKeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream> - Throws:
Exception
-
validateObject
public boolean validateObject(SocketConnectionInfos hostAndPort, org.apache.commons.pool2.PooledObject<SocketOutputStream> socketOutputStream) - Specified by:
validateObject
in interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream> - Overrides:
validateObject
in classorg.apache.commons.pool2.BaseKeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream>
-
create
- Specified by:
create
in classorg.apache.commons.pool2.BaseKeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream> - Throws:
Exception
-
wrap
public org.apache.commons.pool2.PooledObject<SocketOutputStream> wrap(SocketOutputStream outputStream) - Specified by:
wrap
in classorg.apache.commons.pool2.BaseKeyedPooledObjectFactory<SocketConnectionInfos,
SocketOutputStream>
-