Package betsy.bpel.virtual.common.messages.collect_log_files

Examples of betsy.bpel.virtual.common.messages.collect_log_files.LogFilesResponse


                        DeployRequest request = (DeployRequest) o;
                        DeployResponse response = protocol.deployOperation(request);
                        this.sendMessage(response);
                    } else if (o instanceof LogFilesRequest) {
                        LogFilesRequest request = (LogFilesRequest) o;
                        LogFilesResponse response = protocol.collectLogFilesOperation(request);
                        this.sendMessage(response);
                    } else if (Constants.EXIT_REQUEST.equals(o)) {
                        this.shutdown();
                    } else {
                        throw new CommunicationException("Invalid request");
View Full Code Here


        LOGGER.debug("Storing logs for engine " + getName());

        LogFilesRequest request = buildLogFilesRequest();

        try {
            LogFilesResponse response = comm.collectLogFilesOperation(request);

            // create log folders
            Files.createDirectories(process.getTargetLogsPath());

            // save to disk...
            for (LogFiles logFiles : response.getLogFiles()) {

                String normalizedFolderPath = logFiles.getFolder().replaceAll("/", "_");
                Path folder = process.getTargetLogsPath().resolve(normalizedFolderPath);
                Files.createDirectories(folder);
View Full Code Here

            logFilesList.add(logFilesClass);
        }

        log.info("Log files collected -> Sending response");

        return new LogFilesResponse(logFilesList);
    }
View Full Code Here

    @Test
    public void testCommunication() throws Exception {
        Protocol protocol = new Protocol() {
            @Override
            public LogFilesResponse collectLogFilesOperation(LogFilesRequest request) throws CommunicationException {
                return new LogFilesResponse(new LinkedList<>());
            }

            @Override
            public DeployResponse deployOperation(DeployRequest request) throws CommunicationException {
                return new DeployResponse();
View Full Code Here

    @Test(expected = IllegalStateException.class)
    public void testExceptionCommunication() throws Exception {
        Protocol protocol = new Protocol() {
            @Override
            public LogFilesResponse collectLogFilesOperation(LogFilesRequest request) throws CommunicationException {
                return new LogFilesResponse(new LinkedList<>());
            }

            @Override
            public DeployResponse deployOperation(DeployRequest request) throws CommunicationException {
                throw new IllegalStateException("asdf");
View Full Code Here

    @Test
    public void testCommunicationWithTimeout() throws Exception {
        Protocol protocol = new Protocol() {
            @Override
            public LogFilesResponse collectLogFilesOperation(LogFilesRequest request) throws CommunicationException {
                return new LogFilesResponse(new LinkedList<>());
            }

            @Override
            public DeployResponse deployOperation(DeployRequest request) throws CommunicationException {
                try {
View Full Code Here

    @Test
    public void testCommunicationWithLargeMessage() throws Exception {
        Protocol protocol = new Protocol() {
            @Override
            public LogFilesResponse collectLogFilesOperation(LogFilesRequest request) throws CommunicationException {
                return new LogFilesResponse(new LinkedList<>());
            }

            @Override
            public DeployResponse deployOperation(DeployRequest request) throws CommunicationException {
                return new DeployResponse();
View Full Code Here

TOP

Related Classes of betsy.bpel.virtual.common.messages.collect_log_files.LogFilesResponse

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.