|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.infoservice.AbstractDatabaseEntry anon.infoservice.MixCascadeExitAddresses
public class MixCascadeExitAddresses
Stores all exit addresses of one MixCasacde
.
Field Summary | |
---|---|
static int |
EXIT_ADDRESS_TTL
The time-to-live of the exit address. |
private long |
m_lastUpdate
The time of the last update. |
private java.lang.String |
m_strCascadeId
The cascade id. |
private java.util.Hashtable |
m_tblAddresses
The list of addresses. |
static java.lang.String |
XML_ATTR_LAST_UPDATE
The last update XML attribute name. |
static java.lang.String |
XML_ATTR_PAYMENT
The payment XML attribute name. |
static java.lang.String |
XML_ELEMENT_ADDRESS_NAME
The exit address XML element name. |
static java.lang.String |
XML_ELEMENT_CONTAINER_NAME
The entry's container XML element name. |
static java.lang.String |
XML_ELEMENT_NAME
The XML element name. |
Fields inherited from class anon.infoservice.AbstractDatabaseEntry |
---|
XML_LAST_UPDATE |
Fields inherited from interface anon.util.IXMLEncodable |
---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION |
Constructor Summary | |
---|---|
|
MixCascadeExitAddresses(org.w3c.dom.Element a_xmlElement)
|
private |
MixCascadeExitAddresses(java.lang.String a_cascadeID)
Constructs a new MixCascadeExitAddress object from a given
mix cascade id. |
Method Summary | |
---|---|
private boolean |
addInetAddress(java.net.InetAddress a_addr)
|
private boolean |
addInetAddress(java.net.InetAddress a_addr,
long a_timestamp)
Adds an address to the list. |
static void |
addInetAddress(java.lang.String a_cascadeID,
java.net.InetAddress a_IPAddress)
|
java.lang.String |
getId()
Returns a unique ID for a database entry. |
long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance. |
long |
getVersionNumber()
Returns version number which is used to determine the more recent infoservice entry, if two entries are compared (higher version number -> more recent entry). |
static boolean |
isValidAddress(java.net.InetAddress a_address)
|
private static boolean |
isValidAddress(java.net.InetAddress a_address,
java.lang.String a_methodName)
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document. |
Methods inherited from class anon.infoservice.AbstractDatabaseEntry |
---|
deletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EXIT_ADDRESS_TTL
public static final java.lang.String XML_ELEMENT_CONTAINER_NAME
public static final java.lang.String XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_ADDRESS_NAME
public static final java.lang.String XML_ATTR_LAST_UPDATE
public static final java.lang.String XML_ATTR_PAYMENT
private long m_lastUpdate
private java.lang.String m_strCascadeId
private java.util.Hashtable m_tblAddresses
Constructor Detail |
---|
private MixCascadeExitAddresses(java.lang.String a_cascadeID)
MixCascadeExitAddress
object from a given
mix cascade id.
a_strCascadeId
- The mix cascade id.public MixCascadeExitAddresses(org.w3c.dom.Element a_xmlElement) throws XMLParseException
XMLParseException
Method Detail |
---|
public java.lang.String getId()
AbstractDatabaseEntry
getId
in class AbstractDatabaseEntry
public long getLastUpdate()
AbstractDatabaseEntry
getLastUpdate
in class AbstractDatabaseEntry
public long getVersionNumber()
AbstractDatabaseEntry
getVersionNumber
in class AbstractDatabaseEntry
public static void addInetAddress(java.lang.String a_cascadeID, java.net.InetAddress a_IPAddress)
public static boolean isValidAddress(java.net.InetAddress a_address)
private static boolean isValidAddress(java.net.InetAddress a_address, java.lang.String a_methodName)
private boolean addInetAddress(java.net.InetAddress a_addr)
private boolean addInetAddress(java.net.InetAddress a_addr, long a_timestamp)
a_addr
- The address to add.
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |