Package org.jboss.as.protocol.mgmt

Examples of org.jboss.as.protocol.mgmt.FlushableDataOutput


                    } catch (SlaveRegistrationException e) {
                        error = e.marshal();
                    } catch (Exception e) {
                        error = SlaveRegistrationException.forUnknownError(e.getMessage()).marshal();
                    }
                    final FlushableDataOutput output = writeGenericResponseHeader(context);
                    try {
                        if (error != null) {
                            output.write(DomainControllerProtocol.PARAM_ERROR);
                            output.writeUTF(error);
                        } else {
                            output.write(DomainControllerProtocol.PARAM_OK);
                        }
                        output.close();
                    } finally {
                        StreamUtils.safeClose(output);
                    }
                }
            });
View Full Code Here


    private class UnregisterOperation extends AbstractHostRequestHandler {

        @Override
        void handleRequest(String hostId, DataInput input, ManagementRequestContext<Void> context) throws IOException {
            domainController.unregisterRemoteHost(hostId);
            final FlushableDataOutput os = writeGenericResponseHeader(context);
            try {
                os.write(ManagementProtocol.RESPONSE_END);
                os.close();
            } finally {
                StreamUtils.safeClose(os);
            }
        }
View Full Code Here

            final String filePath = input.readUTF();
            context.executeAsync(new ManagementRequestContext.AsyncTask<Void>() {
                @Override
                public void execute(ManagementRequestContext<Void> context) throws Exception {
                    final File localPath = processRequest(rootId, filePath);
                    final FlushableDataOutput output = writeGenericResponseHeader(context);
                    try {
                        writeResponse(localPath, output);
                        output.close();
                    } finally {
                        StreamUtils.safeClose(output);
                    }
                }
            });
View Full Code Here

TOP

Related Classes of org.jboss.as.protocol.mgmt.FlushableDataOutput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.