Package | Description |
---|---|
org.jgroups |
Provides top-level public JGroups classes such as Channel, Message, etc.
|
org.jgroups.blocks.cs |
This package contains all client-server related interfaces and classes
|
org.jgroups.protocols |
Provides implementations of transport protocols which are
responsible for sending and receiving messages to/from the network.
|
org.jgroups.stack |
Support for managing protocol stacks.
|
org.jgroups.util |
Provides useful functionality which cannot be assigned to any particular other package.
|
Modifier and Type | Method and Description |
---|---|
SocketFactory |
Channel.getSocketFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
Channel.setSocketFactory(SocketFactory factory)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected SocketFactory |
BaseServer.socket_factory |
Modifier and Type | Method and Description |
---|---|
SocketFactory |
BaseServer.socketFactory() |
Modifier and Type | Method and Description |
---|---|
BaseServer |
BaseServer.socketFactory(SocketFactory factory) |
Constructor and Description |
---|
BaseServer(ThreadFactory f,
SocketFactory sf) |
NioBaseServer(ThreadFactory f,
SocketFactory sf) |
NioClient(ThreadFactory thread_factory,
SocketFactory sf) |
NioServer(ThreadFactory f,
SocketFactory sf) |
NioServer(ThreadFactory thread_factory,
SocketFactory socket_factory,
InetAddress bind_addr,
int srv_port,
int end_port,
InetAddress external_addr,
int external_port)
Creates an instance of
NioServer that opens a server channel and listens for connections. |
TcpBaseServer(ThreadFactory f,
SocketFactory sf) |
TcpClient(ThreadFactory thread_factory,
SocketFactory socket_factory) |
TcpServer(ThreadFactory thread_factory,
SocketFactory socket_factory) |
TcpServer(ThreadFactory thread_factory,
SocketFactory socket_factory,
InetAddress bind_addr,
int srv_port,
int end_port,
InetAddress external_addr,
int external_port)
Creates an instance of
TcpServer that creates a server socket and listens for connections
Needs to be started next. |
Modifier and Type | Field and Description |
---|---|
protected SocketFactory |
TP.socket_factory |
Modifier and Type | Method and Description |
---|---|
SocketFactory |
TP.getSocketFactory() |
Modifier and Type | Method and Description |
---|---|
void |
TCP.setSocketFactory(SocketFactory factory) |
void |
TP.setSocketFactory(SocketFactory factory) |
Modifier and Type | Field and Description |
---|---|
protected SocketFactory |
DiagnosticsHandler.socket_factory |
protected SocketFactory |
GossipRouter.socket_factory |
Modifier and Type | Method and Description |
---|---|
SocketFactory |
Protocol.getSocketFactory()
Returns the SocketFactory associated with this protocol, if overridden in a subclass, or passes the call down
|
SocketFactory |
GossipRouter.socketFactory() |
Modifier and Type | Method and Description |
---|---|
void |
Protocol.setSocketFactory(SocketFactory factory)
Sets a SocketFactory.
|
GossipRouter |
GossipRouter.socketFactory(SocketFactory sf) |
Constructor and Description |
---|
DiagnosticsHandler(InetAddress diagnostics_addr,
int diagnostics_port,
List<NetworkInterface> bind_interfaces,
int diagnostics_ttl,
Log log,
SocketFactory socket_factory,
ThreadFactory thread_factory,
String passcode) |
DiagnosticsHandler(InetAddress diagnostics_addr,
int diagnostics_port,
Log log,
SocketFactory socket_factory,
ThreadFactory thread_factory) |
DiagnosticsHandler(InetAddress diagnostics_addr,
int diagnostics_port,
Log log,
SocketFactory socket_factory,
ThreadFactory thread_factory,
String passcode) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSocketFactory
Default implementation, ignores service names
|
Modifier and Type | Method and Description |
---|---|
static DatagramSocket |
Util.createDatagramSocket(SocketFactory factory,
String service_name,
InetAddress addr,
int port)
Creates a DatagramSocket bound to addr.
|
static MulticastSocket |
Util.createMulticastSocket(SocketFactory factory,
String service_name,
InetAddress mcast_addr,
int port,
Log log) |
static ServerSocket |
Util.createServerSocket(SocketFactory factory,
String service_name,
InetAddress bind_addr,
int start_port) |
static ServerSocket |
Util.createServerSocket(SocketFactory factory,
String service_name,
InetAddress bind_addr,
int start_port,
int end_port) |
static ServerSocket |
Util.createServerSocketAndBind(SocketFactory factory,
String service_name,
InetAddress bind_addr,
int start_port,
int end_port)
Finds first available port starting at start_port and returns server
socket.
|
static ServerSocketChannel |
Util.createServerSocketChannel(SocketFactory factory,
String service_name,
InetAddress bind_addr,
int start_port,
int end_port) |
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.