Class MrtgManager
java.lang.Object
com.aoindustries.aoserv.daemon.util.BuilderThread
com.aoindustries.aoserv.daemon.monitor.MrtgManager
- All Implemented Interfaces:
TableListener,PackageManager.PackageListener
Handles the building of MRTG processes and files.
- Author:
- AO Industries, Inc.
-
Field Summary
FieldsFields inherited from class com.aoindustries.aoserv.daemon.util.BuilderThread
DEFAULT_MAXIMUM_DELAY, DEFAULT_MINIMUM_DELAY, DEFAULT_PROCESS_TIMER_MAXIMUM_TIME, DEFAULT_PROCESS_TIMER_REMINDER_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic voidgetMrtgFile(String filename, StreamableOutput out) static intReads /proc/cpuinfo and determines the number of CPUs.static voidstart()Methods inherited from class com.aoindustries.aoserv.daemon.util.BuilderThread
getMaximumDelay, getMinimumDelay, getProcessTimerMaximumTime, getProcessTimerReminderInterval, getProcessTimerSubject, getRandomDelay, packageListUpdated, tableUpdated, waitForBuild
-
Field Details
-
GRAPH_WIDTH
public static final int GRAPH_WIDTH- See Also:
-
GRAPH_HEIGHT
public static final int GRAPH_HEIGHT- See Also:
-
mrtgDirectory
-
-
Method Details
-
doRebuild
protected boolean doRebuild()- Specified by:
doRebuildin classBuilderThread- Returns:
trueif successful orfalseif unsuccessful and needs to be retried.
-
start
- Throws:
IOExceptionSQLException
-
getProcessTimerDescription
- Specified by:
getProcessTimerDescriptionin classBuilderThread
-
getNumberOfCpus
Reads /proc/cpuinfo and determines the number of CPUs.- Throws:
IOException
-
getMrtgFile
public static void getMrtgFile(String filename, StreamableOutput out) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
