jhomenet.hw.pollers
Enum PollingService.PollingTypes

java.lang.Object
  extended by java.lang.Enum<PollingService.PollingTypes>
      extended by jhomenet.hw.pollers.PollingService.PollingTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PollingService.PollingTypes>
Enclosing class:
PollingService

public static enum PollingService.PollingTypes
extends java.lang.Enum<PollingService.PollingTypes>
implements java.io.Serializable

Define the different polling types. The current polling service only will poll on the defined polling intervals.


Enum Constant Summary
FiveMinutes
           
OneHour
           
OneMinute
           
TenSeconds
           
ThirtyMinutes
           
TwelveHours
           
 
Method Summary
 long getMS()
          Get the polling type interval in milliseconds.
 java.lang.String toString()
          Return a string representation of the polling type.
static PollingService.PollingTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PollingService.PollingTypes[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TenSeconds

public static final PollingService.PollingTypes TenSeconds

OneMinute

public static final PollingService.PollingTypes OneMinute

FiveMinutes

public static final PollingService.PollingTypes FiveMinutes

ThirtyMinutes

public static final PollingService.PollingTypes ThirtyMinutes

OneHour

public static final PollingService.PollingTypes OneHour

TwelveHours

public static final PollingService.PollingTypes TwelveHours
Method Detail

values

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

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

valueOf

public static PollingService.PollingTypes 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

toString

public java.lang.String toString()
Return a string representation of the polling type.

Overrides:
toString in class java.lang.Enum<PollingService.PollingTypes>

getMS

public long getMS()
Get the polling type interval in milliseconds.

Returns:
The polling type interval (in milliseconds)


Copyright © 2004-2005 David Irwin. All Rights Reserved.