public abstract class MonitorStreamFactory
extends java.lang.Object
OutputStream to catch incoming and outgoing data
which allows the creation of Message objects.| Modifier and Type | Field and Description |
|---|---|
static HashMap |
inMon |
static HashMap |
outMon |
| Constructor and Description |
|---|
MonitorStreamFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract StreamMonitor |
createInputMonitor() |
protected abstract StreamMonitor |
createOutputMonitor() |
void |
discard(java.lang.Long connectionId,
MonitoringContext context,
int discardReason)
Allows the assignment of a incoming discarded
Message to a previously given
OutputStream. |
static void |
dispose(ConnectionInfo ci) |
StreamMonitor |
getInputMonitor(java.lang.Long connectionId)
Creates a
StreamMonitor for incoming messages. |
MonitoringContext |
getMonitoringContextIn(java.lang.Long connectionId) |
MonitoringContext |
getMonitoringContextOut(java.lang.Long connectionId) |
MonitoringContext |
getNewMonitoringContextIn(ConnectionInfo ci,
boolean setLastTimeEqualToFirstTime) |
MonitoringContext |
getNewMonitoringContextOut(ConnectionInfo ci,
boolean delayMessageIdNumberGeneration) |
StreamMonitor |
getOutputMonitor(java.lang.Long connectionId)
Creates a
StreamMonitor for outgoing messages. |
void |
received(java.lang.Long connectionId,
MonitoringContext context,
Message message)
Allows the assignment of a incoming
Message to a previously given
OutputStream. |
void |
receivedFault(java.lang.Long connectionId,
MonitoringContext context,
java.lang.Exception e)
Allows to inform the incoming monitor about a fault.
|
void |
receiveNoContent(java.lang.Long connectionId,
MonitoringContext context,
java.lang.String reason) |
void |
receiveResourceRequest(java.lang.Long connectionId,
MonitoringContext context,
URI location) |
void |
receiveResourceResponse(java.lang.Long connectionId,
MonitoringContext context,
Resource r) |
void |
resetMonitoringContextIn(java.lang.Long connectionId) |
void |
resetMonitoringContextOut(java.lang.Long connectionId) |
void |
send(java.lang.Long connectionId,
MonitoringContext context,
Message message,
AttributedURI optionalMessageId)
Allows the assignment of a outgoing
Message to a previously given
OutputStream. |
void |
sendFault(java.lang.Long connectionId,
MonitoringContext context,
java.lang.Exception e)
Allows to inform the outgoing monitor about a fault.
|
void |
sendNoContent(java.lang.Long connectionId,
MonitoringContext context,
java.lang.String reason) |
void |
sendResourceRequest(java.lang.Long connectionId,
MonitoringContext context,
URI location) |
void |
sendResourceResponse(java.lang.Long connectionId,
MonitoringContext context,
Resource r) |
public static final void dispose(ConnectionInfo ci)
protected abstract StreamMonitor createInputMonitor()
protected abstract StreamMonitor createOutputMonitor()
public final StreamMonitor getInputMonitor(java.lang.Long connectionId)
StreamMonitor for incoming messages.StreamMonitor for incoming messages.public final StreamMonitor getOutputMonitor(java.lang.Long connectionId)
StreamMonitor for outgoing messages.StreamMonitor for outgoing messages.public final void resetMonitoringContextIn(java.lang.Long connectionId)
public final void resetMonitoringContextOut(java.lang.Long connectionId)
public final MonitoringContext getNewMonitoringContextIn(ConnectionInfo ci, boolean setLastTimeEqualToFirstTime)
public final MonitoringContext getNewMonitoringContextOut(ConnectionInfo ci, boolean delayMessageIdNumberGeneration)
public final MonitoringContext getMonitoringContextIn(java.lang.Long connectionId)
public final MonitoringContext getMonitoringContextOut(java.lang.Long connectionId)
public final void received(java.lang.Long connectionId,
MonitoringContext context,
Message message)
Message to a previously given
OutputStream.connectionId - the id which will be used to identify the monitor.context - message - the message.public final void discard(java.lang.Long connectionId,
MonitoringContext context,
int discardReason)
Message to a previously given
OutputStream.connectionId - the id which will be used to identify the monitor.context - discardReason - public final void send(java.lang.Long connectionId,
MonitoringContext context,
Message message,
AttributedURI optionalMessageId)
Message to a previously given
OutputStream.connectionId - the id which will be used to identify the monitor.context - message - the messageoptionalMessageId - public final void receivedFault(java.lang.Long connectionId,
MonitoringContext context,
java.lang.Exception e)
connectionId - the id which will be used to identify the monitor.context - e - public final void sendFault(java.lang.Long connectionId,
MonitoringContext context,
java.lang.Exception e)
connectionId - the id which will be used to identify the monitor.context - e - public final void receiveResourceRequest(java.lang.Long connectionId,
MonitoringContext context,
URI location)
public final void sendResourceRequest(java.lang.Long connectionId,
MonitoringContext context,
URI location)
public final void receiveResourceResponse(java.lang.Long connectionId,
MonitoringContext context,
Resource r)
public final void sendResourceResponse(java.lang.Long connectionId,
MonitoringContext context,
Resource r)
public void receiveNoContent(java.lang.Long connectionId,
MonitoringContext context,
java.lang.String reason)
public void sendNoContent(java.lang.Long connectionId,
MonitoringContext context,
java.lang.String reason)