|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.philemonworks.selfdiagnose.DiagnosticTask
com.philemonworks.selfdiagnose.check.CheckDirectoryAccessible
public class CheckDirectoryAccessible
CheckDirectoryAccessible is a DiagnosticTask that verifies access properties of a directory in a File System
<checkdirectoryaccessible path="/home/work" /> <checkdirectoryaccessible path="/home/work" writeable="true" />Stores the directory (java.io.File) into the (optional) specified variable.
Field Summary |
---|
Fields inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
---|
comment, PARAMETER_COMMENT, PARAMETER_REPORT, PARAMETER_VARIABLE, reportResults, requestor, variableName |
Constructor Summary | |
---|---|
CheckDirectoryAccessible()
|
Method Summary | |
---|---|
String |
getDescription()
Return the description of this task. |
String |
getPath()
|
void |
initializeFromAttributes(Attributes attributes)
This method is sent from the SelfDiagnoseHandler when a configuration is being processed. |
boolean |
isMustBeWriteable()
|
void |
run(ExecutionContext ctx,
DiagnosticTaskResult result)
Run the task. |
void |
setMustBeWriteable(boolean writeable)
|
void |
setPath(String directory)
|
void |
setUp(ExecutionContext ctx)
Override this method to verify that task parameters are initialized/set correctly. |
Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
---|
createResult, getComment, getDefaultReportTemplate, getRequestor, getTaskName, getVariableName, hasComment, isReportResults, run, run, setComment, setReportResults, setRequestor, setVariableName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckDirectoryAccessible()
Method Detail |
---|
public void initializeFromAttributes(Attributes attributes)
DiagnosticTask
initializeFromAttributes
in class DiagnosticTask
attributes
- org.xml.sax.Attributespublic String getDescription()
getDescription
in class DiagnosticTask
public void setUp(ExecutionContext ctx) throws DiagnoseException
DiagnosticTask
setUp
in class DiagnosticTask
ctx
- ExecutionContext
DiagnoseException
public void run(ExecutionContext ctx, DiagnosticTaskResult result) throws DiagnoseException
DiagnosticTask
run
in class DiagnosticTask
ctx
- ExecutionContextresult
- DiagnosticTaskResult
DiagnoseException
public String getPath()
public void setPath(String directory)
path
- Stringpublic boolean isMustBeWriteable()
public void setMustBeWriteable(boolean writeable)
writeable
- true if it must be writeable (i.e. a file can be created).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |