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.
|
ContextEvent |
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. |
addAvailabilitySubscription, busDyingOut, call, call, getAllServices, getMatchingService, getMatchingService, getMatchingService, getMyID, handleReply, inject, inject, removeAvailabilitySubscription, sendCall, sendCall, sendRequest
close, getComment, getLabel, getType, getURI, setComment, setLabel
public CHECaller(ModuleContext context)
public void communicationChannelBroken()
ServiceCaller
communicationChannelBroken
in class ServiceCaller
public void handleResponse(String reqID, ServiceResponse response)
ServiceCaller
ServiceCaller.sendRequest(ServiceRequest)
is ready.handleResponse
in class ServiceCaller
reqID
- the ID returned by the previous call to
ServiceCaller.sendRequest(ServiceRequest)
.response
- the expected response.public ContextEvent executeQuery(String theQuery)
theQuery
- The SPARQL CONSTRUCT queryCopyright © 2018 universAAL Consortium. All rights reserved.