Uses of Class
org.jgroups.util.ByteArray
-
Packages that use ByteArray Package Description org.jgroups Provides top-level public JGroups classes such as Channel, Message, etc.org.jgroups.protocols Provides implementations of transport protocols which are responsible for sending and receiving messages to/from the network.org.jgroups.protocols.pbcast org.jgroups.tests org.jgroups.util Provides useful functionality which cannot be assigned to any particular other package. -
-
Uses of ByteArray in org.jgroups
Methods in org.jgroups with parameters of type ByteArray Modifier and Type Method Description BatchMessageBatchMessage. setArray(ByteArray buf)BytesMessageBytesMessage. setArray(ByteArray buf)Sets the arrayCompositeMessageCompositeMessage. setArray(ByteArray buf)EmptyMessageEmptyMessage. setArray(ByteArray buf)LongMessageLongMessage. setArray(ByteArray b)MessageMessage. setArray(ByteArray buf)Sets the byte array in a message.
Throws an exception if the message does not have a byte[] array payload (Message.hasArray()is false).
Note that this is a convenience method, as most messages are of typeBytesMessage.NioMessageNioMessage. setArray(ByteArray b)Sets the bufferObjectMessageObjectMessage. setArray(ByteArray buf)Constructors in org.jgroups with parameters of type ByteArray Constructor Description BytesMessage(Address dest, ByteArray array)RefcountedBytesMessage(Address dest, ByteArray array) -
Uses of ByteArray in org.jgroups.protocols
Methods in org.jgroups.protocols that return ByteArray Modifier and Type Method Description static ByteArrayDiscovery. marshal(PingData data)static ByteArrayFD_SOCK. marshal(LazyRemovalCache<Address,IpAddress> addrs)static ByteArrayMERGE3. marshal(View view)static ByteArrayFD_SOCK2. messageToBuffer(Message msg)protected static ByteArrayCOMPRESS. messageToByteArray(Message msg)protected static ByteArrayCOUNTER. requestToBuffer(COUNTER.Request req)protected static ByteArrayCOUNTER. responseToBuffer(COUNTER.Response<?> rsp)protected static ByteArrayASYM_ENCRYPT. serializeKeys(java.util.Map<Address,byte[]> keys)protected static ByteArrayCOUNTER. streamableToBuffer(byte req_or_rsp, byte type, Streamable obj)Methods in org.jgroups.protocols with parameters of type ByteArray Modifier and Type Method Description protected voidCOUNTER. send(Address dest, ByteArray buffer) -
Uses of ByteArray in org.jgroups.protocols.pbcast
Methods in org.jgroups.protocols.pbcast that return ByteArray Modifier and Type Method Description protected static ByteArrayFLUSH. marshal(java.util.Collection<? extends Address> participants, Digest digest)protected static ByteArrayGMS. marshal(java.util.Collection<? extends Address> mbrs)static ByteArrayGMS. marshal(JoinRsp join_rsp)protected static ByteArrayGMS. marshal(ViewId view_id)protected static ByteArrayGMS. marshal(View view, Digest digest)Methods in org.jgroups.protocols.pbcast with parameters of type ByteArray Modifier and Type Method Description protected voidGMS. sendJoinResponse(ByteArray marshalled_rsp, Address dest) -
Uses of ByteArray in org.jgroups.tests
Fields in org.jgroups.tests with type parameters of type ByteArray Modifier and Type Field Description protected java.util.function.Consumer<ByteArray>Probe.Requester. on_rspprotected java.util.function.Consumer<ByteArray>Probe.Requester. ON_RSPMethods in org.jgroups.tests that return ByteArray Modifier and Type Method Description protected abstract ByteArrayProbe.Requester. fetchResponse()protected ByteArrayProbe.TcpRequester. fetchResponse()protected ByteArrayProbe.UdpRequester. fetchResponse()protected ByteArrayUnicastTestTcpSlow.Sender. writeMessage(Message msg)Method parameters in org.jgroups.tests with type arguments of type ByteArray Modifier and Type Method Description protected <T extends Probe.Requester>
TProbe.Requester. setResponseHandler(java.util.function.Consumer<ByteArray> rh)Constructor parameters in org.jgroups.tests with type arguments of type ByteArray Constructor Description Requester(java.net.SocketAddress dest, java.lang.String request, java.lang.String passcode, java.util.function.Consumer<ByteArray> on_rsp)TcpRequester(java.net.SocketAddress dest, java.lang.String request, java.lang.String passcode, java.util.function.Consumer<ByteArray> on_rsp)UdpRequester(java.net.SocketAddress dest, java.lang.String request, java.lang.String passcode, java.util.function.Consumer<ByteArray> on_rsp) -
Uses of ByteArray in org.jgroups.util
Fields in org.jgroups.util declared as ByteArray Modifier and Type Field Description protected ByteArrayObjectWrapper. serializedMethods in org.jgroups.util that return ByteArray Modifier and Type Method Description ByteArrayByteArray. copy()static ByteArrayUtil. exceptionToBuffer(java.lang.Throwable t)ByteArrayByteArrayDataOutputStream. getBuffer()ByteArrayByteBufferOutputStream. getBufferAsBuffer()ByteArrayObjectWrapper. getSerialized()static ByteArrayUtil. messageToBuffer(Message msg)static ByteArrayUtil. messageToByteBuffer(Message msg)static ByteArrayUtil. objectToBuffer(java.lang.Object obj)Serializes/Streams an object into a byte buffer.static ByteArrayUtil. streamableToBuffer(Streamable obj)protected static ByteArrayUtil. writeSerializable(java.lang.Object obj)protected static ByteArrayUtil. writeStreamable(Streamable obj)Methods in org.jgroups.util with parameters of type ByteArray Modifier and Type Method Description static <T> TUtil. objectFromBuffer(ByteArray b, java.lang.ClassLoader loader)
-