|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanon.infoservice.AbstractDatabaseEntry
anon.infoservice.AbstractCertifiedDatabaseEntry
anon.infoservice.PerformanceInfo
public class PerformanceInfo
A PerformanceInfo object holds all PerformanceEntry objects retrieved by a certain Info Service through the /performanceinfo command. It is stored in the JAP client database using the id of the Info Service. To access the data the static method getAverageEntry should be used rather accessing the database directly! This way it is ensured that the entry is derived from all available Info Services.
getLowestCommonBoundEntry(String)| Field Summary | |
|---|---|
static int |
PERFORMANCE_INFO_TTL
|
static java.lang.String |
XML_ATTR_ID
|
static java.lang.String |
XML_ELEMENT_CONTAINER_NAME
|
static java.lang.String |
XML_ELEMENT_NAME
|
| Fields inherited from class anon.infoservice.AbstractDatabaseEntry |
|---|
XML_ATTR_LAST_UPDATE, XML_LAST_UPDATE |
| Fields inherited from interface anon.util.IXMLEncodable |
|---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_VERSION |
| Constructor Summary | |
|---|---|
PerformanceInfo(org.w3c.dom.Element a_info)
Creates a new PerformanceInfo object from an XML element which is usually either retrieved from the Info Service or stored in the configuration file and loaded at startup. |
|
| Method Summary | |
|---|---|
anon.crypto.MultiCertPath |
getCertPath()
|
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. |
static PerformanceEntry |
getLowestCommonBoundEntry(java.lang.String a_cascadeId)
Loops through all PerformanceInfo objects from the different Info Services and returns a new PerformanceEntry for the given cascade with the lowest common boundary |
anon.crypto.XMLSignature |
getSignature()
|
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). |
boolean |
isVerified()
Returns if this entry has been verified with a certificate chain. |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Returns an XML Node of the current PerformanceInfo using the stored XML data |
| Methods inherited from class anon.infoservice.AbstractCertifiedDatabaseEntry |
|---|
checkId |
| Methods inherited from class anon.infoservice.AbstractDatabaseEntry |
|---|
getCreationTime, getExpireTime, isNewerThan, 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 java.lang.String XML_ATTR_ID
public static final java.lang.String XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_CONTAINER_NAME
public static final int PERFORMANCE_INFO_TTL
| Constructor Detail |
|---|
public PerformanceInfo(org.w3c.dom.Element a_info)
throws anon.util.XMLParseException
a_info - The XML data
anon.util.XMLParseException| Method Detail |
|---|
public anon.crypto.XMLSignature getSignature()
getSignature in interface ICertifiedDatabaseEntrygetSignature in class AbstractCertifiedDatabaseEntrypublic anon.crypto.MultiCertPath getCertPath()
getCertPath in interface ICertifiedDatabaseEntrygetCertPath in class AbstractCertifiedDatabaseEntrypublic boolean isVerified()
AbstractCertifiedDatabaseEntry
isVerified in interface ICertifiedDatabaseEntryisVerified in class AbstractCertifiedDatabaseEntrypublic java.lang.String getId()
AbstractDatabaseEntry
getId in class AbstractDatabaseEntrypublic long getLastUpdate()
AbstractDatabaseEntry
getLastUpdate in class AbstractDatabaseEntrypublic long getVersionNumber()
AbstractDatabaseEntry
getVersionNumber in class AbstractDatabaseEntrypublic static PerformanceEntry getLowestCommonBoundEntry(java.lang.String a_cascadeId)
a_cascadeId - Id of the cascade
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
toXmlElement in interface anon.util.IXMLEncodablea_doc - a document
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||