de.fhg.igd.atlas.core
Class StorageDBImmutableEntry

java.lang.Object
  extended byde.fhg.igd.atlas.core.StorageDBImmutableEntry

public class StorageDBImmutableEntry
extends Object

Represents an immutable StorageDBEntry. This class is used as container for entries of a StorageDB database, which should not be mutable.

Version:
"$Id: StorageDBImmutableEntry.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Peters
See Also:
StorageDBEntry

Field Summary
protected  URL contactAddress_
          The contact address of this entry.
protected  byte[] cookie_
          The cookie of this entry.
protected  byte[] implicitName_
          The implicit name of this entry.
protected  long timestamp_
          The timestamp of this entry.
 
Constructor Summary
StorageDBImmutableEntry(byte[] implicitName, URL contactAddress, byte[] cookie, long timestamp)
          Creates an instance of this class with the given implicitName, contaceAddress, cookie and timestamp.
StorageDBImmutableEntry(StorageDBEntry entry)
          Creates an instance of this class from the given entry.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

implicitName_

protected byte[] implicitName_
The implicit name of this entry.


contactAddress_

protected URL contactAddress_
The contact address of this entry.


cookie_

protected byte[] cookie_
The cookie of this entry.


timestamp_

protected long timestamp_
The timestamp of this entry.

Constructor Detail

StorageDBImmutableEntry

public StorageDBImmutableEntry(StorageDBEntry entry)
Creates an instance of this class from the given entry.

Parameters:
entry - The entry.

StorageDBImmutableEntry

public StorageDBImmutableEntry(byte[] implicitName,
                               URL contactAddress,
                               byte[] cookie,
                               long timestamp)
Creates an instance of this class with the given implicitName, contaceAddress, cookie and timestamp.

Parameters:
implicitName - The implicit name.
contactAddress - The contact address.
cookie - The cookie.
timestamp - The timestamp.
Method Detail

getImplicitName

public byte[] getImplicitName()
Returns the implicit name.

Returns:
The implicit name.

getContactAddress

public URL getContactAddress()
Returns the contact address.

Returns:
The contact address.

getCookie

public byte[] getCookie()
Returns the cookie.

Returns:
The cookie.

getTimestamp

public long getTimestamp()
Returns the timestamp in milliseconds since January 1, 1970, 00:00:00 GMT.

Returns:
The timestamp.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.