server.testmodules
Enum TestModule.TestType

java.lang.Object
  extended by java.lang.Enum<TestModule.TestType>
      extended by server.testmodules.TestModule.TestType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TestModule.TestType>
Enclosing class:
TestModule

public static enum TestModule.TestType
extends java.lang.Enum<TestModule.TestType>

Enumeration determining the test type.


Enum Constant Summary
ping
           
speed
           
 
Method Summary
 Communicator createTestModule(TestModule.TestType type, SocketWrapper socket, AbstractServer server)
          Creates the TestModule type.
static TestModule.TestType getTestType(java.lang.String name)
          Gets the test type.
static TestModule.TestType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TestModule.TestType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ping

public static final TestModule.TestType ping

speed

public static final TestModule.TestType speed
Method Detail

values

public static TestModule.TestType[] 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 (TestModule.TestType c : TestModule.TestType.values())
    System.out.println(c);

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

valueOf

public static TestModule.TestType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getTestType

public static TestModule.TestType getTestType(java.lang.String name)
Gets the test type.

Parameters:
name - The name to of the test that is unknown.
Returns:
The test type of the test.

createTestModule

public Communicator createTestModule(TestModule.TestType type,
                                     SocketWrapper socket,
                                     AbstractServer server)
Creates the TestModule type.

Parameters:
type - The test type.
socket - The socket used in the test.
server - The server the test is run on.
Returns:
The type of TestModule created.