private static class DirectMemoryTransportConnectorTest.FakeConnector extends Object implements de.iip_ecosphere.platform.transport.connectors.TransportConnector
| Modifier and Type | Field and Description |
|---|---|
private Map<String,de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<?>> |
callbacks |
| Modifier | Constructor and Description |
|---|---|
private |
FakeConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncSend(String stream,
Object data) |
String |
composeStreamName(String parent,
String name) |
void |
connect(de.iip_ecosphere.platform.transport.connectors.TransportParameter params) |
void |
detachReceptionCallback(String stream,
de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<?> callback) |
void |
disconnect() |
String |
enabledEncryption() |
String |
getName() |
private <T> void |
serializeDeserializeNotify(String stream,
T data)
Does a full round-trip what a usual connector does in at least two steps: serialize, look for callback,
take callback deserializer, deserialize and notify.
|
void |
setReceptionCallback(String stream,
de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<?> callback) |
String |
supportedEncryption() |
void |
syncSend(String stream,
Object data) |
void |
unsubscribe(String stream,
boolean delete) |
public void syncSend(String stream, Object data) throws IOException
syncSend in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorIOExceptionpublic void asyncSend(String stream, Object data) throws IOException
asyncSend in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorIOExceptionprivate <T> void serializeDeserializeNotify(String stream, T data) throws IOException
T - the data typestream - the stream namedata - the data to handleIOException - if serialization/deserialization fails for some reasonpublic void setReceptionCallback(String stream, de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<?> callback) throws IOException
setReceptionCallback in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorIOExceptionpublic void unsubscribe(String stream, boolean delete) throws IOException
unsubscribe in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorIOExceptionpublic String composeStreamName(String parent, String name)
composeStreamName in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorpublic void connect(de.iip_ecosphere.platform.transport.connectors.TransportParameter params)
throws IOException
connect in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorIOExceptionpublic void disconnect()
throws IOException
disconnect in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorIOExceptionpublic String getName()
getName in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorpublic String supportedEncryption()
supportedEncryption in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorpublic String enabledEncryption()
enabledEncryption in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorpublic void detachReceptionCallback(String stream, de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<?> callback) throws IOException
detachReceptionCallback in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorIOExceptionCopyright © 2022. All rights reserved.