
public class CHECaller extends ServiceCaller
busResourceURI, owner, theBus| Constructor and Description |
|---|
CHECaller(ModuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
callDoSPARQL(String query)
Call the CHE service
|
void |
communicationChannelBroken()
This abstract method is called for each member of the bus when the bus is
being stopped.
|
void |
executeQuery(String theQuery)
Execute a SPARQL CONSTRUCT query on the CHE that will return a reasoned
event.
|
void |
handleResponse(String reqID,
ServiceResponse response)
Will be called automatically in a new thread whenever the response
corresponding to a previous call to
ServiceCaller.sendRequest(ServiceRequest)
is ready. |
void |
setSerializer(MessageContentSerializer service)
Set a MessageContentSerializer to be used when parsing the serialized
returned event
|
addAvailabilitySubscription, busDyingOut, call, call, getAllServices, getMatchingService, getMatchingService, getMatchingService, getMyID, handleReply, inject, inject, removeAvailabilitySubscription, sendCall, sendCall, sendRequestclose, getComment, getLabel, getType, getURI, setComment, setLabelpublic CHECaller(ModuleContext context)
public void communicationChannelBroken()
ServiceCallercommunicationChannelBroken in class ServiceCallerpublic void handleResponse(String reqID, ServiceResponse response)
ServiceCallerServiceCaller.sendRequest(ServiceRequest)
is ready.handleResponse in class ServiceCallerreqID - the ID returned by the previous call to
ServiceCaller.sendRequest(ServiceRequest).response - the expected response.public void executeQuery(String theQuery)
theQuery - The SPARQL CONSTRUCT querypublic String callDoSPARQL(String query)
query - The CONSTRUCT querypublic void setSerializer(MessageContentSerializer service)
service - the parserCopyright © 2018 universAAL Consortium. All rights reserved.