com.force.sdk.jpa.schema
Class ForceAsyncResultProcessor
java.lang.Object
com.force.sdk.jpa.schema.ForceAsyncResultProcessor
- Direct Known Subclasses:
- ForceMetaData, ForceSchemaWriter
public abstract class ForceAsyncResultProcessor
- extends Object
Processor for results from Force.com metadata API requests. Used during schema creation.
- Author:
- Fiaz Hossain
Field Summary |
protected static org.slf4j.Logger |
LOGGER
|
Method Summary |
protected void |
waitForAsyncResult(com.sforce.soap.metadata.MetadataConnection service,
com.sforce.soap.metadata.AsyncResult[] ar,
boolean throwOnErrors,
Object metaData)
Checks the results of a Force.com metadata API call and waits until the status
indicates the request is finished. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final org.slf4j.Logger LOGGER
ForceAsyncResultProcessor
public ForceAsyncResultProcessor()
waitForAsyncResult
protected void waitForAsyncResult(com.sforce.soap.metadata.MetadataConnection service,
com.sforce.soap.metadata.AsyncResult[] ar,
boolean throwOnErrors,
Object metaData)
throws RemoteException,
InterruptedException
- Checks the results of a Force.com metadata API call and waits until the status
indicates the request is finished. Any errors will throw an exception if throwOnErrors
is true
- Parameters:
service
- the metadata API connectionar
- the result returned from a metadata API callthrowOnErrors
- whether an exception should be thrown when errors are encounteredmetaData
- the object passed to the metadata API request
- Throws:
RemoteException
- thrown if there is a problem completing the request
InterruptedException
- thrown if the request is interrupted
Copyright © 2011. All Rights Reserved.