com.force.sdk.jpa.schema
Class ForceAsyncResultProcessor

java.lang.Object
  extended by 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
           
 
Constructor Summary
ForceAsyncResultProcessor()
           
 
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
 

Field Detail

LOGGER

protected static final org.slf4j.Logger LOGGER
Constructor Detail

ForceAsyncResultProcessor

public ForceAsyncResultProcessor()
Method Detail

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 connection
ar - the result returned from a metadata API call
throwOnErrors - whether an exception should be thrown when errors are encountered
metaData - 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.