|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.directory.NameRecord
A record kept corresponding to a named resource, including its guid and current address. Note we delibrately separate the guid and its location (address), so a named resource can migrate without changing its guid.
Field Summary | |
protected Address |
_address
|
protected Id |
_guid
|
protected java.lang.Object |
_object
|
private static long |
serialVersionUID
|
Fields inherited from interface solar.SolarConstants |
ADVERTISEMENT_SVID, ATTRIBUTE_RECORD_SVID, ATTRIBUTE_SVID, FILTER_CONFIG_SVID, FILTER_SPEC_SVID, GRAPH_SPEC_SVID, GUID_SVID, HEADER_SVID, ID_SVID, NAME_RECORD_SVID, PACK_POLICY_SVID, PIPE_SPEC_SVID, REQUEST_SVID, RPCACK_SVID |
Constructor Summary | |
NameRecord(Id guid,
Address address)
Construct a name record with its guid and current contact address. |
|
NameRecord(Id guid,
Address address,
java.lang.Object obj)
Construct a name record with additional application-specific object. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Check whether two objects are equivalent name records. |
Address |
getAddress()
Return the current contact address of corresponding name. |
Id |
getId()
Return the guid of corresponding name. |
java.lang.Object |
getObject()
Get the app-specific object registed with this name. |
java.lang.String |
toString()
Return the string representation of this name record. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
protected Id _guid
protected Address _address
protected java.lang.Object _object
Constructor Detail |
public NameRecord(Id guid, Address address)
public NameRecord(Id guid, Address address, java.lang.Object obj)
Method Detail |
public Id getId()
public Address getAddress()
public java.lang.Object getObject()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |