/** * Register a bunch of instantiators on a server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. */ public static int execute(ExecutablePool pool, EnumInfo ei) { AbstractOp op = new GetPDXIdForEnumOpImpl(ei); return ((Integer) pool.execute(op)).intValue(); }
/** * Get a PdxType from the given pool. * * @param pool the pool to use to communicate with the server. */ public static PdxType execute(ExecutablePool pool, int pdxId) { AbstractOp op = new GetPDXTypeByIdOpImpl(pdxId); return (PdxType) pool.execute(op); }
/** * Does a region invalidate on a server using connections from the given pool to communicate with * the server. * * @param pool the pool to use to communicate with the server. * @param region the name of the region to do the entry keySet on */ public static void execute(ExecutablePool pool, String region, EntryEventImpl event) { AbstractOp op = new InvalidateOpImpl(region, event); pool.execute(op); }
/** * Register a bunch of instantiators on a server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. */ public static void execute(ExecutablePool pool, int id, EnumInfo ei) { AbstractOp op = new AddPdxEnumOpImpl(id, ei); pool.execute(op);; }
/** * Register a bunch of instantiators on a server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. */ public static int execute(ExecutablePool pool, PdxType type) { AbstractOp op = new GetPDXIdForTypeOpImpl(type); return ((Integer) pool.execute(op)).intValue(); }
/** * Does a region entry keySet on a server using connections from the given pool to communicate * with the server. * * @param pool the pool to use to communicate with the server. * @param region the name of the region to do the entry keySet on */ public static Set execute(ExecutablePool pool, String region) { AbstractOp op = new KeySetOpImpl(region); return (Set) pool.execute(op); }
/** * Register a bunch of instantiators on a server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. */ public static void execute(ExecutablePool pool, int id, PdxType type) { AbstractOp op = new AddPDXTypeOpImpl(id, type); pool.execute(op); }
/** * Does a rollback on the server for given transaction * * @param pool the pool to use to communicate with the server. * @param txId the id of the transaction to rollback */ public static void execute(ExecutablePool pool, int txId) { RollbackOpImpl op = new RollbackOpImpl(txId); pool.execute(op); }
public static Object execute(ExecutablePool pool, String regionName, Object key, Object value, byte[] deltaBytes, EntryEventImpl event, Operation operation, boolean requireOldValue, Object expectedOldValue, Object callbackArg, boolean prSingleHopEnabled) { AbstractOp op = new PutOpImpl(regionName, key, value, deltaBytes, event, operation, requireOldValue, expectedOldValue, callbackArg, false/* donot send full obj; send delta */, prSingleHopEnabled); return pool.execute(op); }
public static void execute(ExecutablePool pool, SerializerAttributesHolder[] holders, EventID eventId) { AbstractOp op = new RegisterDataSerializersOpImpl(holders, eventId); pool.execute(op); }
/** * Get a enum from the given pool. * * @param pool the pool to use to communicate with the server. */ public static EnumInfo execute(ExecutablePool pool, int enumId) { AbstractOp op = new GetPDXEnumByIdOpImpl(enumId); return (EnumInfo) pool.execute(op); }
public static void execute(ExecutablePool pool, DataSerializer[] dataSerializers, EventID eventId) { AbstractOp op = new RegisterDataSerializersOpImpl(dataSerializers, eventId); pool.execute(op); }
/** * Does a region.getEntry on the server using the given pool * * @return an {@link EntrySnapshot} for the given key */ public static Object execute(ExecutablePool pool, LocalRegion region, Object key) { AbstractOp op = new GetEntryOpImpl(region, key); return pool.execute(op); }
/** * Register a bunch of instantiators on a server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. * @param instantiators the instantiators to register * @param eventId the id of this event */ public static void execute(ExecutablePool pool, Instantiator[] instantiators, EventID eventId) { AbstractOp op = new RegisterInstantiatorsOpImpl(instantiators, eventId); pool.execute(op, Integer.MAX_VALUE); }
public static Map<Integer, PdxType> execute(ExecutablePool pool) { AbstractOp op = new GetPDXTypesOpImpl(); return (Map<Integer, PdxType>) pool.execute(op); }
public static Map<Integer, EnumInfo> execute(ExecutablePool pool) { AbstractOp op = new GetPDXEnumsOpImpl(); return (Map<Integer, EnumInfo>) pool.execute(op); }
/** * Register a bunch of instantiators on a server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. * @param holders the {@link InstantiatorAttributesHolder}s containing info about the * instantiators to register * @param eventId the id of this event */ public static void execute(ExecutablePool pool, Object[] holders, EventID eventId) { AbstractOp op = new RegisterInstantiatorsOpImpl(holders, eventId); pool.execute(op, Integer.MAX_VALUE); }
public static void execute(ExecutablePool pool, String regionFullPath, ClientMetadataService cms) { AbstractOp op = new GetClientPRMetaDataOpImpl(regionFullPath, cms); if (logger.isDebugEnabled()) { logger.debug( "GetClientPRMetaDataOp#execute : Sending GetClientPRMetaDataOp Message: {} to server using pool: {}", op.getMessage(), pool); } pool.execute(op); }
/** * Does a commit on a server using connections from the given pool to communicate with the server. * * @param pool the pool to use to communicate with the server. */ public static TXCommitMessage execute(ExecutablePool pool, int txId) { CommitOpImpl op = new CommitOpImpl(txId); pool.execute(op); return op.getTXCommitMessageResponse(); }
@SuppressWarnings("unchecked") public static ClientPartitionAdvisor execute(ExecutablePool pool, String regionFullPath) { AbstractOp op = new GetClientPartitionAttributesOpImpl(regionFullPath); if (logger.isDebugEnabled()) { logger.debug( "GetClientPartitionAttributesOp#execute : Sending GetClientPartitionAttributesOp Message: {} for region: {} to server using pool: {}", op.getMessage(), regionFullPath, pool); } ClientPartitionAdvisor advisor = (ClientPartitionAdvisor) pool.execute(op); if (advisor != null) { advisor.setServerGroup(((PoolImpl) pool).getServerGroup()); } return advisor; }