protected void rrdToolUpdate ( String template , String data ) throws Exception { List < String > commands = new ArrayList <> ( ) ; commands . add ( binaryPath + "/rrdtool" ) ; commands . add ( "update" ) ; commands . add ( outputFile . getCanonicalPath ( ) ) ; commands . add ( "-t" ) ; commands . add ( template ) ; commands . add ( "N:" + data ) ; ProcessBuilder pb = new ProcessBuilder ( commands ) ; Process process = pb . start ( ) ; checkErrorStream ( process ) ; }
Executes the rrdtool update command .