Class AbstractSpaceProxyActionManager<TSpaceProxy extends ISpaceProxy>
java.lang.Object
com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager<TSpaceProxy>
- Direct Known Subclasses:
LocalCacheImplActionManager,LocalViewImplActionManager,SpaceProxyImplActionManager
public abstract class AbstractSpaceProxyActionManager<TSpaceProxy extends ISpaceProxy>
extends Object
An action manager, holding all the action listeners used by different space proxies.
- Author:
- GigaSpaces
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregate(Object query, AggregationSet aggregationSet, Transaction txn, int modifiers) asyncAddIndexes(String typeName, SpaceIndex[] indexes, AsyncFutureListener<AddTypeIndexesResult> listener) <T> Future<ChangeResult<T>>asyncChange(Object template, ChangeSet changeSet, Transaction txn, long timeout, ChangeModifiers modifiers, AsyncFutureListener<ChangeResult<T>> listener) AsyncFuture<?>asyncRead(Object template, Transaction txn, long timeout, int modifiers, AsyncFutureListener<?> listener) AsyncFuture<?>asyncTake(Object template, Transaction txn, long timeout, int modifiers, AsyncFutureListener<?> listener) <T> ChangeResult<T>change(Object template, ChangeSet changeSet, Transaction txn, long timeout, ChangeModifiers modifiers) intclear(Object template, Transaction txn, int modifiers) intcount(Object template, Transaction txn, int modifiers) protected abstract AdminProxyAction<TSpaceProxy>protected abstract AggregateProxyAction<TSpaceProxy>protected abstract ChangeProxyAction<TSpaceProxy>protected abstract CountClearProxyAction<TSpaceProxy>protected abstract ReadTakeByIdsProxyAction<TSpaceProxy>protected abstract ReadTakeEntriesUidsProxyAction<TSpaceProxy>protected abstract ReadTakeMultipleProxyAction<TSpaceProxy>protected abstract ReadTakeProxyAction<TSpaceProxy>protected abstract SnapshotProxyAction<TSpaceProxy>protected abstract TypeDescriptorActionsProxyExecutor<TSpaceProxy>protected abstract WriteProxyAction<TSpaceProxy>voidexecuteTask(SpaceTask task, Object routing, Transaction tx, AsyncFutureListener listener, Map<String, byte[]> classes) getTypeDescriptor(String typeName) voidping()read(ReadTakeProxyActionInfo actionInfo) read(Object template, Transaction txn, long timeout, int modifiers, boolean ifExists) readById(String className, Object id, Object routing, Transaction txn, long timeout, int modifiers, boolean ifExists, QueryResultTypeInternal resultType, String[] projections) Object[]readByIds(ReadTakeByIdsProxyActionInfo actionInfo, boolean returnPackets) Object[]readByIds(String className, Object[] ids, Object[] routings, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) Object[]readByIds(String className, Object[] ids, Object routing, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) readByUid(String uid, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPacket) readEntriesUids(ITemplatePacket template, Transaction transaction, int entriesLimit, int modifiers) Object[]readMultiple(Object template, Transaction txn, long timeout, int maxEntries, int minEntriesToWaitFor, int modifiers, boolean returnOnlyUids, boolean ifExist) voidregisterTypeDescriptor(ITypeDesc typeDesc) registerTypeDescriptor(Class<?> type) <T> ISpaceQuery<T>take(ReadTakeProxyActionInfo actionInfo) take(Object template, Transaction txn, long timeout, int modifiers, boolean ifExists) takeById(String className, Object id, Object routing, int version, Transaction txn, long timeout, int modifiers, boolean ifExists, QueryResultTypeInternal resultType, String[] projections) Object[]takeByIds(ReadTakeByIdsProxyActionInfo actionInfo, boolean returnPackets) Object[]takeByIds(String className, Object[] ids, Object[] routings, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) Object[]takeByIds(String className, Object[] ids, Object routing, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) takeByUid(String uid, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPacket) Object[]takeMultiple(Object template, Transaction txn, long timeout, int maxEntries, int minEntriesToWaitFor, int modifiers, boolean returnOnlyUids, boolean ifExist) voidunregisterTypeDescriptor(String typeName) LeaseContext<?>write(Object entry, Transaction txn, long lease, long timeout, int modifiers) LeaseContext<?>[]writeMultiple(Object[] objects, Transaction txn, long lease, long[] leases, long timeout, int modifiers)
-
Constructor Details
-
AbstractSpaceProxyActionManager
-
-
Method Details
-
getTypeDescriptor
- Throws:
RemoteException
-
registerTypeDescriptor
- Throws:
RemoteException
-
registerTypeDescriptor
- Throws:
RemoteException
-
asyncAddIndexes
public AsyncFuture<AddTypeIndexesResult> asyncAddIndexes(String typeName, SpaceIndex[] indexes, AsyncFutureListener<AddTypeIndexesResult> listener) throws RemoteException - Throws:
RemoteException
-
dropClass
- Throws:
RemoteExceptionDropClassException
-
unregisterTypeDescriptor
- Throws:
RemoteException
-
clear
- Throws:
ClearException
-
count
public int count(Object template, Transaction txn, int modifiers) throws RemoteException, TransactionException, UnusableEntryException -
executeTask
public AsyncFuture executeTask(SpaceTask task, Object routing, Transaction tx, AsyncFutureListener listener, Map<String, byte[]> classes) throws RemoteException, TransactionException- Throws:
RemoteExceptionTransactionException
-
ping
- Throws:
RemoteException
-
getSpaceHealthStatus
- Throws:
RemoteException
-
read
public Object read(Object template, Transaction txn, long timeout, int modifiers, boolean ifExists) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException -
readById
public Object readById(String className, Object id, Object routing, Transaction txn, long timeout, int modifiers, boolean ifExists, QueryResultTypeInternal resultType, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException -
readByUid
public Object readByUid(String uid, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPacket) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException -
read
public Object read(ReadTakeProxyActionInfo actionInfo) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException -
asyncRead
public AsyncFuture<?> asyncRead(Object template, Transaction txn, long timeout, int modifiers, AsyncFutureListener<?> listener) throws RemoteException - Throws:
RemoteException
-
readMultiple
public Object[] readMultiple(Object template, Transaction txn, long timeout, int maxEntries, int minEntriesToWaitFor, int modifiers, boolean returnOnlyUids, boolean ifExist) throws TransactionException, UnusableEntryException, RemoteException -
readByIds
public Object[] readByIds(String className, Object[] ids, Object routing, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException -
readByIds
public Object[] readByIds(String className, Object[] ids, Object[] routings, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException -
readByIds
public Object[] readByIds(ReadTakeByIdsProxyActionInfo actionInfo, boolean returnPackets) throws RemoteException, TransactionException, InterruptedException, UnusableEntryException -
readEntriesUids
public ReadTakeEntriesUidsResult readEntriesUids(ITemplatePacket template, Transaction transaction, int entriesLimit, int modifiers) throws RemoteException, TransactionException, UnusableEntryException -
takeByIds
public Object[] takeByIds(String className, Object[] ids, Object routing, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException -
takeByIds
public Object[] takeByIds(String className, Object[] ids, Object[] routings, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException -
takeByIds
public Object[] takeByIds(ReadTakeByIdsProxyActionInfo actionInfo, boolean returnPackets) throws RemoteException, TransactionException, InterruptedException, UnusableEntryException -
snapshot
- Throws:
RemoteException
-
take
public Object take(Object template, Transaction txn, long timeout, int modifiers, boolean ifExists) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException -
takeById
public Object takeById(String className, Object id, Object routing, int version, Transaction txn, long timeout, int modifiers, boolean ifExists, QueryResultTypeInternal resultType, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException -
takeByUid
public Object takeByUid(String uid, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPacket) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException -
take
public Object take(ReadTakeProxyActionInfo actionInfo) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException -
asyncTake
public AsyncFuture<?> asyncTake(Object template, Transaction txn, long timeout, int modifiers, AsyncFutureListener<?> listener) throws RemoteException - Throws:
RemoteException
-
takeMultiple
public Object[] takeMultiple(Object template, Transaction txn, long timeout, int maxEntries, int minEntriesToWaitFor, int modifiers, boolean returnOnlyUids, boolean ifExist) throws TransactionException, UnusableEntryException, RemoteException -
write
public LeaseContext<?> write(Object entry, Transaction txn, long lease, long timeout, int modifiers) throws TransactionException, RemoteException - Throws:
TransactionExceptionRemoteException
-
writeMultiple
public LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease, long[] leases, long timeout, int modifiers) throws TransactionException, RemoteException - Throws:
TransactionExceptionRemoteException
-
change
public <T> ChangeResult<T> change(Object template, ChangeSet changeSet, Transaction txn, long timeout, ChangeModifiers modifiers) throws RemoteException, TransactionException - Throws:
RemoteExceptionTransactionException
-
asyncChange
public <T> Future<ChangeResult<T>> asyncChange(Object template, ChangeSet changeSet, Transaction txn, long timeout, ChangeModifiers modifiers, AsyncFutureListener<ChangeResult<T>> listener) throws RemoteException - Throws:
RemoteException
-
aggregate
public AggregationResult aggregate(Object query, AggregationSet aggregationSet, Transaction txn, int modifiers) throws RemoteException, TransactionException, InterruptedException -
createTypeDescriptorActionsExecutor
protected abstract TypeDescriptorActionsProxyExecutor<TSpaceProxy> createTypeDescriptorActionsExecutor() -
createAdminProxyAction
-
createCountClearProxyAction
-
createReadTakeProxyAction
-
createReadTakeMultipleProxyAction
-
createReadTakeByIdsProxyAction
-
createReadTakeEntriesUidsProxyAction
protected abstract ReadTakeEntriesUidsProxyAction<TSpaceProxy> createReadTakeEntriesUidsProxyAction() -
createSnapshotProxyAction
-
createWriteProxyAction
-
createChangeProxyAction
-
createAggregateAction
-