All Packages Class Hierarchy This Package Previous Next Index
Class ninja.xset.ServiceEntry
java.lang.Object
|
+----ninja.xset.ServiceEntry
- public class ServiceEntry
- extends Object
- implements Serializable
-
ServiceEntry(long, Document, long)
- NOTE: There could be problems in the hashing of identical XML
but with different spacing into different service IDs
Note that the hashing of the DOM object is actually hashing a
canonical XML output that I generate.
-
ServiceEntry(long, String, long)
-
-
ServiceEntry(String, long, String, long)
-
-
evictXML()
- void evictXML() **
method to evict the XML document from memory for memory savings
This is done by setting the description variable to null
The document can be brought back on a read fault using pageinXML
-
getHeartBeat()
-
-
getid()
-
-
getNumID()
- long getNumID() **
Accessor method for the numerical sequence ID
-
getXML()
- String getXML() **
Accessor method to the XML description
-
getXML(String)
- String getXML(String) **
Accessor method that automatically paged in documents
-
pageinXML(String)
- void pageinXML(String storeDir) **
Method to bring back the XML document text value into memory.
-
toString()
- Vector getHashList() **
method to return the list of backpointer hashtables
-
updateTime(long)
-
ServiceEntry
public ServiceEntry(long count,
Document d,
long lastHeartBeat) throws XSetException
- NOTE: There could be problems in the hashing of identical XML
but with different spacing into different service IDs
Note that the hashing of the DOM object is actually hashing a
canonical XML output that I generate. Should fix this by
adding a canonical XML transformer in SETutils.
- Parameters:
- count - The numerical id given to this XML doc by XSet
- d - The DOM object that represents the XML string
- lastHeartBeat - The last recorded heartbeat time for this doc
- Throws: Thrown
- if the hasher algorithm does not exist
ServiceEntry
public ServiceEntry(long count,
String xmltext,
long lastHeartBeat) throws XSetException
ServiceEntry
public ServiceEntry(String stringid,
long count,
String xmltext,
long lastHeartBeat) throws XSetException
updateTime
public void updateTime(long newHeartBeat)
getHeartBeat
public long getHeartBeat()
getid
public String getid()
getNumID
public long getNumID()
- long getNumID() **
Accessor method for the numerical sequence ID
- Returns:
- The sequencer ID as a long
toString
public String toString()
- Vector getHashList() **
method to return the list of backpointer hashtables
- Returns:
- Vector of hashtable backpointers
- Overrides:
- toString in class Object
getXML
public String getXML() throws SEntryFaultException
- String getXML() **
Accessor method to the XML description
- Returns:
- the XML description as a String
- Throws: SEntryFaultException
- indicates XML has been paged out
getXML
public String getXML(String datafilePath)
- String getXML(String) **
Accessor method that automatically paged in documents
- Returns:
- the XML description as a String
evictXML
public void evictXML()
- void evictXML() **
method to evict the XML document from memory for memory savings
This is done by setting the description variable to null
The document can be brought back on a read fault using pageinXML
pageinXML
public void pageinXML(String storeDir)
- void pageinXML(String storeDir) **
Method to bring back the XML document text value into memory.
Looks for a .xml file with the docnum as the name
All Packages Class Hierarchy This Package Previous Next Index