Package smilehouse.opensyncro.pipes.log

Examples of smilehouse.opensyncro.pipes.log.LogEntry.logMessage()


                            /*
                             * Test if any of the first Converter's result Strings is null, if yes ->
                             * report an error and abort Pipe execution
                             */
                            if(arrayContainsNull(processedData)) {
                                logEntry.logMessage(
                                    "Error: Converter " + converter.getName()
                                            + " returned null result, aborting",
                                    this,
                                    MessageLogger.ERROR);
                                throw new FailTransferException();
View Full Code Here


                                /*
                                 * Test if any of the Converter's result Strings is null, if yes ->
                                 * report an error and abort Pipe execution
                                 */
                                if(arrayContainsNull(processedData)) {
                                    logEntry.logMessage(
                                        "Error: Converter " + converter.getName()
                                                + " returned null result, aborting",
                                        this,
                                        MessageLogger.ERROR);
                                    throw new FailTransferException();
View Full Code Here

                                    + " of last data block failing to process through the Pipe";
                            // TODO: test support for FailTransferException and AbortTransferException during lastBlockStatus!
                            source.lastBlockStatus(PIPE_EXECUTION_FAILED);
                        }

                        logEntry.logMessage(
                            "Data block processing failed, aborting Pipe execution",
                            this,
                            MessageLogger.ERROR);

                        if(t instanceof Exception) {
View Full Code Here

                }

            } // Iteration loop ends here

            logEntry.logMessage("Data block processing complete", this, MessageLogger.DEBUG);
           
            statusCode = LogEntry.STATUS_OK;

        } catch(AbortTransferException ate) {
View Full Code Here

            // If some component did not deliberately fail the transfer by
            // throwing AbortTransferException, log the exception
            // -----------------------------------------------------------
            if(!(e instanceof FailTransferException)) {
                Environment.getInstance().log(Utils.getThrowableName(e) + " during transfer, " + currentTask, e);
                logEntry.logMessage(
                    Utils.getThrowableName(e) + " during transfer, " + currentTask + ": " + e.getMessage()
                            + ". See OpenSyncro log file for details.",
                    this,
                    MessageLogger.ERROR);
            }
View Full Code Here

           
                case LogEntry.STATUS_OK:
                    break;
                   
                case LogEntry.STATUS_ABORTED:
                    logEntry.logMessage("TRANSFER ABORTED", this, MessageLogger.WARNING);
                    break;
                   
                // The rest of the statusCodes are errors   
                default:
                    logEntry.logMessage("TRANSFER FAILED!", this, MessageLogger.ERROR);
View Full Code Here

                    logEntry.logMessage("TRANSFER ABORTED", this, MessageLogger.WARNING);
                    break;
                   
                // The rest of the statusCodes are errors   
                default:
                    logEntry.logMessage("TRANSFER FAILED!", this, MessageLogger.ERROR);
                    break;
            }
           
            logEntry.logMessage("Pipe execution finished", this, MessageLogger.DEBUG);
            setExecutionEndInfo( new Date(), System.currentTimeMillis()-start, statusCode);
View Full Code Here

                default:
                    logEntry.logMessage("TRANSFER FAILED!", this, MessageLogger.ERROR);
                    break;
            }
           
            logEntry.logMessage("Pipe execution finished", this, MessageLogger.DEBUG);
            setExecutionEndInfo( new Date(), System.currentTimeMillis()-start, statusCode);
            addLogEntry(logEntry, statusCode);
           
            // Add "--" log message entry when there are no other entries.
            // Needed to display log entries that don't have log message entries.
View Full Code Here

            // Add "--" log message entry when there are no other entries.
            // Needed to display log entries that don't have log message entries.
            Persister persister = new Persister(database);
            if (persister.getLogMessageEntries(logEntry.getId(), MessageLogger.LOG_DYNAMIC).size() == 0){
              logEntry.setIndex(1);
              logEntry.logMessage("--", MessageLogger.ERROR);
            }

        }

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.