public class SCaller extends ServiceCaller
busResourceURI, owner, theBus
Constructor and Description |
---|
SCaller(ModuleContext context) |
Modifier and Type | Method and Description |
---|---|
String |
callSPARQL(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(MessageContentSerializerEx 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, sendRequest
close, getComment, getLabel, getType, getURI, setComment, setLabel
public SCaller(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 void executeQuery(String theQuery)
theQuery
- The SPARQL CONSTRUCT querypublic String callSPARQL(String query)
query
- The CONSTRUCT querypublic void setSerializer(MessageContentSerializerEx service)
service
- the parserCopyright © 2018 universAAL Consortium. All rights reserved.