private boolean transmit(Address target, Packet packet) { ConnectionManager connectionManager = node.getConnectionManager(); return connectionManager.transmit(packet, target); }
private boolean transmit(Address target, Packet packet) { ConnectionManager connectionManager = node.getConnectionManager(); return connectionManager.transmit(packet, target); }
private void sendOpControlPacket(Address address, OperationControl opControl) { heartbeatPacketsSend.inc(); if (address.equals(thisAddress)) { scheduler.execute(new ProcessOperationControlTask(opControl)); } else { Packet packet = new Packet(serializationService.toBytes(opControl)) .setPacketType(Packet.Type.OPERATION) .raiseFlags(FLAG_OP_CONTROL | FLAG_URGENT); nodeEngine.getNode().getConnectionManager().transmit(packet, address); } } }
private void sendOpControlPacket(Address address, OperationControl opControl) { heartbeatPacketsSend.inc(); if (address.equals(thisAddress)) { scheduler.execute(new ProcessOperationControlTask(opControl)); } else { Packet packet = new Packet(serializationService.toBytes(opControl)) .setPacketType(Packet.Type.OPERATION) .raiseFlags(FLAG_OP_CONTROL | FLAG_URGENT); nodeEngine.getNode().getConnectionManager().transmit(packet, address); } } }
public boolean send(Operation op, Connection connection) { byte[] bytes = serializationService.toBytes(op); int partitionId = op.getPartitionId(); Packet packet = new Packet(bytes, partitionId).setPacketType(Packet.Type.OPERATION); if (op.isUrgent()) { packet.raiseFlags(FLAG_URGENT); } return node.getConnectionManager().transmit(packet, connection); } }
public boolean send(Operation op, Connection connection) { byte[] bytes = serializationService.toBytes(op); int partitionId = op.getPartitionId(); Packet packet = new Packet(bytes, partitionId).setPacketType(Packet.Type.OPERATION); if (op.isUrgent()) { packet.raiseFlags(FLAG_URGENT); } return node.getConnectionManager().transmit(packet, connection); } }
.setPacketType(Packet.Type.EVENT); if (!nodeEngine.getNode().getConnectionManager().transmit(packet, subscriber)) { if (nodeEngine.isRunning()) { logFailure("Failed to send event packet to: %s, connection might not be alive.", subscriber);
.setPacketType(Packet.Type.EVENT); if (!nodeEngine.getNode().getConnectionManager().transmit(packet, subscriber)) { if (nodeEngine.isRunning()) { logFailure("Failed to send event packet to: %s, connection might not be alive.", subscriber);