edu.internet2.middleware.grouper.j2ee.status
Enum DiagnosticType

java.lang.Object
  extended by java.lang.Enum<DiagnosticType>
      extended by edu.internet2.middleware.grouper.j2ee.status.DiagnosticType
All Implemented Interfaces:
Serializable, Comparable<DiagnosticType>

public enum DiagnosticType
extends Enum<DiagnosticType>

type of diagnostics to run (trivial, deep, etc)

Author:
mchyzer

Enum Constant Summary
all
          do the sources test plus the jobs
daemonJobsOnly
          daemon and loader jobs
db
          just do the trivial plus the database check
sources
          do the DB test plus check the sources
trivial
          just do a trivial memory only test
 
Method Summary
abstract  void appendDiagnostics(Set<DiagnosticTask> diagnosticsTasks)
          append the diagnostics for this tasks
static DiagnosticType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DiagnosticType valueOfIgnoreCase(String string, boolean exceptionOnNotFound)
          do a case-insensitive matching
static DiagnosticType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

trivial

public static final DiagnosticType trivial
just do a trivial memory only test


db

public static final DiagnosticType db
just do the trivial plus the database check


sources

public static final DiagnosticType sources
do the DB test plus check the sources


daemonJobsOnly

public static final DiagnosticType daemonJobsOnly
daemon and loader jobs


all

public static final DiagnosticType all
do the sources test plus the jobs

Method Detail

values

public static DiagnosticType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DiagnosticType c : DiagnosticType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DiagnosticType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

appendDiagnostics

public abstract void appendDiagnostics(Set<DiagnosticTask> diagnosticsTasks)
append the diagnostics for this tasks

Parameters:
diagnosticsTasks -

valueOfIgnoreCase

public static DiagnosticType valueOfIgnoreCase(String string,
                                               boolean exceptionOnNotFound)
do a case-insensitive matching

Parameters:
string -
exceptionOnNotFound - true to throw exception if method not found
Returns:
the enum or null or exception if not found
Throws:
GrouperRestInvalidRequest - if there is a problem