org.robokind.api.messaging.services
Interface RemoteServiceClient<Config>
- Type Parameters:
Config - type of configuration used to initialize the Service.
- All Superinterfaces:
- Playable
- All Known Implementing Classes:
- DefaultServiceClient
public interface RemoteServiceClient<Config>
- extends Playable
RemoteServiceClient is an interface for controlling a Service through Messaging.
RemoteServiceClient extends Playable, offering methods to start, pause, resume,
and stop the service.
- Author:
- Matthew Stevenson
| Methods inherited from interface org.robokind.api.common.playable.Playable |
addPlayableListener, complete, getElapsedPauseTime, getElapsedPlayTime, getPauseTime, getPlayState, getResumeTime, getStartTime, getStopTime, pause, removePlayableListener, resume, start, stop |
initialize
void initialize(Config config)
throws Exception
- Initializes the Service with the given config.
- Parameters:
config - the configuration object used to initialize the Service
- Throws:
Exception - if there is an error initializing
setCommandSender
void setCommandSender(MessageSender<ServiceCommand> sender)
setConfigSender
void setConfigSender(MessageSender<Config> sender)
setErrorReceiver
void setErrorReceiver(MessageAsyncReceiver<ServiceError> receiver)
setCommandFactory
void setCommandFactory(ServiceCommandFactory factory)
getClientId
String getClientId()
getHostId
String getHostId()
Copyright © 2011-2012. All Rights Reserved.