|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.backsource.alert.agent.BaseCase
org.backsource.alert.agent.DiskCheckTest
Test for disk usage.
The test may be run without any property settings, in which case it will check that no disks on the system exceds a 93% diskusage. It is also possible to configure it with the following properties:
INCLUDE, a space separated list of disks or filesystems to inlude, if only one disk is mentioned, only that one is checked, if no one is mention ass is checked that are not int the exclude list. Excluded disks has precedence ower included disks.
EXCLUDE, a space separated list of disks or filesystems to exclude from the check, could for example be cdrom.
MAX_PERCENT, max percent usage of disk allowed.
| Field Summary | |
static java.lang.String |
EXCLUDE
agent.disk.exclude |
static java.lang.String |
INCLUDE
agent.disk.include |
static java.lang.String |
MAX_PERCENT
agent.disk.maxPercentUsed |
| Fields inherited from class org.backsource.alert.agent.BaseCase |
agentName, prop |
| Constructor Summary | |
DiskCheckTest(java.lang.String name)
|
|
| Method Summary | |
protected void |
setUp()
|
void |
testDiskSpace()
|
| Methods inherited from class org.backsource.alert.agent.BaseCase |
getAgentName, getProperties, initialize, toString |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface junit.framework.Test |
countTestCases, run |
| Field Detail |
public static java.lang.String INCLUDE
public static java.lang.String EXCLUDE
public static java.lang.String MAX_PERCENT
| Constructor Detail |
public DiskCheckTest(java.lang.String name)
| Method Detail |
protected void setUp()
throws java.lang.Exception
setUp in class BaseCasejava.lang.Exception
public void testDiskSpace()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||