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
 

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
 void readExternal(ObjectInput in)
          
 String toString()
           
 void writeExternal(ObjectOutput out)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, 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

toString

public String toString()
Overrides:
toString in class Object
Returns:
"Classes"

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