Class LRMISpaceImpl
- All Implemented Interfaces:
GridZoneProvider,JVMInfoProvider,OSInfoProvider,RemoteOperationsExecutor,IRemoteSpace,ILRMIProxy,NIOInfoProvider,RemoteSecuredService,SmartExternalizable,IInternalRemoteJSpaceAdmin,IRemoteJSpaceAdmin,Service,ServiceProxyAccessor,Externalizable,Serializable,Remote,Administrable,TransactionConstants,TransactionParticipant
public class LRMISpaceImpl
extends RemoteStub<IRemoteSpace>
implements IRemoteSpace, IInternalRemoteJSpaceAdmin, Service
LRMI Stub implementation of
IRemoteJSpaceImpl interface.- Version:
- 2.5
- Author:
- Igor Goldenberg
- See Also:
-
Field Summary
Fields inherited from interface com.j_spaces.core.admin.IRemoteJSpaceAdmin
REPLICATION_STATUS_ACTIVE, REPLICATION_STATUS_DISABLED, REPLICATION_STATUS_DISCONNECTEDFields inherited from interface net.jini.core.transaction.server.TransactionConstants
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING -
Constructor Summary
ConstructorsConstructorDescriptionLRMISpaceImpl(IRemoteSpace directRefObj, IRemoteSpace dynamicProxy) constructor to initialize space stub -
Method Summary
Modifier and TypeMethodDescriptionvoidabort(TransactionManager parm1, long parm2) Requests that the participant roll back any changes for the specified transaction and unlock any resources locked by the transaction.voidabort(TransactionManager parm1, Object parm2) addSpaceModeListener(ISpaceModeListener listener) Adds a listener to be called back withISpaceModeListenermode changes.Adds a listener to be called back withSuspendTypeChangedInternalListenersuspend type changes.voidcheckChunkMapGeneration(int clientGeneration) voidcommit(TransactionManager parm1, long parm2) Requests that the participant make all of itsPREPAREDchanges for the specified transaction visible outside of the transaction and unlock any resources locked by the transaction.voidcommit(TransactionManager parm1, long parm2, int numOfParticipants) Requests that the participant make all of itsPREPAREDchanges for the specified transaction visible outside of the transaction and unlock any resources locked by the transaction.voidcommit(TransactionManager parm1, Object parm2) voidcommit(TransactionManager parm1, Object parm2, int numOfParticipants) connect(SpaceConnectRequest request) intintcountTransactions(int type, int status) voiddemote(long maxSuspendTime, TimeUnit unit, SpaceContext sc) Demote leadership and become a backup Space, in the specified operation timeout.voidDisabled lrmi monitoring (gigaspaces internal remoting layer).voiddisable remote.voiddropClass(String className, SpaceContext sc) Drop all Class entries and all its templates from the space.voidEnables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target to start track lrmi invocations which can later be viewed by calling.<T extends RemoteOperationResult>
TexecuteOperation(RemoteOperationRequest<T> request) <T extends RemoteOperationResult>
TexecuteOperationAsync(RemoteOperationRequest<T> request) voidexecuteOperationOneway(RemoteOperationRequest<?> request) Return lrmi (gigaspaces internal remoting layer) services monitoring details.intFlush redo-log packets from memory to underlying storage.voidForcefully make this space to be primarygetAdmin()Returns an object that implements whatever administration interfaces are appropriate for the particular service.getClassDescriptor(String className) Get the basic class information from the space directory.getClassDescriptor(String className, boolean asVirtualType) Get the basic class information from the space directory.getClassTypeInfo(String className) Get the basic class information from the space directory.byte[]Returns a byte representation of the cluster configuration file.Returns cluster policy.ReturnsSpaceConfigof this space.longgetLockedObjects is called by the GUI.getName()Returns the Space Name.Returns the transport configuration.Returns the transport statistics.Object[]returns the replication member-status relation of all the replication groups.ReturnsSpaceRuntimeInfo.getRuntimeInfo(String className) ReturnsSpaceRuntimeInfofor specific class name and its subclasses.Returns a proxy object for this object.Return the info about the space classloaderGet the currentSpaceModewhich represents the current state of this participant in the election process.returns the universal unique identifier of the remote spaceintgetState()Returns the particular condition of this space.getTemplatesInfo(String className) Returns a list of pending templates.getTransactionsInfo(int type, int status) Returns all the transactions with the specific parameters.Generates and returns a unique idString[]getZones()booleanisActive()booleanbooleanbooleanClass<?>loadRemoteClass(String className) login(SecurityContext securityContext) Login to a secured service using the providedSecurityContextvoidping()Ping to space to see if alive.intprepare(TransactionManager parm1, long parm2) Requests that the participant prepare itself to commit the transaction, and to vote on the outcome of the transaction.prepare(TransactionManager parm1, long parm2, boolean parm3) intprepare(TransactionManager parm1, Object parm2) prepare(TransactionManager parm1, Object parm2, boolean parm3) intprepare(TransactionManager parm1, Object parm2, int numOfParticipants) prepare(TransactionManager parm1, Object parm2, int parm3, boolean parm4) intprepareAndCommit(TransactionManager parm1, long parm2) A combination ofprepareandcommit, which can be used by the manager when there is just one participant left to prepare and all other participants (if any) have responded withNOTCHANGED.intprepareAndCommit(TransactionManager parm1, Object parm2) voidquiesce(String description, QuiesceToken token, boolean readonly) voidvoidremoveSpaceModeListener(ISpaceModeListener listener) Removes this listener so that it no longer receives call backs of space mode changes.voidRemoves this listener so that it no longer receives call backs of space suspend type changes.longObject[]voidrenewLease(TransactionManager mgr, long id, long time) Notify the transaction participant about transaction lease renewalvoidrestart()Restarts the space.voidrunGc()voidsetClusterConfigFile(byte[] config) set the cluster configuration according to the given byte representation of the configuration file.voidvoidsnapshot(ITemplatePacket e, SpaceContext sc) spaceCopy(IRemoteSpace remoteProxy, String remoteSpaceUrl, String remoteSpaceName, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize, SpaceContext spaceContext, SpaceContext remoteSpaceContext) Given ISpaceInternal of a remote space, Copy all entries/notify templates from the space.spaceCopy(String remoteUrl, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize) Given Url of a remote space, Copy all entries/notify templates from the space.spaceCopy(String remoteUrl, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize, SpaceContext sc) Given Url of a remote space, Copy all entries/notify templates from the space.Igor.G 13/3/2005 ver 5.01.voidstart()Attempt to start this space.voidstop()Attempt to stop this space.voidvoidtrigger read of chunks map from zk and update clusterInfoMethods inherited from class com.gigaspaces.lrmi.RemoteStub
closeProxy, disable, enable, equals, getConnectionUrl, getDynamicProxy, getGeneratedTraffic, getProxy, getReceivedTraffic, getRemoteHostAddress, getRemoteHostName, getRemoteNetworkAddress, getRemoteProcessId, getServicePlatformLogicalVersion, getStubId, hashCode, init, isClosed, isCollocated, isCollocatedStub, isDirect, isRemote, isStub, overrideMethodsMetadata, toString, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
LRMISpaceImpl
public LRMISpaceImpl() -
LRMISpaceImpl
constructor to initialize space stub
-
-
Method Details
-
isEmbedded
public boolean isEmbedded()- Specified by:
isEmbeddedin interfaceIRemoteSpace
-
getReplicationStatus
Description copied from interface:IRemoteJSpaceAdminreturns the replication member-status relation of all the replication groups.Usage: Object[] replStatus = spaceAdmin.getReplicationStatus(); String[] peers = (String[])replStatus[0]; int[] status = (int[])replStatus[1];- Specified by:
getReplicationStatusin interfaceIRemoteJSpaceAdmin- Returns:
- an array of remote member names array and replication status array. Replication status can have one of the following values: IRemoteJSpaceAdmin.REPLICATION_STATUS_ACTIVE IRemoteJSpaceAdmin.REPLICATION_STATUS_DISCONNECTED IRemoteJSpaceAdmin.REPLICATION_STATUS_DISABLED
- Throws:
RemoteException- if a communication error occurs
-
isStartedWithinGSC
- Specified by:
isStartedWithinGSCin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
getRuntimeHolder
- Specified by:
getRuntimeHolderin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
snapshot
- Specified by:
snapshotin interfaceIRemoteSpace- Throws:
UnusableEntryExceptionRemoteException
-
snapshot
public void snapshot(ITemplatePacket e, SpaceContext sc) throws UnusableEntryException, RemoteException - Specified by:
snapshotin interfaceIRemoteSpace- Throws:
UnusableEntryExceptionRemoteException
-
cancel
public void cancel(String entryUID, String classname, int objectType) throws UnknownLeaseException, RemoteException - Specified by:
cancelin interfaceIRemoteSpace- Throws:
UnknownLeaseExceptionRemoteException
-
renew
public long renew(String entryUID, String classname, int objectType, long duration) throws LeaseDeniedException, UnknownLeaseException, RemoteException - Specified by:
renewin interfaceIRemoteSpace- Throws:
LeaseDeniedExceptionUnknownLeaseExceptionRemoteException
-
cancelAll
public Exception[] cancelAll(String[] entryUIDs, String[] classnames, int[] objectTypes) throws RemoteException - Specified by:
cancelAllin interfaceIRemoteSpace- Throws:
RemoteException
-
renewAll
public Object[] renewAll(String[] entryUIDs, String[] classnames, int[] objectTypes, long[] durations) throws RemoteException - Specified by:
renewAllin interfaceIRemoteSpace- Throws:
RemoteException
-
restart
Description copied from interface:IInternalRemoteJSpaceAdminRestarts the space.Usage: try { spaceAdmin.restart(); } catch( java.rmi.RemoteException ex ) { System.err.println("Failed to restart space: " + ((IJSpace)space).getName()); System.err.println("Exception: " + ex); }- Specified by:
restartin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException- Failed to restart space.
-
addSpaceSuspendTypeListener
Description copied from interface:IInternalRemoteJSpaceAdminAdds a listener to be called back withSuspendTypeChangedInternalListenersuspend type changes.- Specified by:
addSpaceSuspendTypeListenerin interfaceIInternalRemoteJSpaceAdmin- Parameters:
listener- -SuspendTypeChangedInternalListenerthat will receive notification when a space suspend type changes (SuspendType)
-
removeSpaceSuspendTypeListener
Description copied from interface:IInternalRemoteJSpaceAdminRemoves this listener so that it no longer receives call backs of space suspend type changes.- Specified by:
removeSpaceSuspendTypeListenerin interfaceIInternalRemoteJSpaceAdmin- Parameters:
listener- -SuspendTypeChangedInternalListenerthat will stop receiving notification when a space suspend type changes (SuspendType)
-
getSpaceInstanceRemoteClassLoaderInfo
public SpaceInstanceRemoteClassLoaderInfo getSpaceInstanceRemoteClassLoaderInfo() throws RemoteExceptionDescription copied from interface:IRemoteJSpaceAdminReturn the info about the space classloader- Specified by:
getSpaceInstanceRemoteClassLoaderInfoin interfaceIRemoteJSpaceAdmin- Returns:
- a SpaceInstanceRemoteClassLoaderInfo that represents the space classloader's
- Throws:
RemoteException- if a communication error occurs
-
ping
Description copied from interface:IRemoteJSpaceAdminPing to space to see if alive. If successful, this does not indicate that the space is in a running state.Usage: try { spaceAdmin.ping(); } catch (RemoteException re) { System.err.println("Space not accessible"); }- Specified by:
pingin interfaceIRemoteJSpaceAdmin- Specified by:
pingin interfaceIRemoteSpace- Throws:
RemoteException- if a communication error occurs- See Also:
-
getSynchronizationListBatch
- Specified by:
getSynchronizationListBatchin interfaceIRemoteSpace- Throws:
RemoteException
-
quiesce
public void quiesce(String description, QuiesceToken token, boolean readonly) throws RemoteException - Specified by:
quiescein interfaceIRemoteSpace- Throws:
RemoteException
-
unquiesce
- Specified by:
unquiescein interfaceIRemoteSpace- Throws:
RemoteException
-
getName
Description copied from interface:IRemoteJSpaceAdminReturns the Space Name.Usage: spaceAdmin.getName()- Specified by:
getNamein interfaceIRemoteJSpaceAdmin- Specified by:
getNamein interfaceIRemoteSpace- Returns:
- the space's name
- Throws:
RemoteException- Failed to get name
-
getRuntimeInfo
Description copied from interface:IRemoteJSpaceAdminReturnsSpaceRuntimeInfo.Usage: SpaceRuntimeInfo runtime = spaceAdmin.getRuntimeInfo(); List classNames = runtime.m_ClassNames; List numOfEntries = runtime.m_NumOFEntries;- Specified by:
getRuntimeInfoin interfaceIRemoteJSpaceAdmin- Returns:
- SpaceRuntimeInfo which holds the classes and the number of entries currently in the space.
- Throws:
RemoteException- if a communication error occurs
-
getRuntimeInfo
Description copied from interface:IRemoteJSpaceAdminReturnsSpaceRuntimeInfofor specific class name and its subclasses.Usage: String className = ExampleObject.class.getName(); SpaceRuntimeInfo runtime = spaceAdmin.getRuntimeInfo(className); List classNames = runtime.m_ClassNames; List numOfEntries = runtime.m_NumOFEntries;- Specified by:
getRuntimeInfoin interfaceIRemoteJSpaceAdmin- Returns:
- SpaceRuntimeInfo which holds the classes and the number of entries of given class and its subclasses currently in space.
- Throws:
RemoteException- if a communication error occurs
-
getReplicationStatistics
- Specified by:
getReplicationStatisticsin interfaceIRemoteJSpaceAdmin- Throws:
RemoteException
-
getConfig
Description copied from interface:IRemoteJSpaceAdminReturnsSpaceConfigof this space.Usage: SpaceConfig config = spaceAdmin.getConfig(); if (config != null) boolean isClustered = config.m_isClustered;- Specified by:
getConfigin interfaceIRemoteJSpaceAdmin- Returns:
- SpaceConfig - Contains all information about the space configuration.
- Throws:
RemoteException- if a communication error occurs
-
disableStub
Description copied from interface:IInternalRemoteJSpaceAdmindisable remote.- Specified by:
disableStubin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException- if a communication error occurs
-
getClassDescriptor
Description copied from interface:IInternalRemoteJSpaceAdminGet the basic class information from the space directory.Usage: com.j_spaces.core.client.BasicTypeInfo classInfo = spaceAdmin.getClassTypeInfo( className ); String[] fieldNames = classInfo.m_FieldsNames; String[] fieldTypes = classInfo.m_FieldsTypes;- Specified by:
getClassDescriptorin interfaceIInternalRemoteJSpaceAdmin- Parameters:
className- - The name of the class to retrieve the information from.- Returns:
- BasicTypeInfo - Which provides class information.
- Throws:
RemoteException- if a communication error occurs
-
getClassDescriptor
Description copied from interface:IInternalRemoteJSpaceAdminGet the basic class information from the space directory.Usage: com.j_spaces.core.client.BasicTypeInfo classInfo = spaceAdmin.getClassTypeInfo( className ); String[] fieldNames = classInfo.m_FieldsNames; String[] fieldTypes = classInfo.m_FieldsTypes;- Specified by:
getClassDescriptorin interfaceIInternalRemoteJSpaceAdmin- Parameters:
className- - The name of the class to retrieve the information from.- Returns:
- BasicTypeInfo - Which provides class information.
- Throws:
RemoteException- if a communication error occurs
-
getClassTypeInfo
Description copied from interface:IRemoteJSpaceAdminGet the basic class information from the space directory.Usage: com.j_spaces.core.client.BasicTypeInfo classInfo = spaceAdmin.getClassTypeInfo( className ); String[] fieldNames = classInfo.m_FieldsNames; String[] fieldTypes = classInfo.m_FieldsTypes;- Specified by:
getClassTypeInfoin interfaceIRemoteJSpaceAdmin- Parameters:
className- - The name of the class to retrieve the information from.- Returns:
- BasicTypeInfo - Which provides class information.
- Throws:
RemoteException- if a communication error occurs
-
abort
public void abort(TransactionManager parm1, Object parm2) throws UnknownTransactionException, RemoteException - Specified by:
abortin interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
abort
public void abort(TransactionManager parm1, long parm2) throws UnknownTransactionException, RemoteException Description copied from interface:TransactionParticipantRequests that the participant roll back any changes for the specified transaction and unlock any resources locked by the transaction. All state associated with the transaction can then be discarded by the participant.- Specified by:
abortin interfaceTransactionParticipant- Parameters:
parm1- the manager of the transactionparm2- the transaction ID- Throws:
UnknownTransactionException- if the transaction is unknown to the transaction manager, either because the transaction ID is incorrect or because the transaction is complete and its state has been discarded by the manager.RemoteException- if there is a communication error
-
commit
public void commit(TransactionManager parm1, Object parm2) throws UnknownTransactionException, RemoteException - Specified by:
commitin interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
commit
public void commit(TransactionManager parm1, long parm2) throws UnknownTransactionException, RemoteException Description copied from interface:TransactionParticipantRequests that the participant make all of itsPREPAREDchanges for the specified transaction visible outside of the transaction and unlock any resources locked by the transaction. All state associated with the transaction can then be discarded by the participant.- Specified by:
commitin interfaceTransactionParticipant- Parameters:
parm1- the manager of the transactionparm2- the transaction ID- Throws:
UnknownTransactionException- if the transaction is unknown to the transaction manager, either because the transaction ID is incorrect or because the transaction is complete and its state has been discarded by the manager.RemoteException- if there is a communication error
-
commit
public void commit(TransactionManager parm1, long parm2, int numOfParticipants) throws UnknownTransactionException, RemoteException Description copied from interface:TransactionParticipantRequests that the participant make all of itsPREPAREDchanges for the specified transaction visible outside of the transaction and unlock any resources locked by the transaction. All state associated with the transaction can then be discarded by the participant.- Specified by:
commitin interfaceTransactionParticipant- Parameters:
parm1- the manager of the transactionparm2- the transaction IDnumOfParticipants- the total number of transaction participants this is needed only in commit , since prepareAndCommit is called for single participant- Throws:
UnknownTransactionException- if the transaction is unknown to the transaction manager, either because the transaction ID is incorrect or because the transaction is complete and its state has been discarded by the manager.RemoteException- if there is a communication error
-
commit
public void commit(TransactionManager parm1, Object parm2, int numOfParticipants) throws UnknownTransactionException, RemoteException - Specified by:
commitin interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
prepare
public int prepare(TransactionManager parm1, Object parm2) throws UnknownTransactionException, RemoteException - Specified by:
preparein interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
prepare
public int prepare(TransactionManager parm1, long parm2) throws UnknownTransactionException, RemoteException Description copied from interface:TransactionParticipantRequests that the participant prepare itself to commit the transaction, and to vote on the outcome of the transaction. The participant responds with eitherPREPARED, indicating that it is prepared;ABORT, indicating that it will abort, orNOTCHANGED, indicating that it did not have any state changed by the transaction (i.e., it was read-only). If the response isPREPARED, the participant must wait until it receives a commit or abort call from the transaction manager; it may query the transaction manager if needed as to the state of the transaction. If the response isABORT, the participant should roll its state back to undo any changes that occurred due to operations performed under the transaction; it can then discard any information about the transaction. If the response isNOTCHANGED, the participant can immediately discard any knowledge of the transaction.- Specified by:
preparein interfaceTransactionParticipant- Parameters:
parm1- the manager of the transactionparm2- the transaction ID- Returns:
- an
intrepresenting this participant's state - Throws:
UnknownTransactionException- if the transaction is unknown to the transaction manager, either because the transaction ID is incorrect or because the transaction is complete and its state has been discarded by the manager.RemoteException- if there is a communication error
-
prepare
public int prepare(TransactionManager parm1, Object parm2, int numOfParticipants) throws UnknownTransactionException, RemoteException - Specified by:
preparein interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
prepareAndCommit
public int prepareAndCommit(TransactionManager parm1, Object parm2) throws UnknownTransactionException, RemoteException - Specified by:
prepareAndCommitin interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
prepare
public Object prepare(TransactionManager parm1, long parm2, boolean parm3) throws UnknownTransactionException, RemoteException - Specified by:
preparein interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
prepare
public Object prepare(TransactionManager parm1, Object parm2, boolean parm3) throws UnknownTransactionException, RemoteException - Specified by:
preparein interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
prepare
public Object prepare(TransactionManager parm1, Object parm2, int parm3, boolean parm4) throws UnknownTransactionException, RemoteException - Specified by:
preparein interfaceIRemoteSpace- Throws:
UnknownTransactionExceptionRemoteException
-
prepareAndCommit
public int prepareAndCommit(TransactionManager parm1, long parm2) throws UnknownTransactionException, RemoteException Description copied from interface:TransactionParticipantA combination ofprepareandcommit, which can be used by the manager when there is just one participant left to prepare and all other participants (if any) have responded withNOTCHANGED. The participant's implementation of this method must be equivalent to:public int prepareAndCommit(TransactionManager mgr, long id) throws UnknownTransactionException, RemoteException { int result = prepare(mgr, id); if (result == PREPARED) { commit(mgr, id); result = COMMITTED; } return result; }- Specified by:
prepareAndCommitin interfaceTransactionParticipant- Parameters:
parm1- the manager of the transactionparm2- the transaction ID- Returns:
- an
intrepresenting its state - Throws:
UnknownTransactionException- if the transaction is unknown to the transaction manager, either because the transaction ID is incorrect or because the transaction is complete and its state has been discarded by the manager.RemoteException- if there is a communication error- See Also:
-
dropClass
Description copied from interface:IRemoteJSpaceAdminDrop all Class entries and all its templates from the space. Calling this method will remove all internal meta data related to this class stored in the space. When using persistent spaced the relevant RDBMS table will be dropped. It is the caller responsibility to ensure that no entries from this class are written to the space while this method is called. This method is protected through the space Default Security Filter. Admin permissions required to execute this request successfully.Usage: spaceAdmin.dropClass( className );- Specified by:
dropClassin interfaceIRemoteJSpaceAdmin- Parameters:
className- name of class to delete.- Throws:
RemoteException- if a communication error occursDropClassException- Failed to drop desired class.
-
getClusterPolicy
Returns cluster policy.- Specified by:
getClusterPolicyin interfaceIRemoteJSpaceAdmin- Returns:
- a ClusterPolicy that represents current cluster
- Throws:
RemoteException- if a communication error occurs
-
getAdmin
Description copied from interface:AdministrableReturns an object that implements whatever administration interfaces are appropriate for the particular service.- Specified by:
getAdminin interfaceAdministrable- Returns:
- an object that implements whatever administration interfaces are appropriate for the particular service.
- Throws:
RemoteException- See Also:
-
getUniqueID
Description copied from interface:IRemoteSpaceGenerates and returns a unique id- Specified by:
getUniqueIDin interfaceIRemoteSpace- Throws:
RemoteException
-
getSpaceUuid
Description copied from interface:IRemoteSpacereturns the universal unique identifier of the remote space- Specified by:
getSpaceUuidin interfaceIRemoteSpace- Throws:
RemoteException
-
getTransactionsInfo
Description copied from interface:IInternalRemoteJSpaceAdminReturns all the transactions with the specific parameters.- Specified by:
getTransactionsInfoin interfaceIInternalRemoteJSpaceAdmin- Parameters:
type- TransactionInfo.Types.LOCAL, TransactionInfo.Types.JINI or TransactionInfo.Types.XA. Use TransactionInfo.Types.All for all types;status- can be one of the status defined inTransactionConstants- Returns:
- all the TransactionInfos of the transactions that matches the given parameters
- Throws:
RemoteException- if a communication error occurs
-
countTransactions
- Specified by:
countTransactionsin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
getTemplatesInfo
Description copied from interface:IInternalRemoteJSpaceAdminReturns a list of pending templates.- Specified by:
getTemplatesInfoin interfaceIInternalRemoteJSpaceAdmin- Parameters:
className- name of the class to search- Returns:
- list of pending template for the given class
- Throws:
RemoteException
-
getConnectionsInfo
- Specified by:
getConnectionsInfoin interfaceIInternalRemoteJSpaceAdmin- Returns:
- returns all the transport connection information for this Space.
- Throws:
RemoteException
-
countIncomingConnections
- Specified by:
countIncomingConnectionsin interfaceIInternalRemoteJSpaceAdmin- Returns:
- returns all the transport connection information for this Space.
- Throws:
RemoteException
-
getLockedObjects
Description copied from interface:IInternalRemoteJSpaceAdmingetLockedObjects is called by the GUI. it returns Info about all the locked Object by the given Transaction.- Specified by:
getLockedObjectsin interfaceIInternalRemoteJSpaceAdmin- Parameters:
txn- - the Transaction that locks the Objects.- Returns:
- List of UnderTxnLockedObject
- Throws:
RemoteException
-
getSpaceMode
Description copied from interface:IInternalRemoteJSpaceAdminGet the currentSpaceModewhich represents the current state of this participant in the election process.In case of a non-clustered participant, where no election process takes place, the return value is always
SpaceMode.PRIMARY.- Specified by:
getSpaceModein interfaceIInternalRemoteJSpaceAdmin- Returns:
- the current
SpaceModeof the space. - Throws:
RemoteException- if an exception occurred executing this remote method.
-
addSpaceModeListener
Description copied from interface:IInternalRemoteJSpaceAdminAdds a listener to be called back withISpaceModeListenermode changes. The change ( SpaceMode ) represents the result of an election process of this participant space. The returned value represents the current state of this participant in the election process.In case of a non-clustered participant, the return value is always
SpaceMode.PRIMARY. Hence, no election process will take place and the listener will not be called.- Specified by:
addSpaceModeListenerin interfaceIInternalRemoteJSpaceAdmin- Parameters:
listener- a listener to be called back on space mode changes.- Returns:
- the current
SpaceModeof the space. - Throws:
RemoteException- if an exception occurred executing this remote method.- See Also:
-
removeSpaceModeListener
Description copied from interface:IInternalRemoteJSpaceAdminRemoves this listener so that it no longer receives call backs of space mode changes. Invocation has no additional effect if the listener was already removed or was not existent in the first place.- Specified by:
removeSpaceModeListenerin interfaceIInternalRemoteJSpaceAdmin- Parameters:
listener- a listener to be removed.- Throws:
RemoteException- if an exception occurred executing this remote method.- See Also:
-
start
Description copied from interface:IInternalRemoteJSpaceAdminAttempt to start this space.Usage: spaceAdmin.start();- Specified by:
startin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException- - Failed to start space.SpaceAlreadyStartedException- - The space is already started
-
stop
Description copied from interface:IInternalRemoteJSpaceAdminAttempt to stop this space.Usage: spaceAdmin.stop();- Specified by:
stopin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException- - Failed to stop space.SpaceAlreadyStoppedException- - The space is already stopped
-
getState
Description copied from interface:IRemoteJSpaceAdminReturns the particular condition of this space.- Specified by:
getStatein interfaceIRemoteJSpaceAdmin- Returns:
- state - ISpaceState.STOPPED, ISpaceState.STARTED and etc.
- Throws:
RemoteException- if a communication error occurs- See Also:
-
getNIODetails
Description copied from interface:NIOInfoProviderReturns the transport configuration. Note, does not change during application lifecycle, should be cached on the client side.- Specified by:
getNIODetailsin interfaceNIOInfoProvider- Throws:
RemoteException
-
getNIOStatistics
Description copied from interface:NIOInfoProviderReturns the transport statistics.- Specified by:
getNIOStatisticsin interfaceNIOInfoProvider- Throws:
RemoteException
-
enableLRMIMonitoring
Description copied from interface:NIOInfoProviderEnables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target to start track lrmi invocations which can later be viewed by calling.NIOInfoProvider.fetchLRMIMonitoringDetails()- Specified by:
enableLRMIMonitoringin interfaceNIOInfoProvider- Throws:
RemoteException
-
disableLRMIMonitoring
Description copied from interface:NIOInfoProviderDisabled lrmi monitoring (gigaspaces internal remoting layer).NIOInfoProvider.enableLRMIMonitoring()- Specified by:
disableLRMIMonitoringin interfaceNIOInfoProvider- Throws:
RemoteException
-
fetchLRMIMonitoringDetails
Description copied from interface:NIOInfoProviderReturn lrmi (gigaspaces internal remoting layer) services monitoring details. This will only work if lrmi monitoring was previously enabled, either by admin API, Jmx or system property.NIOInfoProvider.enableLRMIMonitoring()- Specified by:
fetchLRMIMonitoringDetailsin interfaceNIOInfoProvider- Throws:
RemoteException
-
getCurrentTimestamp
- Specified by:
getCurrentTimestampin interfaceOSInfoProvider- Throws:
RemoteException
-
getOSDetails
- Specified by:
getOSDetailsin interfaceOSInfoProvider- Throws:
RemoteException
-
getOSStatistics
- Specified by:
getOSStatisticsin interfaceOSInfoProvider- Throws:
RemoteException
-
getJVMDetails
- Specified by:
getJVMDetailsin interfaceJVMInfoProvider- Throws:
RemoteException
-
getJVMStatistics
- Specified by:
getJVMStatisticsin interfaceJVMInfoProvider- Throws:
RemoteException
-
runGc
- Specified by:
runGcin interfaceJVMInfoProvider- Throws:
RemoteException
-
getZones
- Specified by:
getZonesin interfaceGridZoneProvider- Throws:
RemoteException
-
getClusterConfigFile
Description copied from interface:IInternalRemoteJSpaceAdminReturns a byte representation of the cluster configuration file.- Specified by:
getClusterConfigFilein interfaceIInternalRemoteJSpaceAdmin- Returns:
- byte representation of the cluster configuration file
- Throws:
RemoteException- if a communication error occurs
-
setClusterConfigFile
Description copied from interface:IInternalRemoteJSpaceAdminset the cluster configuration according to the given byte representation of the configuration file.- Specified by:
setClusterConfigFilein interfaceIInternalRemoteJSpaceAdmin- Parameters:
config- byte representation of the configuration file- Throws:
RemoteException- if a communication error occurs
-
spaceCopy
public SpaceCopyStatus spaceCopy(String remoteUrl, Object template, boolean includeNotifyTemplates, int chunkSize) throws RemoteException Igor.G 13/3/2005 ver 5.01. This method will never invoked! We have an abstraction problem with IRemoteJSpaceAdmin, JSpaceAdminProxy and SpaceInternal, so added this non-impl method only to make compiler happy :(- Specified by:
spaceCopyin interfaceIRemoteJSpaceAdmin- Parameters:
remoteUrl- url of remote space to copy fromtemplate- Entry template or null.includeNotifyTemplates- - if true ALL notify templates will be copied toochunkSize- Chunk size (batch) for this copy operation.- Returns:
- SpaceCopyStatus Contains the status information of spaceCopy operation.
- Throws:
RemoteException- if a communication error occurs
-
spaceCopy
public SpaceCopyStatus spaceCopy(String remoteUrl, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize) throws RemoteException Description copied from interface:IInternalRemoteJSpaceAdminGiven Url of a remote space, Copy all entries/notify templates from the space.Usage: SpaceCopyStatus copyStatus = spaceAdmin.spaceCopy( sourceSpaceURL, template, false ); System.out.println("Copy-Status: " + copyStatus );- Specified by:
spaceCopyin interfaceIInternalRemoteJSpaceAdmin- Parameters:
remoteUrl- url of remote space to copy fromtemplate- EntryPacket template or null.includeNotifyTemplates- - if true ALL notify templates will be copied toochunkSize- Chunk size (batch) for this copy operation.- Returns:
- SpaceCopyStatus Contains the status information of spaceCopy operation.
- Throws:
RemoteException- if a communication error occurs
-
spaceCopy
public SpaceCopyStatus spaceCopy(String remoteUrl, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize, SpaceContext sc) throws RemoteException Description copied from interface:IInternalRemoteJSpaceAdminGiven Url of a remote space, Copy all entries/notify templates from the space.Usage: SpaceCopyStatus copyStatus = spaceAdmin.spaceCopy( sourceSpaceURL, template, false ); System.out.println("Copy-Status: " + copyStatus );- Specified by:
spaceCopyin interfaceIInternalRemoteJSpaceAdmin- Parameters:
remoteUrl- url of remote space to copy fromtemplate- EntryPacket template or null.includeNotifyTemplates- - if true ALL notify templates will be copied toochunkSize- Chunk size (batch) for this copy operation.sc- SpaceContext for security check in the server side.- Returns:
- SpaceCopyStatus Contains the status information of spaceCopy operation.
- Throws:
RemoteException- if a communication error occurs
-
spaceCopy
public SpaceCopyStatus spaceCopy(IJSpace remoteSpace, Object template, boolean includeNotifyTemplates, int chunkSize) throws RemoteException - Specified by:
spaceCopyin interfaceIRemoteJSpaceAdmin- Throws:
RemoteException
-
spaceCopy
public SpaceCopyStatus spaceCopy(IRemoteSpace remoteProxy, String remoteSpaceUrl, String remoteSpaceName, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize, SpaceContext spaceContext, SpaceContext remoteSpaceContext) throws RemoteException Description copied from interface:IInternalRemoteJSpaceAdminGiven ISpaceInternal of a remote space, Copy all entries/notify templates from the space.Usage: SpaceCopyStatus copyStatus = spaceAdmin.spaceCopy( remoteProxy, remoteURL, remoteName, template, false 1000, sc); System.out.println("Copy-Status: " + copyStatus );- Specified by:
spaceCopyin interfaceIInternalRemoteJSpaceAdmin- Parameters:
remoteProxy- ISpaceInternal, a proxy to the remote space to copy fromremoteSpaceUrl- the remote space url.remoteSpaceName- the remote space name.template- A template for identified entries that should be copied.includeNotifyTemplates- - if true ALL notify templates will be copied toochunkSize- Chunk size (batch) for this copy operation.spaceContext- SpaceContext for security check in the server side.remoteSpaceContext- remoteSpaceContext for security check in the server side.- Returns:
- SpaceCopyStatus Contains the status information of spaceCopy operation.
- Throws:
RemoteException- if a communication error occurs
-
getQueryProcessor
- Specified by:
getQueryProcessorin interfaceIRemoteSpace- Throws:
RemoteException
-
renewLease
public void renewLease(TransactionManager mgr, long id, long time) throws LeaseDeniedException, UnknownLeaseException, RemoteException Description copied from interface:TransactionParticipantNotify the transaction participant about transaction lease renewal- Specified by:
renewLeasein interfaceTransactionParticipant- Throws:
LeaseDeniedExceptionUnknownLeaseExceptionRemoteException
-
getSpaceHealthStatus
- Specified by:
getSpaceHealthStatusin interfaceIRemoteSpace- Throws:
RemoteException
-
login
Description copied from interface:RemoteSecuredServiceLogin to a secured service using the providedSecurityContext- Specified by:
loginin interfaceRemoteSecuredService- Parameters:
securityContext- security context to be used for authentication.- Throws:
RemoteException- communication-related exceptions that may occur during the execution of a remote method call.
-
getServiceProxy
Description copied from interface:ServiceProxyAccessorReturns a proxy object for this object. This value should not benull.- Specified by:
getServiceProxyin interfaceServiceProxyAccessor- Returns:
- a proxy object reference
- Throws:
RemoteException
-
connect
- Specified by:
connectin interfaceIRemoteSpace- Throws:
RemoteException
-
forceMoveToPrimary
Description copied from interface:IInternalRemoteJSpaceAdminForcefully make this space to be primary- Specified by:
forceMoveToPrimaryin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
getReplicationRouterConnectionProxy
- Specified by:
getReplicationRouterConnectionProxyin interfaceIRemoteSpace- Throws:
RemoteException
-
getReplicationDump
- Specified by:
getReplicationDumpin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
flushRedoLogToStorage
Description copied from interface:IInternalRemoteJSpaceAdminFlush redo-log packets from memory to underlying storage. Should be called when the space is in quiesce mode.- Specified by:
flushRedoLogToStoragein interfaceIInternalRemoteJSpaceAdmin- Returns:
- number of flushed packets
- Throws:
RemoteException
-
loadRemoteClass
- Specified by:
loadRemoteClassin interfaceIRemoteSpace- Throws:
RemoteExceptionClassNotFoundException
-
executeOperation
public <T extends RemoteOperationResult> T executeOperation(RemoteOperationRequest<T> request) throws RemoteException - Specified by:
executeOperationin interfaceRemoteOperationsExecutor- Throws:
RemoteException
-
executeOperationAsync
public <T extends RemoteOperationResult> T executeOperationAsync(RemoteOperationRequest<T> request) throws RemoteException - Specified by:
executeOperationAsyncin interfaceRemoteOperationsExecutor- Throws:
RemoteException
-
executeOperationOneway
- Specified by:
executeOperationOnewayin interfaceRemoteOperationsExecutor- Throws:
RemoteException
-
isActive
- Specified by:
isActivein interfaceRemoteOperationsExecutor- Throws:
RemoteException
-
isActiveAndNotSuspended
- Specified by:
isActiveAndNotSuspendedin interfaceRemoteOperationsExecutor- Throws:
RemoteException
-
checkChunkMapGeneration
- Specified by:
checkChunkMapGenerationin interfaceRemoteOperationsExecutor
-
isActiveAsync
- Specified by:
isActiveAsyncin interfaceRemoteOperationsExecutor- Throws:
RemoteException
-
getLocalCacheDetails
- Specified by:
getLocalCacheDetailsin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
getLocalViewDetails
- Specified by:
getLocalViewDetailsin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
demote
public void demote(long maxSuspendTime, TimeUnit unit, SpaceContext sc) throws DemoteFailedException, RemoteException Description copied from interface:IRemoteSpaceDemote leadership and become a backup Space, in the specified operation timeout.- Specified by:
demotein interfaceIRemoteSpace- Parameters:
maxSuspendTime- The maximum time allowed to be in suspended state, after which the operation is aborted.unit- The unit of time for the maxSuspendTime parameter.sc- The SpaceContext for security check in the server side.- Throws:
DemoteFailedExceptionRemoteException
-
updateClusterInfo
Description copied from interface:IRemoteJSpaceAdmintrigger read of chunks map from zk and update clusterInfo- Specified by:
updateClusterInfoin interfaceIRemoteJSpaceAdmin- Throws:
RemoteException- if a communication error occurs
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classRemoteStub<IRemoteSpace>- Throws:
IOExceptionClassNotFoundException
-