Skip to content
Maurice Zeijen edited this page Mar 17, 2016 · 6 revisions

File System

Verifies access properties of a directory in a File System.

<checkdirectoryaccessible
  name="/home/user"
  read="true"
  write="false"
/>

Scans a file for at least one occurrence of a String.

<checkfilecontainsstring
  name="environment.properties"
  string="smtp.xs4all.nl"
/>

Verifies that each Java type name is loadable. The pattern parameter is used to filter only those keys for which the value represent a Java type.

<checkpropertyvaluesarejavatypes
  name="some.properties"
  filter=".*[.]class"
/>

Verifies the availability of a resource by name on the classpath.

<checkresourceaccessible
  name="application.properties"
/>

Database

Checks whether the naming server has a JNDI binding for a given name.

<checkjndibinding
  name="jdbc/mydb"
/>

Verifies the availability and ability to create a connection to a DataSource.

<checkdatasourceconnectable
  name="jdbc/demo"
/>

Verifies whether a database schema has a definition for a table. This task requires a datasource. It uses the basic COUNT(*) query to detect table presence. If found then the number of records is reported.

<checkdatabasetableexists
  name="BUZ.CUSTOMERS"
  datasource="BusinessDs"
/>

Message Queue

Check whether the naming server has a JNDI binding for a given name.

Optional parameters are "class" , the JNDI server "url" and "factory". If you add a variable declaration then you can use CheckBeanProperty to access the properties of the Queue object.

<checkjndibinding
  name="jms/Orders"
/>

Network

Reads a header field from the current Http Servlet Request and matches it against a pattern if specified.

<checkhttprequestheader
  header="Content-Type"
  protocol="http"
  pattern="text*"
/>

Verifies that an URL is reachable by connecting to it and inspecting the (http) response code.

<checkurlreachable
  url="http://www.google.com"
/>

Verifies the syntax of a given URL.

<checkvalidurl
  url="http://www.nu.nl"
/>

Verifies the presence of an element or attribute (by evaluating an XPath) and optionally test is against a given pattern.

<checkxmlcontent
  url="${variable with URL value}"
  xpath="/root/child"
  pattern="childvalue"
/>

Miscellaneous

Reports information written by a Maven build.

<reportmavenpomproperties
  name="/META-INF/maven/package/app/pom.properties"
/>

Verifies that a given class is loadable.

<checkclassloadable
  name="org.xml.sax.Attributes"
/>

Checks a property and matches its (String) value to a regular expression pattern. This task can only be used together with another task that provides the bean by inserting a variable into the execution context

<checkbeanproperty
  bean="${name of var}"
  property="attribute name"
  pattern="regular expression"
/>

Checks a global Java System property.

<checksystemproperty
  property="java.version"
/>

lue is specified by an expression that refers to objects available in the execution context. The pattern attribute speficy the regular expression that is used to perform the match against the value. If a variable is specified then store the element into the execution context using the variable name.

<checkvaluematches
  value="${country_names[0]}"
  pattern="NL"
/>

Verifies the existence of a given key for a given resource.

<checkresourcebundlekey
  name="some.properties"
  key="welcome"
/>

Verifies the availability of a property in a resource.

<checkresourceproperty
  name="some.properties"
  property="help.url"
/>

CheckMBeanProperty is a DiagnosticTask that checks a property and matches its (String) value to a regular expression pattern.

<checkmbeanproperty
  query="MyApp:name=myBean"
  operation="getVersion"
/>

Reporting

ReportMavenPOMProperties is a task that reports the Maven build properties which are included in the application if it is build using Maven.

<reportmavenpomproperties
  comment="Maven POM properties"
  name="/META-INF/maven/com.yours.appp/myapp/pom.properties"
/>

ReportJVMRuntimeMemory is a task that reports the current JVM memory consumption.

<reportjvmruntimememory
  comment="Java VM Memory"
/>

ReportProperties can dump the key value pairs of a Properties object. This object must be available in the execution context of the tasks. Use a context variable to put a Properties in that context. Here by the name "myProperties".

<reportproperties
  value="${myProperties}"
  comment="my.properties"
/>

ReportMap can dump the key value pairs of a Map object. This object must be available in the execution context of the tasks. Use a context variable to put a Properties in that context. Here by the name "myMap".

<reportmap
  value="${myMap}"
  comment="my.map"
/>

ReportJamonMonitors reports for each Monitor its main statistics values (hits,max,min,avg,last).

<reportjamonmonitors
  comment="Jamon monitors"
/>

Third Party

Checks the availability of a component and its property. If a pattern is specified then perform the match and report the result.

<checkatgcomponentproperty
  component="/atg/dynamo/Configuration"
  property="siteHttpServerName"
/>

Checks the availability of an Endeca service by running a query. It reports the results of this query by count and execution time.

<checkendecaservice
  host="10.10.10.1"
  port="8000"
  query="N=0"
/>

Verifies the operational status of a ListenerPort in WAS.

<checkwebspherejmslistenerport
  name="sli_caseStatusService-ontvangenBLIBerichtLp"
/>

Checks the value of a property from an object that is available in the Spring ApplicationContext.

<checkspringbeanproperty
  id="myBean"
  property="myFieldOrOperation"
  pattern="*.*"
/>

Access a Datasource from the application context and uses that to check that a connection can be created (and closed)

<checkspringdatasourceconnectable
  name="myDatasource"
/>