public final class DeploymentDescriptorFactory extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static UimaASAggregateDeploymentDescriptor createAggregateDeploymentDescriptor(ServiceContext context, DelegateConfiguration... delegateConfigurations) throws ResourceInitializationException
context
- - contextdelegateConfigurations
- - delegate configurationsResourceInitializationException
- the resource initialization exceptionpublic static UimaASPrimitiveDeploymentDescriptor createPrimitiveDeploymentDescriptor(ServiceContext context) throws ResourceInitializationException
context
- - contextResourceInitializationException
- the resource initialization exceptionpublic static DelegateConfiguration createPrimitiveDelegateConfiguration(String key, ErrorHandlingSettings... errorHandlingSettings)
key
- - unique delegate keyerrorHandlingSettings
- the error handling settingspublic static ColocatedDelegateConfiguration createAggregateDelegateConfiguration(String key, DelegateConfiguration... delegateConfiguration)
key
- - unique delegate keydelegateConfiguration
- the delegate configurationpublic 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 delegatepublic 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 errorpublic 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 windowpublic static CollectionProcessCompleteErrorHandlingSettings createCollectionProcessCompleteErrorHandlingSettings(int timeout, Action action)
timeout
- - CPC timeoutaction
- - action to take on errorCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.