public class GridDrUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Integer |
DR_GLOBAL_SYNC
Key used to store
GridDrPauseInfo in system cache. |
static int |
MAX_DATA_CENTERS
Maximum amount of data centers.
|
static byte[] |
PING_REQ_BYTES
Cached external ping request bytes.
|
static byte[] |
PING_RESP_BYTES
Cached external ping response bytes.
|
| Modifier and Type | Method and Description |
|---|---|
static GridTuple4<GridUuid,String,Integer,Integer> |
batchRequestHeader(byte[] data)
Get batch request header.
|
static byte[] |
marshal(GridDrExternalBatchRequest req)
Marshal batch request.
|
static byte[] |
marshal(GridDrExternalBatchResponse resp)
Marshal batch response.
|
static byte[] |
marshal(GridDrExternalHandshakeRequest req)
Marshal handshake request.
|
static byte[] |
marshal(GridDrExternalHandshakeResponse resp)
Marshal handshake response.
|
static <K,V> GridDrRawEntry<K,V> |
readDrEntry(DataInput in,
byte dataCenterId)
Read marshaled DR entry.
|
static Object |
unmarshal(byte[] data)
Unmarshal DR message.
|
static <K,V> void |
writeDrEntry(DataOutput out,
GridDrRawEntry<K,V> entry)
Write marshalled DR entry.
|
public static final Integer DR_GLOBAL_SYNC
GridDrPauseInfo in system cache.public static final int MAX_DATA_CENTERS
public static final byte[] PING_REQ_BYTES
public static final byte[] PING_RESP_BYTES
public static <K,V> GridDrRawEntry<K,V> readDrEntry(DataInput in, byte dataCenterId) throws IOException
in - Input.dataCenterId - Data center ID.IOException - If failed.public static <K,V> void writeDrEntry(DataOutput out, GridDrRawEntry<K,V> entry) throws IOException
out - Output.entry - Entry.IOException - If failed.public static byte[] marshal(GridDrExternalHandshakeRequest req) throws GridException
req - Handshake request.GridException - If failed.public static byte[] marshal(GridDrExternalHandshakeResponse resp) throws GridException
resp - Handshake response.GridException - If failed.public static byte[] marshal(GridDrExternalBatchRequest req) throws GridException
req - Batch request.GridException - If failed.public static byte[] marshal(GridDrExternalBatchResponse resp) throws GridException
resp - Batch response.GridException - If failed.public static Object unmarshal(byte[] data) throws GridException
data - Data bytes.GridException - If failed.public static GridTuple4<GridUuid,String,Integer,Integer> batchRequestHeader(byte[] data) throws GridException
data - Raw data bytes.GridException - If failed.Copyright © 2014. All rights reserved.