|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.apelonserver.client.ServerConnection
public abstract class ServerConnection
A ServerConnection provides the connection from the client to the server. A client should first create a ServerConnection using one of the implmentations such as ServerConnectionJDBC or ServerConnectionSocket. The particular ServerConnection established is then passed into the createInstance methods of the service class like SearchServer, NavServer, NamespaceQuery, ConceptDefQUery
Constructor Summary | |
---|---|
ServerConnection()
|
Method Summary | |
---|---|
void |
close()
Close the connection |
protected abstract String |
executeQueryRemote(String query)
|
String |
ping()
Ping the server |
void |
setQueryServer(Class qs,
String header)
This purpose of method builds the query server pool and assicates query server with header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerConnection()
Method Detail |
---|
public void close() throws Exception
Exception
- thrown if there is an error during close of server
connectionprotected abstract String executeQueryRemote(String query) throws Exception
Exception
public String ping()
public void setQueryServer(Class qs, String header) throws ClassNotFoundException
header
- query server header to be assoicated with query server
class.
ClassNotFoundException
- thrown if there is no query server class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |