Search in sources :

Example 1 with ClientIpAddressInjector

use of alluxio.security.authentication.ClientIpAddressInjector in project alluxio by Alluxio.

the class DefaultFileSystemMaster method getServices.

@Override
public Map<ServiceType, GrpcService> getServices() {
    Map<ServiceType, GrpcService> services = new HashMap<>();
    services.put(ServiceType.FILE_SYSTEM_MASTER_CLIENT_SERVICE, new GrpcService(ServerInterceptors.intercept(new FileSystemMasterClientServiceHandler(this), new ClientIpAddressInjector())));
    services.put(ServiceType.FILE_SYSTEM_MASTER_JOB_SERVICE, new GrpcService(new FileSystemMasterJobServiceHandler(this)));
    services.put(ServiceType.FILE_SYSTEM_MASTER_WORKER_SERVICE, new GrpcService(new FileSystemMasterWorkerServiceHandler(this)));
    return services;
}
Also used : GrpcService(alluxio.grpc.GrpcService) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) HashMap(java.util.HashMap) ServiceType(alluxio.grpc.ServiceType) ClientIpAddressInjector(alluxio.security.authentication.ClientIpAddressInjector)

Aggregations

GrpcService (alluxio.grpc.GrpcService)1 ServiceType (alluxio.grpc.ServiceType)1 ClientIpAddressInjector (alluxio.security.authentication.ClientIpAddressInjector)1 HashMap (java.util.HashMap)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1