CO - the connector output typeCI - the connector input type@MachineConnector(hasModel=false,
supportsEvents=false,
supportsHierarchicalQNames=false,
supportsModelCalls=false,
supportsModelProperties=false,
supportsModelStructs=false)
public class MyChannelConnector<CO,CI>
extends de.iip_ecosphere.platform.connectors.AbstractChannelConnector<byte[],byte[],CO,CI>
| Modifier and Type | Class and Description |
|---|---|
static class |
MyChannelConnector.Descriptor
The descriptor of this connector (see META-INF/services).
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
private Deque<byte[]> |
offers |
private Deque<byte[]> |
received |
| Constructor and Description |
|---|
MyChannelConnector(de.iip_ecosphere.platform.connectors.types.ChannelProtocolAdapter<byte[],byte[],CO,CI> adapter)
Creates a channel connector instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
connectImpl(de.iip_ecosphere.platform.connectors.ConnectorParameter params) |
void |
disconnectImpl() |
void |
dispose() |
String |
enabledEncryption() |
protected void |
error(String message,
Throwable th) |
String |
getName() |
void |
offer(byte[] data)
Offer something to the connector, i.e., play the protocol.
|
byte[] |
pollReceived()
Polls a received data element.
|
protected byte[] |
read() |
String |
supportedEncryption() |
protected void |
writeImpl(byte[] data,
String channel) |
getOutputChannels, getSelector, write, writeImplconfigureModelAccess, connect, disconnect, doPolling, enableNotifications, enablePolling, getConnectorInputType, getConnectorOutputType, getConnectorParameter, getProtocolInputType, getProtocolOutputType, initializeModelAccess, installPollTask, isPolling, notificationsChanged, received, received, request, setReceptionCallback, trigger, trigger, uninstallPollTaskpublic static final String NAME
private Deque<byte[]> offers
private Deque<byte[]> received
protected void connectImpl(de.iip_ecosphere.platform.connectors.ConnectorParameter params)
throws IOException
connectImpl in class de.iip_ecosphere.platform.connectors.AbstractConnector<byte[],byte[],CO,CI>IOExceptionpublic void disconnectImpl()
throws IOException
disconnectImpl in class de.iip_ecosphere.platform.connectors.AbstractConnector<byte[],byte[],CO,CI>IOExceptionpublic void dispose()
public String getName()
protected void writeImpl(byte[] data,
String channel)
throws IOException
writeImpl in class de.iip_ecosphere.platform.connectors.AbstractChannelConnector<byte[],byte[],CO,CI>IOExceptionprotected byte[] read()
throws IOException
read in class de.iip_ecosphere.platform.connectors.AbstractConnector<byte[],byte[],CO,CI>IOExceptionpublic void offer(byte[] data)
data - the datapublic byte[] pollReceived()
public String supportedEncryption()
public String enabledEncryption()
Copyright © 2022. All rights reserved.