|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.rodex.p2p.protocol.QEP
public class QEP
Method Summary | |
---|---|
boolean |
checkQualityIndicator(QueryDescription qd)
Check if query execution can meet the expected quality indicator |
static ASG |
deserialiseASG(Root asgXML)
Deserialise an ASG from its XML representation |
AbstractMessage |
executeQuery(AbstractMessage request)
Execute query and return result (server-side). |
static QEP |
getQEPInstance(AutoMedPeer mainPeer)
Return a single QEP instance per JVM |
void |
replySODefinition(AbstractMessage request,
ResponseHandler outputHandler)
Look up the definition queries for a schema object and return it to the requesting peer. |
void |
requestSODefinition(QuerySubGoal qsg,
AutoMedPeer.PeerProcessDescription destPeer)
Request the query definitions for a schema object (represented by a QuerySubGoal object |
AbstractMessage |
sendQuery(QueryDescription queryDesc,
AutoMedPeer.PeerProcessDescription destPeer)
Send a query to the network for execution (client-side) |
static Root |
serialiseASG(ASG q)
Serialise an ASG query into XML representation |
static Root |
serialiseASG(java.util.List asgs)
Serialise an ASG query into XML representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static QEP getQEPInstance(AutoMedPeer mainPeer)
public AbstractMessage sendQuery(QueryDescription queryDesc, AutoMedPeer.PeerProcessDescription destPeer) throws CommunicationException, AutoMedException
queryDesc
- a QueryDescription
object of the query to be sentdestPeer
- a AutoMedPeer.PeerProcessDescription
object of the destination peer to which
the query is sent
AbstractMessage
result of query execution
CommunicationException
AutoMedException
public static Root serialiseASG(ASG q) throws AutoMedTreeException
AutoMedTreeException
public static Root serialiseASG(java.util.List asgs) throws AutoMedTreeException
AutoMedTreeException
public static ASG deserialiseASG(Root asgXML) throws AutoMedTreeException
AutoMedTreeException
public AbstractMessage executeQuery(AbstractMessage request)
request
- AbstractMessage
received from the network
AbstractMessage
the message to send back to clientpublic void requestSODefinition(QuerySubGoal qsg, AutoMedPeer.PeerProcessDescription destPeer) throws CommunicationException, UnsuccessfulReplyException
QuerySubGoal
object
CommunicationException
UnsuccessfulReplyException
public void replySODefinition(AbstractMessage request, ResponseHandler outputHandler) throws CommunicationException
CommunicationException
public boolean checkQualityIndicator(QueryDescription qd) throws AutoMedException
AutoMedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |