com.philemonworks.selfdiagnose
Class Check

java.lang.Object
  extended by com.philemonworks.selfdiagnose.Check

public class Check
extends Object

Check is a Factory to the creation of all DiagnosticTasks of type "Check".

Author:
E.M.Micklei

Method Summary
static String classLoadable(String className)
           
static String dataSourceName(String dataSourceName)
           
static String directory(String pathName)
           
static String directory(String pathName, boolean mustBeWriteable)
           
static String fileContainsString(String fileName, String substring)
           
static String jndiBinding(String namingServerURL, String initalContextFactory, String jndiName, String valueClassName)
          Register a task that checks that naming server has a binding with the correct type.
static String nlsKey(String key)
           
static String property(String propertiesResourceName, String key)
           
static String propertyIsEmailAddress(String resourceName, String key)
           
static String propertyMatches(String resourceName, String key, String pattern)
          Register a task that checks that the value of the property at this key matches a pattern.
static String resourceBundleKey(String name, String key)
           
static String resourceName(String resourceName)
           
static String url(String urlSpec)
           
static String validURL(String urlSpec)
          Register a task that checks that the url is syntactically correct.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

classLoadable

public static String classLoadable(String className)
Parameters:
className -
Returns:
String className

dataSourceName

public static String dataSourceName(String dataSourceName)
Parameters:
dataSourceName -
Returns:
String dataSourceName

directory

public static String directory(String pathName)
Parameters:
pathName -
Returns:
String pathName

directory

public static String directory(String pathName,
                               boolean mustBeWriteable)
Parameters:
pathName -
mustBeWriteable -
Returns:
String pathName

fileContainsString

public static String fileContainsString(String fileName,
                                        String substring)
Parameters:
fileName -
substring -
Returns:
String substring

jndiBinding

public static String jndiBinding(String namingServerURL,
                                 String initalContextFactory,
                                 String jndiName,
                                 String valueClassName)
Register a task that checks that naming server has a binding with the correct type. Task parameters are not validated until the task is running.

Parameters:
namingServerURL - String
initalContextFactory - String
jndiName - String
valueClassName - String
Returns:
String the jndiName parameter

nlsKey

public static String nlsKey(String key)
Parameters:
key -
Returns:
String key

property

public static String property(String propertiesResourceName,
                              String key)
Parameters:
propertiesResourceName -
key -
Returns:
String key

propertyIsEmailAddress

public static String propertyIsEmailAddress(String resourceName,
                                            String key)
Parameters:
resourceName -
key -
Returns:
String key

propertyMatches

public static String propertyMatches(String resourceName,
                                     String key,
                                     String pattern)
Register a task that checks that the value of the property at this key matches a pattern. Task parameters are not validated until the task is running.

Parameters:
resourceName - String
key - String
pattern - String
Returns:
String the key parameter

resourceBundleKey

public static String resourceBundleKey(String name,
                                       String key)
Parameters:
name -
key -
Returns:
String name

resourceName

public static String resourceName(String resourceName)
Parameters:
resourceName -
Returns:
String resourceName

url

public static String url(String urlSpec)
Parameters:
urlSpec -
Returns:
String urlSpec

validURL

public static String validURL(String urlSpec)
Register a task that checks that the url is syntactically correct. Task parameters are not validated until the task is running.

Parameters:
urlSpec -
Returns:
String urlSpec


Copyright © 2012. All Rights Reserved.