public class UDPCommProvider extends AbstractModule<UDPCommProviderConfig> implements ICommProvider<UDPCommProviderConfig>
Communication provider for UDP links
config, eventHandler, lastError, logger, securityHandler, startRequested, state, stateLock, statusMsg
Constructor and Description |
---|
UDPCommProvider() |
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 synchronously with the current configuration.
Implementations of this method must block until the module is successfully started or send an exception. Module lifecycle events may not be generated when calling this method directly. 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.) Implementations of this method must block until the module is successfully stopped or send an exception. Module lifecycle events may not be generated when calling this method directly. stop() can be called right after init() even if start() hasn't been called. |
canInit, canStart, canStop, clearError, clearStatus, getConfiguration, getCurrentError, getCurrentState, getLocalID, getLogger, getName, getStatusMessage, init, init, isInitialized, isStarted, loadState, notifyConnectionStatus, registerListener, reportError, reportError, reportStatus, requestInit, requestStart, requestStop, saveState, setConfiguration, setState, toString, unregisterListener, updateConfig, waitForState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConfiguration, getCurrentError, getCurrentState, getLocalID, getName, getStatusMessage, init, init, isInitialized, isStarted, loadState, registerListener, requestInit, requestStart, requestStop, saveState, setConfiguration, unregisterListener, updateConfig, waitForState
public InputStream getInputStream() throws IOException
getInputStream
in interface ICommProvider<UDPCommProviderConfig>
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface ICommProvider<UDPCommProviderConfig>
IOException
public void start() throws SensorHubException
IModule
start
in interface IModule<UDPCommProviderConfig>
SensorHubException
public void stop() throws SensorHubException
IModule
stop
in interface IModule<UDPCommProviderConfig>
SensorHubException
public void cleanup() throws SensorHubException
IModule
cleanup
in interface IModule<UDPCommProviderConfig>
SensorHubException
Copyright © 2016 Sensia Software LLC. All rights reserved.