CO - the connector output typeCI - the connector input type@MachineConnector(hasModel=true,
supportsEvents=false,
supportsHierarchicalQNames=true,
supportsModelCalls=false,
supportsModelProperties=false,
supportsModelStructs=false)
public class MyModelConnector<CO,CI>
extends de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>
| Modifier and Type | Class and Description |
|---|---|
static class |
MyModelConnector.Descriptor
The descriptor of this connector (see META-INF/services).
|
private class |
MyModelConnector.MyModelAccess
Mimics a simple model access instance.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
private Deque<Object> |
offers |
private de.iip_ecosphere.platform.connectors.ConnectorParameter |
params |
private Deque<Object> |
received |
| Constructor and Description |
|---|
MyModelConnector(de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,CO,CI>... adapter)
Creates a model 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() |
Object |
pollReceived()
Polls a received data element.
|
protected Object |
read() |
String |
supportedEncryption() |
void |
testTrigger()
Put something into the queue to trigger a "model modification".
|
protected void |
writeImpl(Object data) |
configureModelAccess, connect, disconnect, doPolling, enableNotifications, enablePolling, getConnectorInputType, getConnectorOutputType, getConnectorParameter, getProtocolInputType, getProtocolOutputType, getSelector, initializeModelAccess, installPollTask, isPolling, notificationsChanged, received, received, request, setReceptionCallback, trigger, trigger, uninstallPollTask, writepublic static final String NAME
private de.iip_ecosphere.platform.connectors.ConnectorParameter params
@SafeVarargs public MyModelConnector(de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,CO,CI>... adapter)
adapter - the protocol adapter(s)protected void connectImpl(de.iip_ecosphere.platform.connectors.ConnectorParameter params)
throws IOException
connectImpl in class de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>IOExceptionpublic void disconnectImpl()
throws IOException
disconnectImpl in class de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>IOExceptionpublic void dispose()
public String getName()
protected void writeImpl(Object data) throws IOException
writeImpl in class de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>IOExceptionprotected Object read() throws IOException
read in class de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>IOExceptionpublic void testTrigger()
throws IOException
IOException - if offering fails for some reasonpublic Object pollReceived()
public String supportedEncryption()
public String enabledEncryption()
Copyright © 2022. All rights reserved.