|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--edu.vt.marian.WebGate.query
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 |
public query(java.lang.String query_number,
query_data qd,
java.lang.String dir,
edu.vt.marian.common.Debug debug)
public query(java.io.DataInputStream dis,
edu.vt.marian.common.Debug debug)
public query(java.lang.String dir,
edu.vt.marian.common.Debug debug)
| Method Detail |
public java.lang.String get_number()
public java.lang.String set_title(java.lang.String title)
public java.lang.String get_title()
public query_data get_query_data()
public java.lang.String get_creation_time()
public results get_results()
public long get_inactive_time()
public java.lang.String unload(long time)
public java.lang.String to_stream(java.io.DataOutputStream dos)
public java.lang.String save(java.lang.String dir)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||