public class SpaceRuntimeInfo extends Object implements SmartExternalizable
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
| Modifier and Type | Field and Description |
|---|---|
List<String> |
m_ClassNames
List of all the classes' names.
|
List<Integer> |
m_NumOFEntries
List of numbers of entries for each class correlated to
m_ClassNames. |
List<Integer> |
m_NumOFTemplates
List of numbers of pending templates for each class correlated to
m_ClassNames. |
List<Integer> |
m_RamNumOFEntries |
| Constructor and Description |
|---|
SpaceRuntimeInfo()
Empty constructor.
|
SpaceRuntimeInfo(List<String> classNames,
List<Integer> numOfEntries,
List<Integer> numOFTemplates,
List<Integer> ramNumOFEntries,
long diskSize,
long freeSpace,
TieredStorageConfig tieredStorageConfig)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SpaceRuntimeInfo |
appendSpaceRuntimeInfo(SpaceRuntimeInfo spaceRuntimeInfo)
Merge two SpaceRuntimeInfo instances.
|
long |
getDiskSize() |
long |
getFreeSpace() |
TieredStorageConfig |
getTieredStorageConfig() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenabledSmartExternalizableWithReferencepublic List<Integer> m_NumOFEntries
m_ClassNames.public SpaceRuntimeInfo()
public SpaceRuntimeInfo(List<String> classNames, List<Integer> numOfEntries, List<Integer> numOFTemplates, List<Integer> ramNumOFEntries, long diskSize, long freeSpace, TieredStorageConfig tieredStorageConfig)
classNames - list of names of all the classes in the spacenumOfEntries - list of numbers of entries for each class correlated to
classNamespublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic SpaceRuntimeInfo appendSpaceRuntimeInfo(SpaceRuntimeInfo spaceRuntimeInfo)
public long getFreeSpace()
public long getDiskSize()
public TieredStorageConfig getTieredStorageConfig()
Copyright © GigaSpaces.