public class FaceApiService extends com.facebook.swift.service.ThriftServerService implements FaceApiServiceConstants
FaceLogImpl服务封装DEFAULT_FRAME_CODEC_FACTORIES, DEFAULT_PROTOCOL_FACTORIES, HTTP_TRANSPORT, JSON_PROTOCOL, processor, serviceName, thriftServer, thriftServerConfigDEFAULT_PORT, DEFAULT_PORT_RESTFUL, DEFAULT_PORT_XHR, FACEAPI_CLASS_OPTION_DESC, FACEAPI_CLASS_OPTION_LONG, FACEAPI_CONCURRENCY_OPTION, FACEAPI_CONCURRENCY_OPTION_DESC, FACEAPI_CONCURRENCY_OPTION_LONG, FACEAPI_CORS_ENABLE_OPTION, FACEAPI_CORS_ENABLE_OPTION_DESC, FACEAPI_CORS_ENABLE_OPTION_LONG, FACEAPI_RESTFUL_OPTION, FACEAPI_RESTFUL_OPTION_DESC, FACEAPI_RESTFUL_OPTION_LONG, FACEAPI_RESTFUL_START_OPTION, FACEAPI_RESTFUL_START_OPTION_DESC, FACEAPI_RESTFUL_START_OPTION_LONG, FACEAPI_STATIC_OPTION_DESC, FACEAPI_STATIC_OPTION_LONG, FACEAPI_SWAGGER_ENABLE_OPTION, FACEAPI_SWAGGER_ENABLE_OPTION_DESC, FACEAPI_SWAGGER_ENABLE_OPTION_LONG, FACEAPI_XHR_OPTION, FACEAPI_XHR_OPTION_DESC, FACEAPI_XHR_OPTION_LONG, FACEAPI_XHR_START_OPTION, FACEAPI_XHR_START_OPTION_DESC, FACEAPI_XHR_START_OPTION_LONGCONNECTION_LIMIT_OPTION_DESC, CONNECTION_LIMIT_OPTION_LONG, DEFAULT_CONNECTION_LIMIT, DEFAULT_IDLE_TIMEOUT, DEFAULT_STATIC_METHOD, IDLE_CONNECTION_TIMEOUT_OPTION_DESC, IDLE_CONNECTION_TIMEOUT_OPTION_LONG, SERVICE_PORT_OPTION_DESC, SERVICE_PORT_OPTION_LONG, WORK_THREADS_OPTION_DESC, WORK_THREADS_OPTION_LONG| Constructor and Description |
|---|
FaceApiService(java.util.List<?> services,
java.util.List<com.facebook.swift.service.ThriftEventHandler> eventHandlers,
com.facebook.swift.service.ThriftServerConfig thriftServerConfig) |
| Modifier and Type | Method and Description |
|---|---|
static FaceApiService |
buildHttpService()
创建HTTP服务实例(http,json)
|
static FaceApiService |
buildService()
创建服务实例(frame,binary)
|
static FaceApiService |
getHttpService() |
static FaceApiService |
getService() |
static com.facebook.swift.service.ThriftServerConfig |
makeThriftServerConfig()
从配置文件中读取参数创建
ThriftServerConfig实例 |
static void |
startRestfulService()
启动RESTful WEB服务实例
|
addCorsHandlerIfHttp, bulider, getThriftServerConfig, logThriftServerConfig, serviceName, shutDown, startUppublic FaceApiService(java.util.List<?> services, java.util.List<com.facebook.swift.service.ThriftEventHandler> eventHandlers, com.facebook.swift.service.ThriftServerConfig thriftServerConfig)
public static com.facebook.swift.service.ThriftServerConfig makeThriftServerConfig()
ThriftServerConfig实例public static final FaceApiService buildService()
public static final FaceApiService buildHttpService()
public static final void startRestfulService()
public static FaceApiService getService()
public static FaceApiService getHttpService()
Copyright © 2020. All rights reserved.