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 name server processes and files.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields 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 boolean
static void
getMrtgFile
(String filename, StreamableOutput out) static int
Reads /proc/cpuinfo and determines the number of CPUs.static void
start()
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:
-
centosMrtgDirectory
-
-
Method Details
-
doRebuild
protected boolean doRebuild()- Specified by:
doRebuild
in classBuilderThread
- Returns:
true
if successful orfalse
if unsuccessful and needs to be retried.
-
start
- Throws:
IOException
SQLException
-
getProcessTimerDescription
- Specified by:
getProcessTimerDescription
in 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:
IOException
SQLException
-