public class BlaubotServer
extends java.lang.Object
Constructor and Description |
---|
BlaubotServer(IBlaubotDevice ownDevice,
IBlaubotConnectionAcceptor... acceptors) |
Modifier and Type | Method and Description |
---|---|
void |
addServerLifeCycleListener(IBlaubotServerLifeCycleListener blaubotServerLifeCycleListener)
Adds a listener to the server's lifecycle
|
java.util.List<IBlaubotConnectionAcceptor> |
getAcceptors() |
boolean |
isStarted()
Check the started state
|
static void |
main(java.lang.String[] args) |
void |
removeServerLifeCycleListener(IBlaubotServerLifeCycleListener blaubotServerLifeCycleListener)
Removes a previously attached listener from the server
|
void |
startBlaubotServer()
Starts the blaubot server.
|
void |
stopBlaubotServer()
Stops the blaubot server.
|
public BlaubotServer(IBlaubotDevice ownDevice, IBlaubotConnectionAcceptor... acceptors)
ownDevice
- the own device containing this server's uniqueDeviceIdacceptors
- acceptorspublic void startBlaubotServer()
public void stopBlaubotServer()
public boolean isStarted()
public void removeServerLifeCycleListener(IBlaubotServerLifeCycleListener blaubotServerLifeCycleListener)
blaubotServerLifeCycleListener
- the listener to be removedpublic void addServerLifeCycleListener(IBlaubotServerLifeCycleListener blaubotServerLifeCycleListener)
blaubotServerLifeCycleListener
- the listener to be addedpublic java.util.List<IBlaubotConnectionAcceptor> getAcceptors()
public static void main(java.lang.String[] args)