public static int CalculateDataSize(string name, bool includeValue, int listenerFlags, bool localOnly) { int dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.BooleanSizeInBytes; dataSize += Bits.IntSizeInBytes; dataSize += Bits.BooleanSizeInBytes; return(dataSize); }
public static int CalculateDataSize(string name, long leaseTime, long threadId, long referenceId) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.LongSizeInBytes; dataSize += Bits.LongSizeInBytes; dataSize += Bits.LongSizeInBytes; return(dataSize); }
public static int CalculateDataSize(string name, IData entryProcessor, IData key, long threadId) { int dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(entryProcessor); dataSize += ParameterUtil.CalculateDataSize(key); dataSize += Bits.LongSizeInBytes; return(dataSize); }
private static int CalculateRequestDataSize(string name, IData key, IData predicate, bool localOnly) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(key); dataSize += ParameterUtil.CalculateDataSize(predicate); dataSize += Bits.BooleanSizeInBytes; return(dataSize); }
public static int CalculateDataSize(string name, IData key, bool includeValue, bool localOnly) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(key); dataSize += Bits.BooleanSizeInBytes; dataSize += Bits.BooleanSizeInBytes; return(dataSize); }
private static int CalculateRequestDataSize(string name, string txnId, long threadId, long timeout) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(txnId); dataSize += Bits.LongSizeInBytes; dataSize += Bits.LongSizeInBytes; return(dataSize); }
public static int CalculateDataSize(string name, IData key, long threadId, long ttl) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(key); dataSize += Bits.LongSizeInBytes; dataSize += Bits.LongSizeInBytes; return(dataSize); }
private static int CalculateRequestDataSize(string name, IData key, IData value, long threadId) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(key); dataSize += ParameterUtil.CalculateDataSize(value); dataSize += Bits.LongSizeInBytes; return(dataSize); }
public static int CalculateDataSize(string name, string txnId, long threadId, IData item) { int dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(txnId); dataSize += Bits.LongSizeInBytes; dataSize += ParameterUtil.CalculateDataSize(item); return(dataSize); }
private static int CalculateRequestDataSize(string name, ArrayList keys) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.IntSizeInBytes; for (int i = 0; i < keys.Count; i++) { dataSize += ParameterUtil.CalculateDataSize((IData)keys[i]); } return(dataSize); }
public static int CalculateDataSize(string name, string txnId, long threadId, IData key, IData oldValue, IData newValue) { int dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(txnId); dataSize += Bits.LongSizeInBytes; dataSize += ParameterUtil.CalculateDataSize(key); dataSize += ParameterUtil.CalculateDataSize(oldValue); dataSize += ParameterUtil.CalculateDataSize(newValue); return(dataSize); }
private static int CalculateRequestDataSize(string name, IData predicate, bool includeValue, int listenerFlags, bool localOnly) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(predicate); dataSize += Bits.BooleanSizeInBytes; dataSize += Bits.IntSizeInBytes; dataSize += Bits.BooleanSizeInBytes; return(dataSize); }
private static int CalculateRequestDataSize(string name, ArrayList entries) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.IntSizeInBytes; foreach (var entriesItem in entries) { dataSize += ParameterUtil.CalculateDataSize((IData)entriesItem); } return(dataSize); }
public static int CalculateDataSize(string name, IList <IData> values) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.IntSizeInBytes; foreach (var valuesItem in values) { dataSize += ParameterUtil.CalculateDataSize(valuesItem); } return(dataSize); }
private static int CalculateRequestDataSize(IList <string> names, Address address) { var dataSize = ClientMessage.HeaderSize; dataSize += Bits.IntSizeInBytes; foreach (var namesItem in names) { dataSize += ParameterUtil.CalculateDataSize(namesItem); } dataSize += AddressCodec.CalculateDataSize(address); return(dataSize); }
private static int CalculateRequestDataSize(string name, IList <IData> items) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.IntSizeInBytes; foreach (var itemsItem in items) { dataSize += ParameterUtil.CalculateDataSize(itemsItem); } return(dataSize); }
public static int CalculateDataSize(string name, ISet <IData> dataList) { int dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.IntSizeInBytes; foreach (var dataList_item in dataList) { dataSize += ParameterUtil.CalculateDataSize(dataList_item); } return(dataSize); }
public static int CalculateDataSize(string name, IData entryProcessor, IList <IData> keys) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += ParameterUtil.CalculateDataSize(entryProcessor); dataSize += Bits.IntSizeInBytes; foreach (var keysItem in keys) { dataSize += ParameterUtil.CalculateDataSize(keysItem); } return(dataSize); }
private static int CalculateRequestDataSize(string name, IList <IData> valueList, int overflowPolicy) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.IntSizeInBytes; foreach (var valueListItem in valueList) { dataSize += ParameterUtil.CalculateDataSize(valueListItem); } dataSize += Bits.IntSizeInBytes; return(dataSize); }
public static int CalculateDataSize(string name, IDictionary <IData, IData> entries) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); foreach (var entry in entries) { var key = entry.Key; var val = entry.Value; dataSize += ParameterUtil.CalculateDataSize(key); dataSize += ParameterUtil.CalculateDataSize(val); } return(dataSize); }
private static int CalculateRequestDataSize(string name, long startSequence, int minCount, int maxCount, IData filter) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.LongSizeInBytes; dataSize += Bits.IntSizeInBytes; dataSize += Bits.IntSizeInBytes; dataSize += Bits.BooleanSizeInBytes; if (filter != null) { dataSize += ParameterUtil.CalculateDataSize(filter); } return(dataSize); }
private static int CalculateRequestDataSize(string name, IList <KeyValuePair <IData, IData> > entries) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.IntSizeInBytes; foreach (var entriesItem in entries) { var entriesItemKey = entriesItem.Key; var entriesItemVal = entriesItem.Value; dataSize += ParameterUtil.CalculateDataSize(entriesItemKey); dataSize += ParameterUtil.CalculateDataSize(entriesItemVal); } return(dataSize); }
public static int CalculateDataSize(StackTraceElement stackTraceElement) { var dataSize = Bits.IntSizeInBytes; dataSize += ParameterUtil.CalculateDataSize(stackTraceElement.ClassName); dataSize += ParameterUtil.CalculateDataSize(stackTraceElement.MethodName); dataSize += Bits.BooleanSizeInBytes; string fileName = stackTraceElement.FileName; var fileName_NotNull = fileName != null; if (fileName_NotNull) { dataSize += ParameterUtil.CalculateDataSize(fileName); } return(dataSize); }
private static int CalculateRequestDataSize(string name, IList <KeyValuePair <string, long> > replicaTimestamps, Address targetReplica) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); dataSize += Bits.IntSizeInBytes; foreach (var replicaTimestampsItem in replicaTimestamps) { var replicaTimestampsItemKey = replicaTimestampsItem.Key; var replicaTimestampsItemVal = replicaTimestampsItem.Value; dataSize += ParameterUtil.CalculateDataSize(replicaTimestampsItemKey); dataSize += ParameterUtil.CalculateDataSize(replicaTimestampsItemVal); } dataSize += AddressCodec.CalculateDataSize(targetReplica); return(dataSize); }
public static int CalculateDataSize(IData credentials, string uuid, string ownerUuid, bool isOwnerConnection, string clientType, byte serializationVersion) { int dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(credentials); dataSize += Bits.BooleanSizeInBytes; if (uuid != null) { dataSize += ParameterUtil.CalculateDataSize(uuid); } dataSize += Bits.BooleanSizeInBytes; if (ownerUuid != null) { dataSize += ParameterUtil.CalculateDataSize(ownerUuid); } dataSize += Bits.BooleanSizeInBytes; dataSize += ParameterUtil.CalculateDataSize(clientType); dataSize += Bits.ByteSizeInBytes; return(dataSize); }
private static int CalculateRequestDataSize(string username, string password, string uuid, string ownerUuid, bool isOwnerConnection, string clientType, byte serializationVersion, string clientHazelcastVersion) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(username); dataSize += ParameterUtil.CalculateDataSize(password); dataSize += Bits.BooleanSizeInBytes; if (uuid != null) { dataSize += ParameterUtil.CalculateDataSize(uuid); } dataSize += Bits.BooleanSizeInBytes; if (ownerUuid != null) { dataSize += ParameterUtil.CalculateDataSize(ownerUuid); } dataSize += Bits.BooleanSizeInBytes; dataSize += ParameterUtil.CalculateDataSize(clientType); dataSize += Bits.ByteSizeInBytes; dataSize += ParameterUtil.CalculateDataSize(clientHazelcastVersion); return dataSize; }
private static int CalculateRequestDataSize(string name) { var dataSize = ClientMessage.HeaderSize; dataSize += ParameterUtil.CalculateDataSize(name); return dataSize; }