public GetClientPartitionAttributesOpImpl(LogWriterI18n lw, String regionFullPath) { super(lw, MessageType.GET_CLIENT_PARTITION_ATTRIBUTES, 1); logger = lw; this.regionFullPath = regionFullPath; getMessage().addStringPart(regionFullPath); }
/** * @throws com.gemstone.gemfire.SerializationException if serialization fails */ public SizeOpImpl(String region) { super(MessageType.SIZE, 1); getMessage().addStringPart(region); }
/** * @throws com.gemstone.gemfire.SerializationException if serialization fails */ public SizeOpImpl(LogWriterI18n lw, String region) { super(lw, MessageType.SIZE, 1); getMessage().addStringPart(region); }
public void addStringOrObjPart(Object o) { if (o instanceof String || o == null) { addStringPart((String)o); } else { // Note even if o is a byte[] we need to serialize it. // This could be cleaned up but it would require C client code to change. serializeAndAddPart(o, false); } }
public GetFunctionAttributeOpImpl(LogWriterI18n lw, String functionId) { super(lw, MessageType.GET_FUNCTION_ATTRIBUTES, 1); this.functionId = functionId; getMessage().addStringPart(this.functionId); }
/** * @throws com.gemstone.gemfire.SerializationException if serialization fails */ public QueryOpImpl(LogWriterI18n lw, String queryPredicate) { super(lw, MessageType.QUERY, 1); getMessage().addStringPart(queryPredicate); }
public GetClientPRMetaDataOpImpl(String regionFullPath, ClientMetadataService cms) { super(MessageType.GET_CLIENT_PR_METADATA, 1); this.regionFullPath = regionFullPath; this.cms = cms; getMessage().addStringPart(regionFullPath); }
/** * @throws com.gemstone.gemfire.SerializationException if serialization fails */ public KeySetOpImpl(String region) { super(MessageType.KEY_SET, 1); getMessage().addStringPart(region); } @Override
public GetFunctionAttributeOpImpl(String functionId) { super(MessageType.GET_FUNCTION_ATTRIBUTES, 1); this.functionId = functionId; getMessage().addStringPart(this.functionId); }
/** * @throws com.gemstone.gemfire.SerializationException if serialization fails */ public GetAllOpImpl(String region, List keys, Object callback) { super(callback != null ? MessageType.GET_ALL_WITH_CALLBACK : MessageType.GET_ALL_70, 3); this.keyList = keys; this.callback = callback; getMessage().addStringPart(region); }
public GetClientPRMetaDataOpImpl(LogWriterI18n lw, String regionFullPath, ClientMetadataService cms) { super(lw, MessageType.GET_CLIENT_PR_METADATA, 1); logger = lw; this.regionFullPath = regionFullPath; this.cms = cms; getMessage().addStringPart(regionFullPath); }
/** * @throws com.gemstone.gemfire.SerializationException if serialization fails */ public KeySetOpImpl(LogWriterI18n lw, String region) { super(lw, MessageType.KEY_SET, 1); getMessage().addStringPart(region); } @Override
public GetClientPartitionAttributesOpImpl(String regionFullPath) { super(MessageType.GET_CLIENT_PARTITION_ATTRIBUTES, 1); this.regionFullPath = regionFullPath; getMessage().addStringPart(regionFullPath); }
public GetEntryOpImpl(LocalRegion region, Object key) { super(MessageType.GET_ENTRY, 2); this.region = region; this.key = key; getMessage().addStringPart(region.getFullPath()); getMessage().addStringOrObjPart(key); }
public GetEntryOpImpl(LogWriterI18n loggerI18n, LocalRegion region, Object key) { super(loggerI18n, MessageType.GET_ENTRY, 2); this.region = region; this.key = key; getMessage().addStringPart(region.getFullPath()); getMessage().addStringOrObjPart(key); }
/** * @throws com.gemstone.gemfire.SerializationException if serialization fails */ public QueryOpImpl(String queryPredicate, Object[] queryParams) { super(MessageType.QUERY_WITH_PARAMETERS, 2 + queryParams.length); getMessage().addStringPart(queryPredicate); getMessage().addIntPart(queryParams.length); for (Object param : queryParams){ getMessage().addObjPart(param); } }
protected static void writeErrorResponse(Message origMsg, int messageType, String msg, ServerConnection servConn) throws IOException { Message errorMsg = servConn.getErrorResponseMessage(); errorMsg.setMessageType(messageType); errorMsg.setNumberOfParts(1); errorMsg.setTransactionId(origMsg.getTransactionId()); errorMsg.addStringPart(msg); errorMsg.send(servConn); }
protected static void writeErrorResponse(Message origMsg, int messageType, String msg, ServerConnection servConn) throws IOException { Message errorMsg = servConn.getErrorResponseMessage(); errorMsg.setMessageType(messageType); errorMsg.setNumberOfParts(1); errorMsg.setTransactionId(origMsg.getTransactionId()); errorMsg.addStringPart(msg); errorMsg.send(servConn); }
protected static void writeErrorResponse(Message origMsg, int messageType, ServerConnection servConn) throws IOException { Message errorMsg = servConn.getErrorResponseMessage(); errorMsg.setMessageType(messageType); errorMsg.setNumberOfParts(1); errorMsg.setTransactionId(origMsg.getTransactionId()); errorMsg .addStringPart(LocalizedStrings.BaseCommand_INVALID_DATA_RECEIVED_PLEASE_SEE_THE_CACHE_SERVER_LOG_FILE_FOR_ADDITIONAL_DETAILS.toLocalizedString()); errorMsg.send(servConn); }
protected static void writeErrorResponse(Message origMsg, int messageType, ServerConnection servConn) throws IOException { Message errorMsg = servConn.getErrorResponseMessage(); errorMsg.setMessageType(messageType); errorMsg.setNumberOfParts(1); errorMsg.setTransactionId(origMsg.getTransactionId()); errorMsg .addStringPart(LocalizedStrings.BaseCommand_INVALID_DATA_RECEIVED_PLEASE_SEE_THE_CACHE_SERVER_LOG_FILE_FOR_ADDITIONAL_DETAILS.toLocalizedString()); errorMsg.send(servConn); }