Interface SpaceInstance
- All Superinterfaces:
AdminAware, DiscoverableComponent, GridComponent, MachineAware, OperatingSystemAware, StatisticsMonitor, TransportAware, VirtualMachineAware, ZoneAware
- All Known Subinterfaces:
InternalSpaceInstance
- All Known Implementing Classes:
DefaultSpaceInstance
A Space Instance is a single instance of a space running as a part of a
Space. For
example, when deploying a 2 partitions each with one backup topology, there will be 4 space
instances running.- Author:
- kimchy
-
Field Summary
Fields inherited from interface StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionFuture<?> Demote a primary space instance to backupintReturns the backup id (if it is a topology with backups) of the space instance.Returns the space cluster information.Returns the direct proxy to the actual space instance.getId()Returns the Space instance IdentifierintReturns the instance id of the space (starting from 1).getMode()Returns the space mode, indicating if the space is primary or backup.Returns the partition this instance is part of.Allows to register forReplicationStatusChangedEvents.Returns the replication targets this space instance is replicating to.Returns the space runtime information.getSpace()Returns the space this instance is part of.Get this Space instance String representation.
If the Space is part of a highly-available partition (i.e.Returns information about the space class loadersAllows to register forSpaceModeChangedEvents.Allows to register forSpaceSuspendTypeChangedEvents.Returns the space instance statistics.Allows to register forSpaceInstanceStatisticsChangedEvents.booleanbooleanwaitForMode(SpaceMode requiredMode, long timeout, TimeUnit timeUnit) Waits for the space instance to move to the provided space mode.Methods inherited from interface AdminAware
getAdminMethods inherited from interface DiscoverableComponent
isDiscoveredMethods inherited from interface GridComponent
getUidMethods inherited from interface MachineAware
getMachineMethods inherited from interface OperatingSystemAware
getOperatingSystemMethods inherited from interface StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitorMethods inherited from interface TransportAware
getTransportMethods inherited from interface VirtualMachineAware
getVirtualMachine
-
Method Details
-
getId
-
getSpaceInstanceName
String getSpaceInstanceName()Get this Space instance String representation.
If the Space is part of a highly-available partition (i.e. with backups), returns: {Space name}.{instance/partition id} [backup id] - for example, MySpace.3 [1]
Otherwise, when there are no backups (i.e. only partitioned), returns: {Space name} [instance/partition id] - for example, MySpace [3]- Returns:
- this Space instance String representation.
- Since:
- 8.0.4
-
getClusterInfo
-
getInstanceId
int getInstanceId()Returns the instance id of the space (starting from 1). -
getBackupId
int getBackupId()Returns the backup id (if it is a topology with backups) of the space instance. -
getMode
SpaceMode getMode()Returns the space mode, indicating if the space is primary or backup. -
getSpaceUrl
SpaceURL getSpaceUrl() -
waitForMode
-
getGigaSpace
GigaSpace getGigaSpace()Returns the direct proxy to the actual space instance. -
getStatistics
SpaceInstanceStatistics getStatistics()Returns the space instance statistics. -
getRuntimeDetails
SpaceInstanceRuntimeDetails getRuntimeDetails()Returns the space runtime information. -
getSpace
Space getSpace()Returns the space this instance is part of. -
getPartition
SpacePartition getPartition()Returns the partition this instance is part of. -
getReplicationTargets
ReplicationTarget[] getReplicationTargets()Returns the replication targets this space instance is replicating to. -
getSpaceModeChanged
SpaceModeChangedEventManager getSpaceModeChanged()Allows to register forSpaceModeChangedEvents. -
getSpaceSuspendTypeChanged
SpaceSuspendTypeChangedEventManager getSpaceSuspendTypeChanged()Allows to register forSpaceSuspendTypeChangedEvents. -
getReplicationStatusChanged
ReplicationStatusChangedEventManager getReplicationStatusChanged()Allows to register forReplicationStatusChangedEvents. -
getStatisticsChanged
SpaceInstanceStatisticsChangedEventManager getStatisticsChanged()Allows to register forSpaceInstanceStatisticsChangedEvents.Note, monitoring must be started using
StatisticsMonitor.startStatisticsMonitor()for events to occur. -
getSpaceInstanceRemoteClassLoaderInfo
SpaceInstanceRemoteClassLoaderInfo getSpaceInstanceRemoteClassLoaderInfo()Returns information about the space class loaders -
demote
-
getSuspendInfo
SuspendInfo getSuspendInfo() -
isSecured
boolean isSecured()
-