public class BlaubotEthernetConnector extends java.lang.Object implements IBlaubotConnector
| Constructor and Description |
|---|
BlaubotEthernetConnector(IBlaubotAdapter blaubotEthernetAdapter,
IBlaubotDevice ownDevice) |
| Modifier and Type | Method and Description |
|---|---|
IBlaubotConnection |
connectToBlaubotDevice(IBlaubotDevice blaubotDevice)
Try to connect to the given
IBlaubotDevice. |
IBlaubotConnection |
connectToBlaubotDevice(IBlaubotDevice blaubotDevice,
EthernetConnectionMetaDataDTO ethernetConnectionMetaData)
Connects to the given device using the given connection params.
|
IBlaubotAdapter |
getAdapter()
Get the adapter of which this connector is part of.
|
java.util.List<java.lang.String> |
getSupportedAcceptorTypes()
Returns a list of supported acceptors to connect to.
|
void |
setBeaconStore(IBlaubotBeaconStore beaconStore)
Setter method for the dependency injection of a beacon store.
|
void |
setIncomingConnectionListener(IBlaubotIncomingConnectionListener acceptorConnectorListener)
Setter method for a callback that will be triggered when this
connector successfully established a connection to a remote device.
|
public BlaubotEthernetConnector(IBlaubotAdapter blaubotEthernetAdapter, IBlaubotDevice ownDevice)
public IBlaubotAdapter getAdapter()
IBlaubotConnectorgetAdapter in interface IBlaubotConnectorpublic void setBeaconStore(IBlaubotBeaconStore beaconStore)
IBlaubotConnectorsetBeaconStore in interface IBlaubotConnectorbeaconStore - the beacon store implementationpublic void setIncomingConnectionListener(IBlaubotIncomingConnectionListener acceptorConnectorListener)
IBlaubotConnectorsetIncomingConnectionListener in interface IBlaubotConnectoracceptorConnectorListener - the listener instancepublic IBlaubotConnection connectToBlaubotDevice(IBlaubotDevice blaubotDevice)
IBlaubotConnectorIBlaubotDevice.connectToBlaubotDevice in interface IBlaubotConnectorblaubotDevice - the device to connect topublic IBlaubotConnection connectToBlaubotDevice(IBlaubotDevice blaubotDevice, EthernetConnectionMetaDataDTO ethernetConnectionMetaData)
blaubotDevice - the device to connect toethernetConnectionMetaData - the connection meta data to use for the connectionpublic java.util.List<java.lang.String> getSupportedAcceptorTypes()
IBlaubotConnectorgetSupportedAcceptorTypes in interface IBlaubotConnector