Package org.opentcs.access.rmi.services
Interface RemoteKernelServicePortal
- All Superinterfaces:
Remote
Declares the methods provided by the
KernelServicePortal
via RMI.-
Method Summary
Modifier and TypeMethodDescriptionfetchEvents
(ClientID clientId, long timeout) Introduce the calling client to the server and authenticate for operations.void
void
publishEvent
(ClientID clientId, Object event)
-
Method Details
-
login
ClientID login(String userName, String password, Predicate<Object> eventFilter) throws CredentialsException, RemoteException Introduce the calling client to the server and authenticate for operations.- Parameters:
userName
- The user's name.password
- The user's password.eventFilter
- The event filter to be applied to events on the server side.- Returns:
- An identification object that is required for subsequent method calls.
- Throws:
CredentialsException
- If authentication with the given username and password failed.RemoteException
- If there was an RMI-related problem.
-
logout
- Throws:
RemoteException
-
getState
- Throws:
RemoteException
-
fetchEvents
- Throws:
RemoteException
-
publishEvent
- Throws:
RemoteException
-