|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.client.local.LocalService
com.esri.client.local.LocalGeoprocessingService
public class LocalGeoprocessingService

Class representing a geoprocessing service on the LocalServer.
| Field Summary |
|---|
| Fields inherited from class com.esri.client.local.LocalService |
|---|
_serviceType, CREATE_SERVICE_FILE_PATH, CREATE_SERVICE_NAME, CREATE_SERVICE_TYPE |
| Constructor Summary | |
|---|---|
LocalGeoprocessingService()
Default constructor; constructs a LocalGeoprocessingService without any reference to local data. |
|
LocalGeoprocessingService(String path)
Constructs from a path to data; typically this is the path to a GPK. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Get a description for the service. |
int |
getMaximumRecords()
Gets the maximum number of records. |
String |
getPath()
Gets the path. |
GPServiceType |
getServiceType()
Gets the service type. |
String |
getUrlGeoprocessingService()
Gets the URL to the geoprocessing service. |
void |
setMaximumRecords(int maxRecords)
Sets the maximum records that can be returned by the geoprocessing service. |
void |
setPath(String path)
Sets the path; this is typically a path to a GPK on disk. |
void |
setServiceType(GPServiceType gpServiceType)
Sets the service type to use when starting the geoprocessing service. |
LocalServiceStatus |
start()
Starts the service on the LocalServer and blocks the application till the service has stopped. |
void |
startAsync()
Starts the service on the LocalServer and allows the application to remain responsive while the service is starting. |
| Methods inherited from class com.esri.client.local.LocalService |
|---|
addLocalServiceStartCompleteListener, addLocalServiceStopCompleteListener, completeStart, deleteService, failStart, failStart, fireLocalServiceStartCompleteEvent, getEndpoints, getError, getStatus, getUrl, removeLocalServiceStartCompleteListener, removeLocalServiceStopCompleteListener, sendRequest, setError, setStatus, startAsyncInner, startInner, stop, stopAsync |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalGeoprocessingService()
setPath() method before starting
this service.
public LocalGeoprocessingService(String path)
path - Path to data.| Method Detail |
|---|
public String getUrlGeoprocessingService()
public String getPath()
public void setPath(String path)
path - Path to set.public void startAsync()
LocalServiceaddLocalServiceStartCompleteListener(LocalServiceStartCompleteListener) method to listen for the start complete event.
Alternatively, use the getStatus() and getError() methods the LocalServiceStatus is STARTED before using the service.
- Specified by:
startAsync in class LocalService
public LocalServiceStatus start()
LocalService
start in class LocalServicepublic String getDescription()
LocalService
getDescription in class LocalServicepublic void setServiceType(GPServiceType gpServiceType)
gpServiceType - the service typepublic GPServiceType getServiceType()
public void setMaximumRecords(int maxRecords)
maxRecords - the maximum recordspublic int getMaximumRecords()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||