|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for entry objects which can be stored in
StorageDB
databases.
An entry contains all infomation stored in a Location Service Server
(LSServer
) used to locate the identified mobile object.
There exists a mapping between entries of this type and a
StorageDBImmutableEntry
.
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 by the LS-Server 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.
LSServerService
,
StorageDBImmutableEntry
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 . |
Method Detail |
public void update(URL contactAddress, byte[] cookie)
contactAddress
and cookie
.
The timestamp is set to the current time.
contactAddress
- The contact address.cookie
- The cookie.public void touch()
public byte[] getImplicitName()
public URL getContactAddress()
public byte[] getCookie()
public long getTimestamp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |