Class RemoteKernelServicePortalProxy

java.lang.Object
org.opentcs.access.rmi.services.RemoteKernelServicePortalProxy
All Implemented Interfaces:
KernelServicePortal, ServiceListener

public class RemoteKernelServicePortalProxy
extends java.lang.Object
implements KernelServicePortal, ServiceListener
The default implementation for the KernelServicePortal.
  • Constructor Summary

    Constructors 
    Constructor Description
    RemoteKernelServicePortalProxy​(java.lang.String userName, java.lang.String password, SocketFactoryProvider socketFactoryProvider, java.util.function.Predicate<java.lang.Object> eventFilter)
    Creates a new instance.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.Object> fetchEvents​(long timeout)
    Fetches events buffered for the client.
    DispatcherService getDispatcherService()
    Returns the service a client can use to access methods regarding the dispatcher.
    NotificationService getNotificationService()
    Returns the service a client can use to access methods regarding user notifications.
    PlantModelService getPlantModelService()
    Returns the service a client can use to access methods regarding the plant model.
    RouterService getRouterService()
    Returns the service a client can use to access methods regarding the router.
    SchedulerService getSchedulerService()
    Returns the service a client can use to access methods regarding the scheduler.
    ServiceListener getServiceListener()  
    Kernel.State getState()
    Returns the current state of the kernel.
    TransportOrderService getTransportOrderService()
    Returns the service a client can use to access methods regarding transport orders and order sequences.
    VehicleService getVehicleService()
    Returns the service a client can use to access methods regarding vehicles.
    void login​(java.lang.String hostName, int port)
    Logs in with/establishes a connection to the remote kernel service portal.
    void logout()
    Logs out from/clears the connection to the remote kernel service portal.
    void onServiceUnavailable()
    Notifies a listener that the service is unavailable, i.e. is not in a usable state.
    void publishEvent​(java.lang.Object event)
    Publishes an event.
    org.opentcs.access.rmi.services.AbstractRemoteServiceProxy<R> setServiceListener​(ServiceListener serviceListener)
    Sets the listener that is interested in updates of this service.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait