public class TCPCommProvider extends AbstractModule<TCPConfig> implements ICommProvider<TCPConfig>
Communication provider for TCP/IP links
config, eventHandler
Constructor and Description |
---|
TCPCommProvider() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleans up all ressources used by the module when deleted
All persistent resources created by the module should be cleaned
when this is called
|
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
void |
start()
Starts the module with the current configuration.
init() should always be called before start(). |
void |
stop()
Stops the module.
All temporary resources created by the module should be cleaned when this is called (ex: memory, files, connections, etc.) stop() can be called right after init() even if start() hasn't been called. |
getConfiguration, getLocalID, getName, init, isEnabled, loadState, registerListener, saveState, unregisterListener, updateConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getLocalID, getName, init, isEnabled, loadState, registerListener, saveState, unregisterListener, updateConfig
public InputStream getInputStream() throws IOException
getInputStream
in interface ICommProvider<TCPConfig>
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface ICommProvider<TCPConfig>
IOException
public void start() throws SensorHubException
IModule
start
in interface IModule<TCPConfig>
SensorHubException
public void stop() throws SensorHubException
IModule
stop
in interface IModule<TCPConfig>
SensorHubException
public void cleanup() throws SensorHubException
IModule
cleanup
in interface IModule<TCPConfig>
SensorHubException
Copyright © 2015 Sensia Software LLC. All rights reserved.