@Override public void close() throws Exception { String message = "flow node id: " + flowNode.getID(); logMemory( LOG, message + ", mem on close" ); logCounters( LOG, message + ", counter:", currentProcess ); } }
public static String[] setLog4jLevel( String[] contexts, String[] levels ) { String[] results = new String[ contexts.length ]; for( int i = 0; i < contexts.length; i++ ) results[ i ] = setLog4jLevel( contexts[ i ], levels[ i ] ); return results; }
LOG.info( "trapping to: " + trap ); logMemory( LOG, "flow node id: " + flowNode.getID() + ", mem on start" );
LogUtil.logWarnOnce( LOG, "received unsupported stop data notification, ignoring: {}", exception.getMessage() );
LOG.info( "trapping to: " + trap ); logMemory( LOG, "flow node id: " + flowNode.getID() + ", mem on start" );
LogUtil.logWarnOnce( LOG, "received unsupported stop data notification, ignoring: {}", exception.getMessage() );
@Override public void close() throws Exception { String message = "flow node id: " + flowNode.getID(); logMemory( LOG, message + ", mem on close" ); logCounters( LOG, message + ", counter:", currentProcess ); } }
LOG.info( "trapping to: " + trap ); logMemory( LOG, "flow node id: " + flowNode.getID() + ", mem on start" );
LogUtil.logWarnOnce( LOG, "received unsupported stop data notification, ignoring: {}", exception.getMessage() );
public static String[] enableDebugLogging() { return LogUtil.setLog4jLevel( CONTEXTS, "DEBUG" ); }
@Override public void close() throws IOException { try { streamGraph.cleanup(); } finally { long processEndTime = System.currentTimeMillis(); flowProcess.increment(SliceCounters.Process_End_Time, processEndTime); flowProcess.increment( SliceCounters.Process_Duration, processEndTime - this.processBeginTime ); String message = "flow node id: " + flowNode.getID(); logMemory( LOG, message + ", mem on close" ); logCounters( LOG, message + ", counter:", flowProcess ); } }
LOG.info( "trapping to: " + trap ); logMemory( LOG, "flow node id: " + flowNode.getID() + ", mem on start" );
LogUtil.logWarnOnce( LOG, "received unsupported stop data notification, ignoring: {}", exception.getMessage() );
public static void restoreLogging( String[] levels ) { if( levels != null ) LogUtil.setLog4jLevel( CONTEXTS, levels ); } }
@Override public void close() { try { if( this.prepareCalled) { this.sourceStage.complete(this.sourceStage); this.streamGraph.cleanup(); } } finally { if( currentProcess != null ) { long processEndTime = System.currentTimeMillis(); currentProcess.increment( SliceCounters.Process_End_Time, processEndTime ); currentProcess.increment( SliceCounters.Process_Duration, processEndTime - processBeginTime ); } String message = "flow node id: " + flowNode.getID(); logMemory( LOG, message + ", mem on close" ); logCounters( LOG, message + ", counter:", currentProcess ); } }
logMemory( LOG, "mem after accumulating source: " + ( (ElementDuct) next ).getFlowElement() + ", " );
LogUtil.logWarnOnce( LOG, "received unsupported stop data notification, ignoring: {}", exception.getMessage() );
public static String[] enableTraceLogging() { return LogUtil.setLog4jLevel( CONTEXTS, "TRACE" ); }
@Override public void close() { try { if( this.calledPrepare) { this.groupSource.complete(this.groupSource); this.streamGraph.cleanup(); } } finally { if( currentProcess != null ) { long processEndTime = System.currentTimeMillis(); currentProcess.increment( SliceCounters.Process_End_Time, processEndTime ); currentProcess.increment( SliceCounters.Process_Duration, processEndTime - processBeginTime ); } String message = "flow node id: " + flowNode.getID(); logMemory( LOG, message + ", mem on close" ); logCounters( LOG, message + ", counter:", currentProcess ); } }
logMemory( LOG, "mem after accumulating source: " + ( (ElementDuct) next ).getFlowElement() + ", " );