public interface SpaceInstance extends GridComponent, StatisticsMonitor
Space
. For
example, when deploying a 2 partitions each with one backup topology, there will be 4 space
instances running.DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL
Modifier and Type | Method and Description |
---|---|
int |
getBackupId()
Returns the backup id (if it is a topology with backups) of the space instance.
|
ClusterInfo |
getClusterInfo()
Returns the space cluster information.
|
GigaSpace |
getGigaSpace()
Returns the direct proxy to the actual space instance.
|
String |
getId()
Returns the Space instance Identifier
|
int |
getInstanceId()
Returns the instance id of the space (starting from 1).
|
SpaceMode |
getMode()
Returns the space mode, indicating if the space is primary or backup.
|
SpacePartition |
getPartition()
Returns the partition this instance is part of.
|
ReplicationStatusChangedEventManager |
getReplicationStatusChanged()
Allows to register for
ReplicationStatusChangedEvent s. |
ReplicationTarget[] |
getReplicationTargets()
Returns the replication targets this space instance is replicating to.
|
SpaceInstanceRuntimeDetails |
getRuntimeDetails()
Returns the space runtime information.
|
Space |
getSpace()
Returns the space this instance is part of.
|
String |
getSpaceInstanceName()
Get this Space instance String representation.
If the Space is part of a highly-available partition (i.e. |
SpaceInstanceRemoteClassLoaderInfo |
getSpaceInstanceRemoteClassLoaderInfo()
Returns information about the space class loaders
|
SpaceModeChangedEventManager |
getSpaceModeChanged()
Allows to register for
SpaceModeChangedEvent s. |
SpaceURL |
getSpaceUrl() |
SpaceInstanceStatistics |
getStatistics()
Returns the space instance statistics.
|
SpaceInstanceStatisticsChangedEventManager |
getStatisticsChanged()
Allows to register for
SpaceInstanceStatisticsChangedEvent s. |
boolean |
waitForMode(SpaceMode requiredMode,
long timeout,
TimeUnit timeUnit)
Waits for the space instance to move to the provided space mode.
|
getUid
isDiscovered
getAdmin
getMachine
getTransport
getOperatingSystem
getVirtualMachine
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
String getId()
String getSpaceInstanceName()
ClusterInfo getClusterInfo()
int getInstanceId()
int getBackupId()
SpaceMode getMode()
SpaceURL getSpaceUrl()
boolean waitForMode(SpaceMode requiredMode, long timeout, TimeUnit timeUnit)
true
if
the mode was changed to the required one withing the timeout, or false
otherwise.GigaSpace getGigaSpace()
SpaceInstanceStatistics getStatistics()
SpaceInstanceRuntimeDetails getRuntimeDetails()
Space getSpace()
SpacePartition getPartition()
ReplicationTarget[] getReplicationTargets()
SpaceModeChangedEventManager getSpaceModeChanged()
SpaceModeChangedEvent
s.ReplicationStatusChangedEventManager getReplicationStatusChanged()
ReplicationStatusChangedEvent
s.SpaceInstanceStatisticsChangedEventManager getStatisticsChanged()
SpaceInstanceStatisticsChangedEvent
s.
Note, monitoring must be started using StatisticsMonitor.startStatisticsMonitor()
for events to
occur.
SpaceInstanceRemoteClassLoaderInfo getSpaceInstanceRemoteClassLoaderInfo()
Copyright © GigaSpaces.