gfe70Commands.put(MessageType.DESTROY, Destroy70.getCommand()); gfe70Commands.put(MessageType.INVALIDATE, Invalidate70.getCommand()); gfe70Commands.put(MessageType.GET_PDX_TYPES, GetPdxTypes70.getCommand()); gfe70Commands.put(MessageType.GET_PDX_ENUMS, GetPdxEnums70.getCommand()); gfe70Commands.put(MessageType.EXECUTE_FUNCTION, ExecuteFunction70.getCommand());
@Override public void cmdExecute(Message msg, ServerConnection servConn, long start) throws IOException, ClassNotFoundException { servConn.setAsTrue(REQUIRES_RESPONSE); if (logger.isDebugEnabled()) { logger.debug("{}: Received get pdx types from {}", servConn.getName(), servConn.getSocketString()); } Map<Integer, PdxType> types; try { GemFireCacheImpl cache = (GemFireCacheImpl) servConn.getCache(); types = cache.getPdxRegistry().typeMap(); } catch (Exception e) { writeException(msg, e, false, servConn); servConn.setAsTrue(RESPONDED); return; } Message responseMsg = servConn.getResponseMessage(); responseMsg.setMessageType(MessageType.RESPONSE); responseMsg.setNumberOfParts(1); responseMsg.setTransactionId(msg.getTransactionId()); responseMsg.addObjPart(types); responseMsg.send(servConn); servConn.setAsTrue(RESPONDED); } }
@Override public void cmdExecute(Message msg, ServerConnection servConn, long start) throws IOException, ClassNotFoundException { servConn.setAsTrue(REQUIRES_RESPONSE); if (logger.fineEnabled()) { logger.fine(servConn.getName() + ": Received get pdx types from " + servConn.getSocketString()); } Map<Integer, PdxType> types; try { GemFireCacheImpl cache = (GemFireCacheImpl) servConn.getCache(); types = cache.getPdxRegistry().typeMap(); } catch (Exception e) { writeException(msg, e, false, servConn); servConn.setAsTrue(RESPONDED); return; } Message responseMsg = servConn.getResponseMessage(); responseMsg.setMessageType(MessageType.RESPONSE); responseMsg.setNumberOfParts(1); responseMsg.setTransactionId(msg.getTransactionId()); responseMsg.addObjPart(types); responseMsg.send(servConn, logger, msg.getTransactionId()); servConn.setAsTrue(RESPONDED); } }
gfe70Commands.put(MessageType.DESTROY, Destroy70.getCommand()); gfe70Commands.put(MessageType.INVALIDATE, Invalidate70.getCommand()); gfe70Commands.put(MessageType.GET_PDX_TYPES, GetPdxTypes70.getCommand()); gfe70Commands.put(MessageType.GET_PDX_ENUMS, GetPdxEnums70.getCommand()); gfe70Commands.put(MessageType.EXECUTE_FUNCTION, ExecuteFunction70.getCommand());