jp.go.nict.langrid.servicecontainer.executor.protobufrpc
クラス PbTranslationServiceExecutor

java.lang.Object
  上位を拡張 jp.go.nict.langrid.servicecontainer.service.component.AbstractServiceExecutor
      上位を拡張 jp.go.nict.langrid.servicecontainer.executor.protobufrpc.AbstractPbServiceExecutor
          上位を拡張 jp.go.nict.langrid.servicecontainer.executor.protobufrpc.PbTranslationServiceExecutor
すべての実装されたインタフェース:
TranslationService

public class PbTranslationServiceExecutor
extends AbstractPbServiceExecutor
implements TranslationService

Protocol Buffers 用 外部翻訳サービス呼び出しクラス


コンストラクタの概要
PbTranslationServiceExecutor(String invocationName)
           
PbTranslationServiceExecutor(String invocationName, long invocationId, Endpoint endpoint)
           
 
メソッドの概要
 String translate(String sourceLang, String targetLang, String source)
          翻訳を行う。
 
クラス jp.go.nict.langrid.servicecontainer.executor.protobufrpc.AbstractPbServiceExecutor から継承されたメソッド
postprocessPb, preprocessPb
 
クラス jp.go.nict.langrid.servicecontainer.service.component.AbstractServiceExecutor から継承されたメソッド
getInvocationName, postprocess, preprocess
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PbTranslationServiceExecutor

public PbTranslationServiceExecutor(String invocationName)

PbTranslationServiceExecutor

public PbTranslationServiceExecutor(String invocationName,
                                    long invocationId,
                                    Endpoint endpoint)
メソッドの詳細

translate

public String translate(String sourceLang,
                        String targetLang,
                        String source)
                 throws AccessLimitExceededException,
                        InvalidParameterException,
                        LanguagePairNotUniquelyDecidedException,
                        NoAccessPermissionException,
                        ProcessFailedException,
                        NoValidEndpointsException,
                        ServerBusyException,
                        ServiceNotActiveException,
                        ServiceNotFoundException,
                        UnsupportedLanguagePairException
インタフェース TranslationService の記述:
翻訳を行う。

定義:
インタフェース TranslationService 内の translate
パラメータ:
sourceLang - 翻訳元言語(RFC3066準拠)
targetLang - 翻訳先言語(RFC3066準拠)
source - 翻訳する文字列
戻り値:
翻訳された文字列
例外:
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
LanguagePairNotUniquelyDecidedException - 複数の言語ペア候補が存在する
UnsupportedLanguagePairException - サポートされていない言語対が指定された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ProcessFailedException - 翻訳処理に失敗した
NoValidEndpointsException - 有効なエンドポイントが無い
ServerBusyException - サーバが混雑していて処理が実行できない
ServiceNotActiveException - サービスはアクティブではない
ServiceNotFoundException - 指定されたサービスが見つからない