Package org.jboss.as.controller.remote
Class ResponseAttachmentInputStreamSupport
- java.lang.Object
-
- org.jboss.as.controller.remote.ResponseAttachmentInputStreamSupport
-
public class ResponseAttachmentInputStreamSupport extends Object
Support logic related to dealing with input streams attached to an operation response.- Author:
- Brian Stansberry (c) 2014 Red Hat Inc.
-
-
Constructor Summary
Constructors Constructor Description ResponseAttachmentInputStreamSupport()
For test usage only as it has no facility for closing attached streams.ResponseAttachmentInputStreamSupport(ScheduledExecutorService scheduledExecutorService)
Create a new support with the given timeout for closing unread streams.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
handleDomainOperationResponseStreams(OperationContext context, org.jboss.dmr.ModelNode responseNode, List<OperationResponse.StreamEntry> streams)
Deal with streams attached to an operation response from a proxied domain process.void
shutdown()
Closes any registered stream entries that have not yet been consumed
-
-
-
Constructor Detail
-
ResponseAttachmentInputStreamSupport
public ResponseAttachmentInputStreamSupport()
For test usage only as it has no facility for closing attached streams.
-
ResponseAttachmentInputStreamSupport
public ResponseAttachmentInputStreamSupport(ScheduledExecutorService scheduledExecutorService)
Create a new support with the given timeout for closing unread streams.- Parameters:
scheduledExecutorService
- scheduled executor to use to periodically clean up unused streams. Cannot benull
-
-
Method Detail
-
handleDomainOperationResponseStreams
public static void handleDomainOperationResponseStreams(OperationContext context, org.jboss.dmr.ModelNode responseNode, List<OperationResponse.StreamEntry> streams)
Deal with streams attached to an operation response from a proxied domain process.- Parameters:
context
- the context of the operationresponseNode
- the DMR response from the proxied processstreams
- the streams associated with the response
-
shutdown
public final void shutdown()
Closes any registered stream entries that have not yet been consumed
-
-