GigaSpaces XAP 8.0 API

com.j_spaces.core.admin
Class SpaceRuntimeInfo

java.lang.Object
  extended by com.j_spaces.core.admin.SpaceRuntimeInfo
All Implemented Interfaces:
Externalizable, Serializable

public class SpaceRuntimeInfo
extends Object
implements Externalizable

 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:
Serialized Form

Field Summary
 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.
 
Constructor Summary
SpaceRuntimeInfo()
          Empty constructor.
SpaceRuntimeInfo(List<String> classNames, List<Integer> numOfEntries, List<Integer> numOFTemplates)
          Constructor.
 
Method Summary
 SpaceRuntimeInfo appendSpaceRuntimeInfo(SpaceRuntimeInfo spaceRuntimeInfo)
          Merge two SpaceRuntimeInfo instances.
 void readExternal(ObjectInput in)
          
 void writeExternal(ObjectOutput out)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_ClassNames

public List<String> m_ClassNames
List of all the classes' names.


m_NumOFEntries

public List<Integer> m_NumOFEntries
List of numbers of entries for each class correlated to m_ClassNames.


m_NumOFTemplates

public List<Integer> m_NumOFTemplates
List of numbers of pending templates for each class correlated to m_ClassNames.

Constructor Detail

SpaceRuntimeInfo

public SpaceRuntimeInfo()
Empty constructor.


SpaceRuntimeInfo

public SpaceRuntimeInfo(List<String> classNames,
                        List<Integer> numOfEntries,
                        List<Integer> numOFTemplates)
Constructor.

Parameters:
classNames - list of names of all the classes in the space
numOfEntries - list of numbers of entries for each class correlated to classNames
Method Detail

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

appendSpaceRuntimeInfo

public SpaceRuntimeInfo appendSpaceRuntimeInfo(SpaceRuntimeInfo spaceRuntimeInfo)
Merge two SpaceRuntimeInfo instances.

Parameters:
spaceRuntimeInfo -
Returns:
merged SpaceRuntimeInfo instance, actually this

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.