|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.resourceSpecifier.factory.DeploymentDescriptorFactory
public final class DeploymentDescriptorFactory
Factory class providing static API to generate UIMA AS Deployment Descriptor. Supports creation of both Primitive and Aggregate Deployment Descriptors.
Method Summary | |
---|---|
static ColocatedDelegateConfiguration |
createAggregateDelegateConfiguration(String key,
DelegateConfiguration... delegateConfiguration)
Creates Delegate Configuration for a co-located delegate. |
static UimaASAggregateDeploymentDescriptor |
createAggregateDeploymentDescriptor(ServiceContext context,
DelegateConfiguration... delegateConfigurations)
Creates new Aggregate UIMA-AS DeploymentDescriptor object. |
static CollectionProcessCompleteErrorHandlingSettings |
createCollectionProcessCompleteErrorHandlingSettings(int timeout,
Action action)
Creates Error Handling Configuration for CPC using provided settings |
static GetMetaErrorHandlingSettings |
createGetMetaErrorHandlingSettings()
Creates Default Error Handling Settings for GetMeta |
static GetMetaErrorHandlingSettings |
createGetMetaErrorHandlingSettings(int retryCount,
int timeout,
Action action)
Creates Error Handling Configuration for GetMeta with provided settings |
static DelegateConfiguration |
createPrimitiveDelegateConfiguration(String key,
ErrorHandlingSettings... errorHandlingSettings)
Creates Delegate Configuration for a Primitive delegate. |
static UimaASPrimitiveDeploymentDescriptor |
createPrimitiveDeploymentDescriptor(ServiceContext context)
Creates new Primitive UIMA-AS DeploymentDescriptor object. |
static ProcessErrorHandlingSettings |
createProcessErrorHandlingSettings()
Creates Default Error Handling Configuration for Process |
static ProcessErrorHandlingSettings |
createProcessErrorHandlingSettings(int retryCount,
int timeout,
Action action,
boolean continueOnRetryFailure,
int thresholdCount,
int thresholdWindow)
Creates Error Handling Configuration for Process using provided settings |
static RemoteDelegateConfiguration |
createRemoteDelegateConfiguration(String key,
String brokerURL,
String endpoint,
SerializationStrategy serialization,
ErrorHandlingSettings... errorHandlingSettings)
Creates Delegate Configuration for a remote delegate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UimaASAggregateDeploymentDescriptor createAggregateDeploymentDescriptor(ServiceContext context, DelegateConfiguration... delegateConfigurations) throws ResourceInitializationException
context
- - contextdelegateConfigurations
- - delegate configurations
ResourceInitializationException
- the resource initialization exceptionpublic static UimaASPrimitiveDeploymentDescriptor createPrimitiveDeploymentDescriptor(ServiceContext context) throws ResourceInitializationException
context
- - context
ResourceInitializationException
- the resource initialization exceptionpublic static DelegateConfiguration createPrimitiveDelegateConfiguration(String key, ErrorHandlingSettings... errorHandlingSettings)
key
- - unique delegate keyerrorHandlingSettings
- the error handling settings
public static ColocatedDelegateConfiguration createAggregateDelegateConfiguration(String key, DelegateConfiguration... delegateConfiguration)
key
- - unique delegate keydelegateConfiguration
- the delegate configuration
public static RemoteDelegateConfiguration createRemoteDelegateConfiguration(String key, String brokerURL, String endpoint, SerializationStrategy serialization, ErrorHandlingSettings... errorHandlingSettings)
key
- - unique delegate keybrokerURL
- - broker urlendpoint
- - delegate remote endpointserialization
- - serialization strategy (xmi or binary)errorHandlingSettings
- - error handling settings for this delegate
public static GetMetaErrorHandlingSettings createGetMetaErrorHandlingSettings()
public static GetMetaErrorHandlingSettings createGetMetaErrorHandlingSettings(int retryCount, int timeout, Action action)
retryCount
- - retry count for GetMetatimeout
- - GetMeta timeout in millisaction
- - action to take on error
public static ProcessErrorHandlingSettings createProcessErrorHandlingSettings()
public static ProcessErrorHandlingSettings createProcessErrorHandlingSettings(int retryCount, int timeout, Action action, boolean continueOnRetryFailure, int thresholdCount, int thresholdWindow)
retryCount
- - number of retriestimeout
- - Process timeout in millisaction
- - action to take on errorcontinueOnRetryFailure
- - continue on retry failure (true/false)thresholdCount
- - threshold limit triggering action to be takenthresholdWindow
- - error threshold window
public static CollectionProcessCompleteErrorHandlingSettings createCollectionProcessCompleteErrorHandlingSettings(int timeout, Action action)
timeout
- - CPC timeoutaction
- - action to take on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |