|
||||||||||
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.CheckJNDIBinding
public class CheckJNDIBinding
CheckJNDIBinding is a task to check whether the naming server has a JNDI binding for a given name.
<checkjndibinding name="jdbc/mydb"/> <checkjndibinding name="jdbc/mydb" class="mypackage.DataSource"/> <checkjndibinding name="jdbc/mydb" class="mypackage.DataSource" url="localhost:900" factory="someFactory"/>Stores the value found 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 | |
---|---|
CheckJNDIBinding()
|
Method Summary | |
---|---|
String |
getDescription()
Return the description of this task. |
String |
getInitalContextFactory()
|
String |
getJndiName()
|
String |
getNamingServerURL()
|
String |
getValueClassName()
|
boolean |
hasContextFactorySpecified()
|
boolean |
hasValueClassSpecified()
|
void |
initializeFromAttributes(Attributes attributes)
This method is sent from the SelfDiagnoseHandler when a configuration is being processed. |
void |
run(ExecutionContext ctx,
DiagnosticTaskResult result)
Run the task. |
void |
setInitalContextFactory(String string)
|
void |
setJndiName(String string)
|
void |
setNamingServerURL(String string)
|
void |
setUp(ExecutionContext ctx)
Override this method to verify that task parameters are initialized/set correctly. |
void |
setValueClassName(String class1)
|
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 CheckJNDIBinding()
Method Detail |
---|
public String getDescription()
getDescription
in class DiagnosticTask
public void initializeFromAttributes(Attributes attributes)
DiagnosticTask
initializeFromAttributes
in class DiagnosticTask
attributes
- org.xml.sax.Attributespublic void setUp(ExecutionContext ctx) throws DiagnoseException
DiagnosticTask
setUp
in class DiagnosticTask
ctx
- ExecutionContext
DiagnoseException
public boolean hasContextFactorySpecified()
public boolean hasValueClassSpecified()
public void run(ExecutionContext ctx, DiagnosticTaskResult result) throws DiagnoseException
DiagnosticTask
run
in class DiagnosticTask
ctx
- ExecutionContextresult
- DiagnosticTaskResult
DiagnoseException
public String getInitalContextFactory()
public String getNamingServerURL()
public String getValueClassName()
public void setInitalContextFactory(String string)
string
- public void setNamingServerURL(String string)
string
- public void setValueClassName(String class1)
class1
- public String getJndiName()
public void setJndiName(String string)
string
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |