com.esri.client.local
Enum GPServiceType

java.lang.Object
  extended by java.lang.Enum<GPServiceType>
      extended by com.esri.client.local.GPServiceType
All Implemented Interfaces:
Serializable, Comparable<GPServiceType>

public enum GPServiceType
extends Enum<GPServiceType>

The Enum GPServiceType defines how geoprocessing services are run on the LocalServer.


Enum Constant Summary
EXECUTE
           The service will execute tasks synchronously on the LocalServer.
SUBMIT_JOB
           The service will run tasks asynchronously on the LocalServer.
SUBMIT_JOB_WITH_MAP_SERVER_RESULT
           The service will run tasks asynchronously.
 
Method Summary
static GPServiceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GPServiceType[] 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

EXECUTE

public static final GPServiceType EXECUTE

The service will execute tasks synchronously on the LocalServer.

Use this for tasks that run quickly (approximately 15 seconds). The Geoprocessor.execute method is typically used to initiate tasks in this service.


SUBMIT_JOB

public static final GPServiceType SUBMIT_JOB

The service will run tasks asynchronously on the LocalServer.

The Geoprocessor.submitJobAndGetResultsAsync method is typically used to initiate tasks in this service.


SUBMIT_JOB_WITH_MAP_SERVER_RESULT

public static final GPServiceType SUBMIT_JOB_WITH_MAP_SERVER_RESULT

The service will run tasks asynchronously.

The Geoprocessor.submitJobAsync method is typically used to initiate tasks in this service. A result of a task can be displayed as a layer in a map using the GPMapImage class.

Method Detail

values

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

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

valueOf

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


Copyright © 2012. All Rights Reserved.