Package org.jboss.as.controller.remote
Class ResponseAttachmentInputStreamSupport
java.lang.Object
org.jboss.as.controller.remote.ResponseAttachmentInputStreamSupport
Support logic related to dealing with input streams attached to an operation response.
- Author:
- Brian Stansberry (c) 2014 Red Hat Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionFor 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
Modifier and TypeMethodDescriptionstatic voidhandleDomainOperationResponseStreams(OperationContext context, org.jboss.dmr.ModelNode responseNode, List<OperationResponse.StreamEntry> streams) Deal with streams attached to an operation response from a proxied domain process.final voidshutdown()Closes any registered stream entries that have not yet been consumed
-
Constructor Details
-
ResponseAttachmentInputStreamSupport
public ResponseAttachmentInputStreamSupport()For test usage only as it has no facility for closing attached streams. -
ResponseAttachmentInputStreamSupport
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 Details
-
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
-