public class RrdFileConstants extends Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
MAX_RRD_FILENAME_LENGTH
The longest an RRD filename can be, currently 1024 characters. 
 | 
| Constructor and Description | 
|---|
RrdFileConstants()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
convertToValidRrdName(String rrd)
Note this method will not  handle references to higher
 directories (".."). 
 | 
static String | 
escapeForGraphing(String path)  | 
static boolean | 
isValidRRDLatencyDir(File file,
                    String suffix)
Determines if the provided File object represents a valid RRD latency
 directory. 
 | 
static boolean | 
isValidRRDName(String rrd)
Checks an RRD filename to make sure it is of the proper length and does
 not contain any unexpected charaters. 
 | 
public static final int MAX_RRD_FILENAME_LENGTH
public static final boolean isValidRRDLatencyDir(File file, String suffix)
file - a File object.public static boolean isValidRRDName(String rrd)
MAX_RRD_FILENAME_LENGTHconstant. The
 only valid characters are letters (A-Z and a-z), numbers (0-9), dashes
 (-), dots (.), and underscores (_). These precautions are necessary since
 the RRD filename is used on the commandline and specified in the graph
 URL.rrd - a String object.public static String convertToValidRrdName(String rrd)
Copyright © 2021. All rights reserved.