public class PerformanceInfo extends AbstractCertifiedDatabaseEntry implements IXMLEncodable
getLowestCommonBoundEntry(String)
Modifier and Type | Field and Description |
---|---|
private MultiCertPath |
m_certPath |
private java.util.Hashtable |
m_entries
All PerformanceEntry objects measured by the info service
|
private java.lang.String |
m_id
The id of the entry - should be a Info Service Id
|
private long |
m_lastUpdate
Last Update time of the database entry
|
private long |
m_serial
Serial number of the database entry
|
private XMLSignature |
m_signature |
private org.w3c.dom.Element |
m_xmlData
Stored XML data for toXmlElement()
|
private static double |
PERFORMANCE_INFO_MIN_PERCENTAGE_OF_VALID_ENTRIES |
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 |
XML_ATTR_LAST_UPDATE, XML_LAST_UPDATE
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
MultiCertPath |
getCertPath() |
private PerformanceEntry |
getEntry(java.lang.String a_id)
Returns a performance entry for the giving Cascade.
|
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
|
private static int |
getMajorityBoundFromSortedBounds(java.util.Vector a_vecSortedIntegers,
int a_default) |
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 |
isValid() |
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
|
checkId
deletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime, setExpireTime
private static final double PERFORMANCE_INFO_MIN_PERCENTAGE_OF_VALID_ENTRIES
private long m_lastUpdate
private long m_serial
private java.lang.String m_id
private org.w3c.dom.Element m_xmlData
private XMLSignature m_signature
private MultiCertPath m_certPath
private java.util.Hashtable m_entries
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
public PerformanceInfo(org.w3c.dom.Element a_info) throws XMLParseException
a_info
- The XML dataXMLParseException
public XMLSignature getSignature()
getSignature
in interface ICertifiedDatabaseEntry
getSignature
in class AbstractCertifiedDatabaseEntry
public MultiCertPath getCertPath()
getCertPath
in interface ICertifiedDatabaseEntry
getCertPath
in class AbstractCertifiedDatabaseEntry
public boolean isVerified()
AbstractCertifiedDatabaseEntry
isVerified
in interface ICertifiedDatabaseEntry
isVerified
in class AbstractCertifiedDatabaseEntry
public boolean isValid()
isValid
in interface ICertifiedDatabaseEntry
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
private PerformanceEntry getEntry(java.lang.String a_id)
a_id
- The cascade idgetLowestCommonBoundEntry(String)
public static PerformanceEntry getLowestCommonBoundEntry(java.lang.String a_cascadeId)
a_cascadeId
- Id of the cascadeprivate static int getMajorityBoundFromSortedBounds(java.util.Vector a_vecSortedIntegers, int a_default)
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
toXmlElement
in interface IXMLEncodable
a_doc
- a documentCopyright © 2023. All rights reserved.