org.eclipse.net4j
Class Net4jUtil

java.lang.Object
  extended by org.eclipse.net4j.Net4jUtil

public final class Net4jUtil
extends Object

A utility class with various static factory and convenience methods.


Field Summary
static short DEFAULT_BUFFER_CAPACITY
           
static String SCHEME_SEPARATOR
           
 
Method Summary
static ITransportConfig copyTransportConfig(ILifecycle lifecycle, ITransportConfig source)
           
static IBufferProvider createBufferFactory()
           
static IBufferProvider createBufferFactory(short bufferCapacity)
           
static IBufferPool createBufferPool()
           
static IBufferPool createBufferPool(IBufferProvider factory)
           
static IBufferPool createBufferPool(short bufferCapacity)
           
static IAcceptor getAcceptor(IManagedContainer container, String type, String description)
           
static IBufferProvider getBufferProvider(IManagedContainer container)
           
static IConnector getConnector(IManagedContainer container, String description)
           
static IConnector getConnector(IManagedContainer container, String type, String description)
           
static IConnector getConnector(IManagedContainer container, String type, String description, long timeout)
           
static ExecutorService getExecutorService(IManagedContainer container)
           
static int getPooledBuffers(IBufferPool bufferPool)
           
static String getProtocolID(IProtocol<?> protocol)
           
static int getProtocolVersion(IProtocol<?> protocol)
           
static long getProvidedBuffers(IBufferProvider bufferProvider)
           
static long getRetainedBuffers(IBufferProvider bufferProvider)
           
static void prepareContainer(IManagedContainer container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME_SEPARATOR

public static final String SCHEME_SEPARATOR
See Also:
Constant Field Values

DEFAULT_BUFFER_CAPACITY

public static final short DEFAULT_BUFFER_CAPACITY
See Also:
Constant Field Values
Method Detail

prepareContainer

public static void prepareContainer(IManagedContainer container)

getExecutorService

public static ExecutorService getExecutorService(IManagedContainer container)

getBufferProvider

public static IBufferProvider getBufferProvider(IManagedContainer container)

getAcceptor

public static IAcceptor getAcceptor(IManagedContainer container,
                                    String type,
                                    String description)

getConnector

public static IConnector getConnector(IManagedContainer container,
                                      String type,
                                      String description,
                                      long timeout)
Since:
4.0

getConnector

public static IConnector getConnector(IManagedContainer container,
                                      String type,
                                      String description)

getConnector

public static IConnector getConnector(IManagedContainer container,
                                      String description)

createBufferFactory

public static IBufferProvider createBufferFactory(short bufferCapacity)

createBufferFactory

public static IBufferProvider createBufferFactory()

createBufferPool

public static IBufferPool createBufferPool(IBufferProvider factory)

createBufferPool

public static IBufferPool createBufferPool(short bufferCapacity)

createBufferPool

public static IBufferPool createBufferPool()

getProvidedBuffers

public static long getProvidedBuffers(IBufferProvider bufferProvider)

getRetainedBuffers

public static long getRetainedBuffers(IBufferProvider bufferProvider)

getPooledBuffers

public static int getPooledBuffers(IBufferPool bufferPool)

copyTransportConfig

public static ITransportConfig copyTransportConfig(ILifecycle lifecycle,
                                                   ITransportConfig source)
Since:
2.0

getProtocolID

public static String getProtocolID(IProtocol<?> protocol)
Since:
4.2

getProtocolVersion

public static int getProtocolVersion(IProtocol<?> protocol)
Since:
4.2


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.