|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.atlas.core.MemoryDBEntry
Entry objects which can be stored in MemoryDB databases.
The implicit name is the unique identifier of an mobile object
for instance the hashcode of its static part. The contact address
should consist of a URL string that specifies the protocol, address,
and port of a management service provided by the server, which is in
possession of the specified object. The cookie is used as authorisation
mechanism within the Location Service Protocol (LSP) permitting a client
to update or delete an entry. The timestamp represents the last
modification time in milliseconds since January 1, 1970, 00:00:00 GMT.
StorageDBEntry| Field Summary | |
protected URL |
contactAddress_
The contact address of this entry. |
protected byte[] |
cookie_
The contact address of this entry. |
protected byte[] |
implicitName_
The implicit name of this entry. |
protected long |
timestamp_
The timestamp of this entry. |
| Constructor Summary | |
MemoryDBEntry(byte[] implicitName,
URL contactAddress,
byte[] cookie)
Creates an instance of this class with the given implicitName, contaceAddress,
cookie and timestamp. |
|
| Method Summary | |
URL |
getContactAddress()
Returns the contact address. |
byte[] |
getCookie()
Returns the cookie. |
byte[] |
getImplicitName()
Returns the implicit name. |
long |
getTimestamp()
Returns the timestamp in milliseconds since January 1, 1970, 00:00:00 GMT. |
void |
touch()
Sets the timestamp of the entry to the current time. |
void |
update(URL contactAddress,
byte[] cookie)
Updates the entry with the given contactAddress
and cookie. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[] implicitName_
protected URL contactAddress_
protected byte[] cookie_
protected long timestamp_
| Constructor Detail |
public MemoryDBEntry(byte[] implicitName,
URL contactAddress,
byte[] cookie)
implicitName, contaceAddress,
cookie and timestamp.
implicitName - The implicit name.contactAddress - The contact address.cookie - The cookie.| Method Detail |
public void update(URL contactAddress,
byte[] cookie)
contactAddress
and cookie.
The timestamp of the entry is set to the current time.
update in interface StorageDBEntrycontactAddress - The contact address.cookie - The cookie.public void touch()
touch in interface StorageDBEntrypublic byte[] getImplicitName()
getImplicitName in interface StorageDBEntrypublic URL getContactAddress()
getContactAddress in interface StorageDBEntrypublic byte[] getCookie()
getCookie in interface StorageDBEntrypublic long getTimestamp()
getTimestamp in interface StorageDBEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||