Package com.j_spaces.core.admin
Class SpaceRuntimeInfo
java.lang.Object
com.j_spaces.core.admin.SpaceRuntimeInfo
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
This class describes the content of the space,
on com.j_spaces.core.admin.IRemoteJSpaceAdmin.getRuntimeInfo() call.
For example:
IJSpace spaceProxy;
...
IRemoteJSpaceAdmin spaceAdmin = spaceProxy.getAdmin();
SpaceRuntimeInfo rtInfo = spaceAdmin.getRuntimeInfo();
String className = rtInfo.m_ClassNames.get(0);
Integer count = rtInfo.m_NumOFEntries.get(0);
System.out.println("ClassName: " + className + ", number of entries: " + count);
The output should be:
ClassName: example.Person, number of entries: 34
- Version:
- 1.0
- Author:
- Igor Goldenberg
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of all the classes' names.List of numbers of entries for each class correlated tom_ClassNames.List of numbers of pending templates for each class correlated tom_ClassNames. -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.SpaceRuntimeInfo(List<String> classNames, List<Integer> numOfEntries, List<Integer> numOFTemplates, List<Integer> ramNumOFEntries, long diskSize, long freeSpace, TieredStorageConfig tieredStorageConfig) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionappendSpaceRuntimeInfo(SpaceRuntimeInfo spaceRuntimeInfo) Merge two SpaceRuntimeInfo instances.longlongvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
m_ClassNames
List of all the classes' names. -
m_NumOFEntries
List of numbers of entries for each class correlated tom_ClassNames. -
m_RamNumOFEntries
-
m_NumOFTemplates
List of numbers of pending templates for each class correlated tom_ClassNames.
-
-
Constructor Details
-
SpaceRuntimeInfo
public SpaceRuntimeInfo()Empty constructor. -
SpaceRuntimeInfo
public SpaceRuntimeInfo(List<String> classNames, List<Integer> numOfEntries, List<Integer> numOFTemplates, List<Integer> ramNumOFEntries, long diskSize, long freeSpace, TieredStorageConfig tieredStorageConfig) Constructor.- Parameters:
classNames- list of names of all the classes in the spacenumOfEntries- list of numbers of entries for each class correlated toclassNames
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
appendSpaceRuntimeInfo
Merge two SpaceRuntimeInfo instances.- Returns:
- merged SpaceRuntimeInfo instance, actually this
-
getFreeSpace
public long getFreeSpace() -
getDiskSize
public long getDiskSize() -
getTieredStorageConfig
- Since:
- 16.2
-