|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.reggie.EntryClass
public class EntryClass
An EntryClass is a descriptor for an entry class, packaged up for transmission between client-side proxies and the registrar server. Instances are never visible to clients, they are private to the communication between the proxies and the server. Note that we don't transmit information about interfaces implemented by the class, because it isn't necessary given the specific use of type information for entries.
This class only has a bare minimum of methods, to minimize the amount of code downloaded into clients.
ClassMapper
,
Serialized FormField Summary | |
---|---|
protected long |
hash
Hash for the type |
protected String |
name
Class name |
protected int |
numFields
Number of public fields |
protected int |
numInstances
Number of instances of this class in service registrations |
protected int |
numTemplates
Number of templates of this class in event registrations |
protected EntryClass |
replacement
An instance containing only name and hash, no superclass info. |
protected EntryClass |
superclass
Descriptor for the superclass |
Constructor Summary | |
---|---|
EntryClass(Class clazz,
EntryClass superclass)
Should only be called by ClassMapper |
Method Summary | |
---|---|
boolean |
equals(Object o)
Returns true if the object passed in is an instance of EntryClass with the same type hash as this object. |
String |
getName()
Returns the name of this type |
int |
getNumFields()
Return the number of public fields (including superclasses) |
int |
getNumInstances()
Returns the number of times this type is used in service registrations |
int |
getNumTemplates()
Returns the number of times this type is used in event registrations |
EntryClass |
getReplacement()
Return the replacement, if any, containing only name and rep. |
EntryClass |
getSuperclass()
Return the superclass descriptor |
int |
hashCode()
Return a hashcode for this type. |
boolean |
isAssignableFrom(EntryClass cls)
This is really only needed in the registrar, but it's very convenient to have here. |
void |
setNumInstances(int numInstances)
Set the number of instances of this class |
void |
setNumTemplates(int numTemplates)
Set the number of templates of this class |
Class |
toClass(String codebase)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String name
protected long hash
protected EntryClass superclass
protected int numFields
protected transient int numInstances
protected transient int numTemplates
protected transient EntryClass replacement
Constructor Detail |
---|
public EntryClass(Class clazz, EntryClass superclass) throws MarshalException
MarshalException
Method Detail |
---|
public EntryClass getSuperclass()
public int getNumFields()
public void setNumInstances(int numInstances)
public void setNumTemplates(int numTemplates)
public EntryClass getReplacement()
public boolean isAssignableFrom(EntryClass cls)
Class.isAssignableFrom(java.lang.Class>)
public int getNumInstances()
public int getNumTemplates()
public Class toClass(String codebase) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public String getName()
public boolean equals(Object o)
equals
in class Object
o
- object to compare this object against
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |