com.partnersoft.net
Enum NetworkService

java.lang.Object
  extended by java.lang.Enum<NetworkService>
      extended by com.partnersoft.net.NetworkService
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NetworkService>

public enum NetworkService
extends java.lang.Enum<NetworkService>

This is a list of known network services, with name, description, type and port number. Not all of these services are provided by the Partner platform; they are listed here primarily to prevent collisions and keep things in one place.

Unfortunately this is a hard-coded class so is unconfigurable and inflexible. It probably needs to evolve into a registry-based system at some point.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Enum Constant Summary
BARSOOM
           
CLIENT_JETTY
           
CLIENT_MYSQL
           
GUPPY
           
HOLLER
           
HUB_JETTY
           
HUB_MYSQL
           
HUB_WEB_SERVICE
           
MAP_CONTROL_CSV
           
MAP_SERVER
           
MAPAPP_WEB_SERVICE
           
PARTNER_WEB
           
STAKER_JOB_LIBRARY
           
YONDER
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 int getPortNumber()
           
 java.lang.String getProtocol()
           
 java.lang.String getType()
           
 java.lang.String toString()
           
static NetworkService valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NetworkService[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PARTNER_WEB

public static final NetworkService PARTNER_WEB

STAKER_JOB_LIBRARY

public static final NetworkService STAKER_JOB_LIBRARY

GUPPY

public static final NetworkService GUPPY

BARSOOM

public static final NetworkService BARSOOM

MAP_CONTROL_CSV

public static final NetworkService MAP_CONTROL_CSV

YONDER

public static final NetworkService YONDER

HUB_WEB_SERVICE

public static final NetworkService HUB_WEB_SERVICE

MAPAPP_WEB_SERVICE

public static final NetworkService MAPAPP_WEB_SERVICE

MAP_SERVER

public static final NetworkService MAP_SERVER

HOLLER

public static final NetworkService HOLLER

HUB_JETTY

public static final NetworkService HUB_JETTY

CLIENT_JETTY

public static final NetworkService CLIENT_JETTY

HUB_MYSQL

public static final NetworkService HUB_MYSQL

CLIENT_MYSQL

public static final NetworkService CLIENT_MYSQL
Method Detail

values

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

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

valueOf

public static NetworkService 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<NetworkService>

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

getType

public java.lang.String getType()

getPortNumber

public int getPortNumber()

getProtocol

public java.lang.String getProtocol()