public class JavaServiceExecutor<T> extends AbstractServiceExecutor implements InvocationHandler
| Constructor and Description |
|---|
JavaServiceExecutor(String invocationName,
Class<T> interfaceClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFrontEndLogProcess(String serviceId,
int status,
int requestLength,
long responseMillis,
int responseLength) |
protected void |
doFrontEndPostprocess(int responseLength) |
protected String |
doFrontEndPreprocessAndServiceLocating(String serviceId) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected void |
postprocessJava(long iid,
long deltaTime) |
protected jp.go.nict.langrid.commons.util.Trio<ServiceContext,String,Long> |
preprocessJava() |
protected void |
setAndRethrowException(LangridException e) |
protected void |
setException(Throwable t) |
getInvocationName, postprocess, preprocesspublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowableprotected jp.go.nict.langrid.commons.util.Trio<ServiceContext,String,Long> preprocessJava() throws ServiceNotActiveException, ServiceNotFoundException
protected void postprocessJava(long iid,
long deltaTime)
protected String doFrontEndPreprocessAndServiceLocating(String serviceId) throws ServiceNotActiveException, ServiceNotFoundException, ProcessFailedException, AccessLimitExceededException, NoAccessPermissionException, DaoException
protected void doFrontEndPostprocess(int responseLength)
throws AccessLimitExceededException,
ProcessFailedException,
DaoException
protected void doFrontEndLogProcess(String serviceId, int status, int requestLength, long responseMillis, int responseLength) throws ProcessFailedException, DaoException
ProcessFailedExceptionDaoExceptionprotected void setException(Throwable t)
protected void setAndRethrowException(LangridException e) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException