Package org.opentcs.access.rmi.services
Class RemoteQueryServiceProxy
java.lang.Object
org.opentcs.access.rmi.services.RemoteQueryServiceProxy
- All Implemented Interfaces:
QueryService
public class RemoteQueryServiceProxy extends java.lang.Object implements QueryService
The default implementation of the query service.
Delegates method invocations to the corresponding remote service.
-
Constructor Summary
Constructors Constructor Description RemoteQueryServiceProxy() -
Method Summary
Modifier and Type Method Description <T> Tquery(Query<T> query)Executes a query with the kernel and delivers the result.org.opentcs.access.rmi.services.AbstractRemoteServiceProxy<R>setServiceListener(ServiceListener serviceListener)Sets the listener that is interested in updates of this service.
-
Constructor Details
-
RemoteQueryServiceProxy
public RemoteQueryServiceProxy()
-
-
Method Details
-
query
Description copied from interface:QueryServiceExecutes a query with the kernel and delivers the result.- Specified by:
queryin interfaceQueryService- Type Parameters:
T- The query/result type.- Parameters:
query- The query/parameter object.- Returns:
- The query result.
-
setServiceListener
public org.opentcs.access.rmi.services.AbstractRemoteServiceProxy<R> setServiceListener(ServiceListener serviceListener)Sets the listener that is interested in updates of this service.- Parameters:
serviceListener- The service listener.- Returns:
- This remote service proxy.
-