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

Constructor Index

 o 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.
 o ServiceEntry(long, String, long)
 o ServiceEntry(String, long, String, long)

Method Index

 o 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
 o getHeartBeat()
 o getid()
 o getNumID()
long getNumID() ** Accessor method for the numerical sequence ID
 o getXML()
String getXML() ** Accessor method to the XML description
 o getXML(String)
String getXML(String) ** Accessor method that automatically paged in documents
 o pageinXML(String)
void pageinXML(String storeDir) ** Method to bring back the XML document text value into memory.
 o toString()
Vector getHashList() ** method to return the list of backpointer hashtables
 o updateTime(long)

Constructors

 o 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
 o ServiceEntry
 public ServiceEntry(long count,
                     String xmltext,
                     long lastHeartBeat) throws XSetException
 o ServiceEntry
 public ServiceEntry(String stringid,
                     long count,
                     String xmltext,
                     long lastHeartBeat) throws XSetException

Methods

 o updateTime
 public void updateTime(long newHeartBeat)
 o getHeartBeat
 public long getHeartBeat()
 o getid
 public String getid()
 o getNumID
 public long getNumID()
long getNumID() ** Accessor method for the numerical sequence ID

Returns:
The sequencer ID as a long
 o toString
 public String toString()
Vector getHashList() ** method to return the list of backpointer hashtables

Returns:
Vector of hashtable backpointers
Overrides:
toString in class Object
 o 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
 o getXML
 public String getXML(String datafilePath)
String getXML(String) ** Accessor method that automatically paged in documents

Returns:
the XML description as a String
 o 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

 o 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