@Deprecated public class RoutedTransport extends BaseTransport
Modifier and Type | Class and Description |
---|---|
static class |
RoutedTransport.RemoteConnection
Deprecated.
|
Transport.ThreadingModel
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Long,RoutedTransport.RemoteConnection> |
clients
Deprecated.
|
protected ClientRouter |
router
Deprecated.
|
protected java.util.List<RoutedTransport.RemoteConnection> |
shards
Deprecated.
|
aeron, clipboard, completed, context, driver, feedbackIdler, frameCount, idler, ip, messageHandlerForClients, messageHandlerForShards, messages, nodeRole, originatorId, port, publicationForClients, publicationForShards, runner, shardIndex, subscriptionForClients, subscriptionForShards, targetIndex, threadA, threadB, threadingModel, unicastChannelUri, voidConfiguration
Constructor and Description |
---|
RoutedTransport()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addClient(java.lang.String ip,
int port)
Deprecated.
|
void |
addShard(java.lang.String ip,
int port)
Deprecated.
|
void |
init(VoidConfiguration voidConfiguration,
Clipboard clipboard,
NodeRole role,
java.lang.String localIp,
int localPort,
short shardIndex)
Deprecated.
This method does initialization of Transport instance
|
protected void |
jointMessageHandler(org.agrona.DirectBuffer buffer,
int offset,
int length,
io.aeron.logbuffer.Header header)
Deprecated.
This message handler is responsible for receiving messages on any side of p2p network
|
void |
launch(Transport.ThreadingModel threading)
Deprecated.
This method starts transport mechanisms.
|
int |
numberOfKnownClients()
Deprecated.
This method returns number of known Clients
|
int |
numberOfKnownShards()
Deprecated.
This method returns number of known Shards
|
protected void |
sendCommandToShard(VoidMessage message)
Deprecated.
This command is possible to issue only from Client
|
protected void |
sendCoordinationCommand(VoidMessage message)
Deprecated.
This method implements Shard -> Shards comms
|
protected void |
sendFeedbackToClient(VoidMessage message)
Deprecated.
This method implements Shard -> Client comms
|
void |
sendMessageToAllClients(VoidMessage message,
java.lang.Long... exclusions)
Deprecated.
|
void |
shutdown()
Deprecated.
This method stops transport system.
|
protected void |
shutdownSilent()
Deprecated.
|
clientMessageHandler, getIp, getOwnOriginatorId, getPort, internalMessageHandler, peekMessage, putMessage, receiveMessage, sendMessage, sendMessageAndGetResponse, sendMessageToAllShards, setIpAndPort, shardMessageHandler, takeMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getShardIndex, getTargetIndex
protected java.util.List<RoutedTransport.RemoteConnection> shards
protected java.util.Map<java.lang.Long,RoutedTransport.RemoteConnection> clients
protected ClientRouter router
public void init(@NonNull VoidConfiguration voidConfiguration, @NonNull Clipboard clipboard, @NonNull NodeRole role, @NonNull java.lang.String localIp, int localPort, short shardIndex)
BaseTransport
init
in interface Transport
init
in class BaseTransport
public void sendMessageToAllClients(VoidMessage message, java.lang.Long... exclusions)
sendMessageToAllClients
in interface Transport
sendMessageToAllClients
in class BaseTransport
protected void sendCoordinationCommand(VoidMessage message)
sendCoordinationCommand
in class BaseTransport
message
- protected void sendFeedbackToClient(VoidMessage message)
sendFeedbackToClient
in class BaseTransport
message
- public int numberOfKnownClients()
Transport
numberOfKnownClients
in interface Transport
numberOfKnownClients
in class BaseTransport
public int numberOfKnownShards()
Transport
numberOfKnownShards
in interface Transport
numberOfKnownShards
in class BaseTransport
protected void shutdownSilent()
shutdownSilent
in class BaseTransport
public void shutdown()
BaseTransport
shutdown
in interface Transport
shutdown
in class BaseTransport
protected void sendCommandToShard(VoidMessage message)
BaseTransport
sendCommandToShard
in class BaseTransport
protected void jointMessageHandler(org.agrona.DirectBuffer buffer, int offset, int length, io.aeron.logbuffer.Header header)
buffer
- offset
- length
- header
- public void launch(@NonNull Transport.ThreadingModel threading)
BaseTransport
launch
in interface Transport
launch
in class BaseTransport
public void addShard(java.lang.String ip, int port)
addShard
in interface Transport
addShard
in class BaseTransport
public void addClient(java.lang.String ip, int port)
addClient
in interface Transport
addClient
in class BaseTransport
Copyright © 2019. All rights reserved.