Package com.j_spaces.core.admin
Class JSpaceAdminProxy
java.lang.Object
com.j_spaces.core.service.ServiceAdminProxy
com.j_spaces.core.admin.JSpaceAdminProxy
- All Implemented Interfaces:
GridZoneProvider,JVMInfoProvider,OSInfoProvider,NIOInfoProvider,IInternalRemoteJSpaceAdmin,IRemoteJSpaceAdmin,StatisticsAdmin,ServiceAdmin,DestroyAdmin,Serializable,Remote,JoinAdmin,ReferentUuid
public class JSpaceAdminProxy
extends ServiceAdminProxy
implements IInternalRemoteJSpaceAdmin, StatisticsAdmin
Copyright (c) 2010 GigaSpaces Technologies Ltd. All rights reserved
The software source code is proprietary and confidential information of GigaSpaces. You may use
the software source code solely under the terms and limitations of The license agreement granted
to you by GigaSpaces.
- See Also:
-
Field Summary
Fields inherited from class com.j_spaces.core.service.ServiceAdminProxy
adminImpl, uuidFields inherited from interface com.j_spaces.core.admin.IRemoteJSpaceAdmin
REPLICATION_STATUS_ACTIVE, REPLICATION_STATUS_DISABLED, REPLICATION_STATUS_DISCONNECTED -
Constructor Summary
Constructors -
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) 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.Return lrmi (gigaspaces internal remoting layer) services monitoring details.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.getClassTypeInfo(String className) Get the basic class information from the space directory.byte[]Returns a byte representation of the cluster configuration file.Return the present ClusterPolicy objects.ReturnsSpaceConfigof this space.longgetLockedObjects is called by the GUI.getMetricSnapshots(Collection<String> prefixes) 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.getSpace()return the defined spaceProxy for this spaceAdmin,nullif setSpace hasn't never invokedReturn the info about the space classloaderGet the currentSpaceModewhich represents the current state of this participant in the election process.intgetState()Returns the particular condition of this space.Returns statistics repository that contains a map of operation codes toStatisticsContextobjects for all filter operation codes.getStatistics(int operationCode) Returns aStatisticsContextfor specific filter operation code.getStatistics(Integer[] operationCodes) Returns statistics repository that contains a map of operation codes toStatisticsContextobjects for passed specific filter operation codes.longChecks statistics sampling rate.String[]Returns a string array contains statistics values for each operation.getTemplatesInfo(String className) Returns a list of pending templates.getTransactionsInfo(int type, int status) Returns all the transactions with the specific parameters.String[]getZones()booleanbooleanChecks if space statistics is available.voidping()Ping to space to see if alive.voidremoveSpaceModeListener(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()IRemoteJSpaceAdmin interfacevoidrunGc()voidsetClusterConfigFile(byte[] config) set the cluster configuration according to the given byte representation of the configuration file.voidset space proxy for this Admin proxy, useally calls by IJSpace.getAdmin() methodvoidsetStatisticsSamplingRate(long rate) Set statistics sampling rate.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 templPacket, 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.Given Url of a remote space, Copy all entries/notify templates from the space.voidstart()Attempt to start this space.voidstop()Attempt to stop this space.voidtrigger read of chunks map from zk and update clusterInfoMethods inherited from class com.j_spaces.core.service.ServiceAdminProxy
addLookupAttributes, addLookupGroups, addLookupLocators, destroy, equals, getInstance, getLookupAttributes, getLookupGroups, getLookupLocators, getReferentUuid, hashCode, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators
-
Constructor Details
-
JSpaceAdminProxy
-
-
Method Details
-
setSpace
set space proxy for this Admin proxy, useally calls by IJSpace.getAdmin() method -
getSpace
return the defined spaceProxy for this spaceAdmin,nullif setSpace hasn't never invoked -
restart
IRemoteJSpaceAdmin interface- 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
-
getName
Description copied from interface:IRemoteJSpaceAdminReturns the Space Name.Usage: spaceAdmin.getName()- Specified by:
getNamein interfaceIRemoteJSpaceAdmin- 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
-
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- Throws:
RemoteException- if a communication error occurs- See Also:
-
disableStub
Description copied from interface:IInternalRemoteJSpaceAdmindisable remote.- Specified by:
disableStubin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException- if a communication error occurs
-
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
-
getRuntimeHolder
- Specified by:
getRuntimeHolderin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
isStartedWithinGSC
- Specified by:
isStartedWithinGSCin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
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
-
getClusterPolicy
Description copied from interface:IRemoteJSpaceAdminReturn the present ClusterPolicy objects.- Specified by:
getClusterPolicyin interfaceIRemoteJSpaceAdmin- Returns:
- a ClusterPolicy that represents current cluster
- Throws:
RemoteException- if a communication error occurs
-
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.
-
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
-
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- See Also:
-
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- See Also:
-
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
-
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:
-
isStatisticsAvailable
Description copied from interface:StatisticsAdminChecks if space statistics is available.- Specified by:
isStatisticsAvailablein interfaceStatisticsAdmin- Returns:
trueif space statistics is available- Throws:
RemoteException- if a communication error occurs
-
getStatisticsStringArray
Description copied from interface:StatisticsAdminReturns a string array contains statistics values for each operation. For example: WRITE count: 10000, average time for last 2 seconds is 4293.1 READ count: 10000, average time for last 2 seconds is 4293.1- Specified by:
getStatisticsStringArrayin interfaceStatisticsAdmin- Returns:
- array of Strings that represents the space statistics
- Throws:
StatisticsNotAvailable- when space statistics are not availableRemoteException- if a communication error occurs
-
setStatisticsSamplingRate
Description copied from interface:StatisticsAdminSet statistics sampling rate.- Specified by:
setStatisticsSamplingRatein interfaceStatisticsAdmin- Parameters:
rate- the rate to sample the space for statistics- Throws:
StatisticsNotAvailable- when space statistics are not availableRemoteException- if a communication error occurs
-
getStatisticsSamplingRate
Description copied from interface:StatisticsAdminChecks statistics sampling rate.- Specified by:
getStatisticsSamplingRatein interfaceStatisticsAdmin- Returns:
- the statistics sampling rate
- Throws:
StatisticsNotAvailable- when space statistics are not availableRemoteException- if a communication error occurs
-
getStatistics
Description copied from interface:StatisticsAdminReturns aStatisticsContextfor specific filter operation code.- Specified by:
getStatisticsin interfaceStatisticsAdmin- Parameters:
operationCode- filter operation code defined inFilterOperationCodes- Returns:
- StatisticsContext for the given operation code
- Throws:
StatisticsNotAvailable- when space statistics are not availableRemoteException- if a communication error occurs- See Also:
-
getHolder
- Specified by:
getHolderin interfaceStatisticsAdmin- Throws:
RemoteException
-
getMetricSnapshots
- Specified by:
getMetricSnapshotsin interfaceStatisticsAdmin- Parameters:
prefixes- collection of metrics prefixes- Returns:
- map of metrics with their values as map values
- Throws:
RemoteException
-
getStatistics
public Map<Integer,StatisticsContext> getStatistics(Integer[] operationCodes) throws RemoteException Description copied from interface:StatisticsAdminReturns statistics repository that contains a map of operation codes toStatisticsContextobjects for passed specific filter operation codes.- Specified by:
getStatisticsin interfaceStatisticsAdmin- Parameters:
operationCodes- filter array of operation codes defined inFilterOperationCodes- Returns:
- map of operation codes to
StatisticsContext - Throws:
StatisticsNotAvailable- when space statistics are not availableRemoteException- if a communication error occurs
-
getStatistics
Description copied from interface:StatisticsAdminReturns statistics repository that contains a map of operation codes toStatisticsContextobjects for all filter operation codes.- Specified by:
getStatisticsin interfaceStatisticsAdmin- Returns:
- map of operation codes to
StatisticsContext - Throws:
StatisticsNotAvailable- when space statistics are not availableRemoteException- if a communication error occurs
-
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 Description copied from interface:IRemoteJSpaceAdminGiven 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 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 templPacket, 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 fromtemplPacket- 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(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
-
spaceCopy
public SpaceCopyStatus spaceCopy(IJSpace remoteProxy, Object template, boolean includeNotifyTemplates, int chunkSize) throws RemoteException - Specified by:
spaceCopyin interfaceIRemoteJSpaceAdmin- 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:
-
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
-
forceMoveToPrimary
Description copied from interface:IInternalRemoteJSpaceAdminForcefully make this space to be primary- Specified by:
forceMoveToPrimaryin interfaceIInternalRemoteJSpaceAdmin- 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
-
getLocalCacheDetails
- Specified by:
getLocalCacheDetailsin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
getLocalViewDetails
- Specified by:
getLocalViewDetailsin interfaceIInternalRemoteJSpaceAdmin- Throws:
RemoteException
-
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
-