edu.vt.marian.WebGate
Class query

java.lang.Object
  |
  +--edu.vt.marian.WebGate.query

public class query
extends java.lang.Object

Class name: query Class description: this class represent a query of an user Author: Jianxin Zhao Finished time: ????, 1998 Known bugs: none Platform: jdk1.1.5 under UNIX


Constructor Summary
query(java.io.DataInputStream dis, edu.vt.marian.common.Debug debug)
          this constructor will create a query object from a stream, this might be helpful for remote management in the future.
query(java.lang.String dir, edu.vt.marian.common.Debug debug)
          this constructor will create a query object from the specified directory
query(java.lang.String query_number, query_data qd, java.lang.String dir, edu.vt.marian.common.Debug debug)
          this constructor will create a query object from a query number which is managed by the user object and query data which is usually filled by the client
 
Method Summary
 java.lang.String get_creation_time()
          this method will return the time when this query is submitted to the user it belongs to
 long get_inactive_time()
          this method will return the inactive time of this query object, this is used for memory management -- we need to write query information back to disk when this user object is not accessed for some time
 java.lang.String get_number()
          this method will return the number of this query
 query_data get_query_data()
          this method will return the data contents of the query.
 results get_results()
          this method will return the current results of the query
 java.lang.String get_title()
          this method will return the title of this object
 java.lang.String save(java.lang.String dir)
          this method will save the content of this object to the specified file
 java.lang.String set_title(java.lang.String title)
          this method will set the title of this query
 java.lang.String to_stream(java.io.DataOutputStream dos)
          this method will print the content of this object to a stream, might be useful for remote management in the future.
 java.lang.String unload(long time)
          this method will write most of the query information back to disk if the object has been inactive for the specified time, this is used for memory management
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

query

public query(java.lang.String query_number,
             query_data qd,
             java.lang.String dir,
             edu.vt.marian.common.Debug debug)
this constructor will create a query object from a query number which is managed by the user object and query data which is usually filled by the client

query

public query(java.io.DataInputStream dis,
             edu.vt.marian.common.Debug debug)
this constructor will create a query object from a stream, this might be helpful for remote management in the future. (not implemented yet)

query

public query(java.lang.String dir,
             edu.vt.marian.common.Debug debug)
this constructor will create a query object from the specified directory
Method Detail

get_number

public java.lang.String get_number()
this method will return the number of this query

set_title

public java.lang.String set_title(java.lang.String title)
this method will set the title of this query

get_title

public java.lang.String get_title()
this method will return the title of this object

get_query_data

public query_data get_query_data()
this method will return the data contents of the query.

get_creation_time

public java.lang.String get_creation_time()
this method will return the time when this query is submitted to the user it belongs to

get_results

public results get_results()
this method will return the current results of the query

get_inactive_time

public long get_inactive_time()
this method will return the inactive time of this query object, this is used for memory management -- we need to write query information back to disk when this user object is not accessed for some time

unload

public java.lang.String unload(long time)
this method will write most of the query information back to disk if the object has been inactive for the specified time, this is used for memory management

to_stream

public java.lang.String to_stream(java.io.DataOutputStream dos)
this method will print the content of this object to a stream, might be useful for remote management in the future. (not implemented yet)

save

public java.lang.String save(java.lang.String dir)
this method will save the content of this object to the specified file