public abstract class AbstractMetadataForParallelTextService extends AbstractLanguagePairService implements MetadataForParallelTextService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractMetadataForParallelTextService() |
AbstractMetadataForParallelTextService(Collection<LanguagePair> supportedPairs) |
AbstractMetadataForParallelTextService(ServiceContext serviceContext,
Collection<LanguagePair> supportedPairs) |
Modifier and Type | Method and Description |
---|---|
protected abstract String[] |
doGetMetadata(String Id) |
protected abstract String[] |
doGetMetadataSchema() |
protected abstract String[] |
doSearchCandidatesWithMetadata(String query,
MatchingMethod matchingMethod) |
String[] |
getMetadata(String Id) |
String[] |
getMetadataSchema() |
String[] |
searchCandidatesWithMetadata(String query,
String matchingMethod) |
protected void |
setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods) |
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs
acquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupException
getComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceName
public AbstractMetadataForParallelTextService()
public AbstractMetadataForParallelTextService(Collection<LanguagePair> supportedPairs)
public AbstractMetadataForParallelTextService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
public String[] getMetadata(String Id) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
getMetadata
in interface MetadataForParallelTextService
AccessLimitExceededException
InvalidParameterException
LanguagePairNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguagePairException
public String[] getMetadataSchema() throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
getMetadataSchema
in interface MetadataForParallelTextService
AccessLimitExceededException
InvalidParameterException
LanguagePairNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguagePairException
public String[] searchCandidatesWithMetadata(String query, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
searchCandidatesWithMetadata
in interface MetadataForParallelTextService
AccessLimitExceededException
InvalidParameterException
LanguagePairNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguagePairException
protected abstract String[] doGetMetadata(String Id) throws InvalidParameterException, ProcessFailedException
protected abstract String[] doGetMetadataSchema() throws ProcessFailedException
ProcessFailedException
protected abstract String[] doSearchCandidatesWithMetadata(String query, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)