Package com.j_spaces.core.admin
Interface IInternalRemoteJSpaceAdmin
- All Superinterfaces:
GridZoneProvider,IRemoteJSpaceAdmin,JVMInfoProvider,NIOInfoProvider,OSInfoProvider,Remote
- All Known Implementing Classes:
JSpaceAdminImpl,JSpaceAdminProxy,LRMISpaceImpl,SpaceImpl
public interface IInternalRemoteJSpaceAdmin
extends IRemoteJSpaceAdmin, NIOInfoProvider, OSInfoProvider, JVMInfoProvider, GridZoneProvider
Extends IRemoteJSpaceAdmin to include internal methods.
- Author:
- Guy Korland
-
Field Summary
Fields inherited from interface com.j_spaces.core.admin.IRemoteJSpaceAdmin
REPLICATION_STATUS_ACTIVE, REPLICATION_STATUS_DISABLED, REPLICATION_STATUS_DISCONNECTED -
Method Summary
Modifier and TypeMethodDescriptionaddSpaceModeListener(ISpaceModeListener listener) Adds a listener to be called back withISpaceModeListenermode changes.Adds a listener to be called back withSuspendTypeChangedInternalListenersuspend type changes.intintcountTransactions(int type, int status) voiddisable remote.intFlush redo-log packets from memory to underlying storage.voidForcefully make this space to be primarygetClassDescriptor(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.byte[]Returns a byte representation of the cluster configuration file.Deprecated.Since 10.1 - Use countIncomingConnections insteadgetLockedObjects is called by the GUI.Get the currentSpaceModewhich represents the current state of this participant in the election process.getTemplatesInfo(String className) Returns a list of pending templates.getTransactionsInfo(int type, int status) Returns all the transactions with the specific parameters.booleanvoidremoveSpaceModeListener(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.voidrestart()Deprecated.To restart a space, restart the corresponding processing unit instancevoidsetClusterConfigFile(byte[] config) set the cluster configuration according to the given byte representation of the configuration file.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.voidstart()Deprecated.To stop and start a space, restart the corresponding processing unit instancevoidstop()Deprecated.To stop and start a space, restart the corresponding processing unit instanceMethods inherited from interface com.gigaspaces.grid.zone.GridZoneProvider
getZonesMethods inherited from interface com.j_spaces.core.admin.IRemoteJSpaceAdmin
dropClass, getClassTypeInfo, getClusterPolicy, getConfig, getName, getReplicationStatistics, getReplicationStatus, getRuntimeInfo, getRuntimeInfo, getSpaceInstanceRemoteClassLoaderInfo, getState, ping, spaceCopy, spaceCopy, updateClusterInfoMethods inherited from interface com.gigaspaces.internal.jvm.JVMInfoProvider
getJVMDetails, getJVMStatistics, runGcMethods inherited from interface com.gigaspaces.lrmi.nio.info.NIOInfoProvider
disableLRMIMonitoring, enableLRMIMonitoring, fetchLRMIMonitoringDetails, getNIODetails, getNIOStatisticsMethods inherited from interface com.gigaspaces.internal.os.OSInfoProvider
getCurrentTimestamp, getOSDetails, getOSStatistics
-
Method Details
-
disableStub
disable remote.- Throws:
RemoteException- if a communication error occurs
-
getClusterConfigFile
Returns a byte representation of the cluster configuration file.- Returns:
- byte representation of the cluster configuration file
- Throws:
RemoteException- if a communication error occurs
-
setClusterConfigFile
set the cluster configuration according to the given byte representation of the configuration file.- Parameters:
config- byte representation of the configuration file- Throws:
RemoteException- if a communication error occurs
-
getRuntimeHolder
- Throws:
RemoteException
-
isStartedWithinGSC
- Throws:
RemoteException
-
spaceCopy
SpaceCopyStatus spaceCopy(String remoteUrl, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize) throws RemoteException Given 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 );- 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
SpaceCopyStatus spaceCopy(String remoteUrl, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize, SpaceContext sc) throws RemoteException Given 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 );- 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
SpaceCopyStatus spaceCopy(IRemoteSpace remoteProxy, String remoteSpaceUrl, String remoteSpaceName, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize, SpaceContext spaceContext, SpaceContext remoteSpaceContext) throws RemoteException Given 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 );- 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
-
getTransactionsInfo
Returns all the transactions with the specific parameters.- 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
- Throws:
RemoteException
-
getTemplatesInfo
Returns a list of pending templates.- Parameters:
className- name of the class to search- Returns:
- list of pending template for the given class
- Throws:
RemoteException
-
getConnectionsInfo
Deprecated.Since 10.1 - Use countIncomingConnections instead- Returns:
- returns all the transport connection information for this Space.
- Throws:
RemoteException
-
countIncomingConnections
- Returns:
- returns all the transport connection information for this Space.
- Throws:
RemoteException
-
getLockedObjects
getLockedObjects is called by the GUI. it returns Info about all the locked Object by the given Transaction.- Parameters:
txn- - the Transaction that locks the Objects.- Returns:
- List of UnderTxnLockedObject
- Throws:
RemoteException
-
getSpaceMode
Get 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.- Returns:
- the current
SpaceModeof the space. - Throws:
RemoteException- if an exception occurred executing this remote method.- Since:
- 6.6
-
addSpaceModeListener
Adds 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.- 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.- Since:
- 6.0
- See Also:
-
removeSpaceModeListener
Removes 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.- Parameters:
listener- a listener to be removed.- Throws:
RemoteException- if an exception occurred executing this remote method.- Since:
- 6.0
- See Also:
-
getClassDescriptor
Get 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;- 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
Get 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;- Parameters:
className- - The name of the class to retrieve the information from.asVirtualType-- Returns:
- BasicTypeInfo - Which provides class information.
- Throws:
RemoteException- if a communication error occurs
-
forceMoveToPrimary
Forcefully make this space to be primary- Throws:
RemoteException
-
getReplicationDump
- Throws:
RemoteException
-
flushRedoLogToStorage
Flush redo-log packets from memory to underlying storage. Should be called when the space is in quiesce mode.- Returns:
- number of flushed packets
- Throws:
RemoteException- Since:
- 16.2
-
getLocalCacheDetails
- Throws:
RemoteException- Since:
- 9.5.0
-
getLocalViewDetails
- Throws:
RemoteException- Since:
- 9.5.0
-
start
Deprecated.To stop and start a space, restart the corresponding processing unit instanceAttempt to start this space.Usage: spaceAdmin.start();- Throws:
RemoteException- - Failed to start space.SpaceAlreadyStartedException- - The space is already started
-
stop
Deprecated.To stop and start a space, restart the corresponding processing unit instanceAttempt to stop this space.Usage: spaceAdmin.stop();- Throws:
RemoteException- - Failed to stop space.SpaceAlreadyStoppedException- - The space is already stopped
-
restart
Deprecated.To restart a space, restart the corresponding processing unit instanceRestarts 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); }- Throws:
RemoteException- Failed to restart space.
-
addSpaceSuspendTypeListener
Adds a listener to be called back withSuspendTypeChangedInternalListenersuspend type changes.- Parameters:
listener- -SuspendTypeChangedInternalListenerthat will receive notification when a space suspend type changes (SuspendType)
-
removeSpaceSuspendTypeListener
Removes this listener so that it no longer receives call backs of space suspend type changes.- Parameters:
listener- -SuspendTypeChangedInternalListenerthat will stop receiving notification when a space suspend type changes (SuspendType)
-