@@ -0,0 +1,1489 @@
+/*%0A   Copyright 2019 Nationale-Nederlanden%0A%0A   Licensed under the Apache License, Version 2.0 (the %22License%22);%0A   you may not use this file except in compliance with the License.%0A   You may obtain a copy of the License at%0A%0A       http://www.apache.org/licenses/LICENSE-2.0%0A%0A   Unless required by applicable law or agreed to in writing, software%0A   distributed under the License is distributed on an %22AS IS%22 BASIS,%0A   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A   See the License for the specific language governing permissions and%0A   limitations under the License.%0A*/%0Apackage nl.nn.adapterframework.pipes;%0A%0Aimport nl.nn.adapterframework.core.IPipeLineSession;%0Aimport nl.nn.adapterframework.core.PipeRunException;%0Aimport nl.nn.adapterframework.core.PipeRunResult;%0Aimport nl.nn.adapterframework.util.ProcessMetrics;%0A%0A/**%0A * Pipe that returns metrics about current memory usage%0A * %0A * %09Output example:%0A * %0A * %09%3CprocessMetrics%3E%0A * %09%09%3Cproperties%3E%0A * %09%09%09%3Cproperty name=%22freeMemory%22%3E201M%3C/property%3E%0A * %09%09%09%3Cproperty name=%22totalMemory%22%3E245M%3C/property%3E%0A * %09%09%09%3Cproperty name=%22heapSize%22%3E43M%3C/property%3E%0A * %09%09%09%3Cproperty name=%22currentTime%22%3E2018-12-24 14:27:29.730%3C/property%3E%0A * %09%09%3C/properties%3E%0A * %09%3C/processMetrics%3E%0A * %0A * @author%09Laurens M%C3%A4kel%0A */%0A%0Apublic class IbisMetricsPipe extends FixedForwardPipe %7B%0A%0A%09public PipeRunResult doPipe(Object input, IPipeLineSession session) throws PipeRunException %7B%09%0A%09%09return new PipeRunResult(getForward(), ProcessMetrics.toXml());%0A%09%7D%0A%0A%7D

Add IbisMetricsPipe to test package to prevent clutter in main project