use of com.hazelcast.internal.usercodedeployment.impl.ClassDataProvider in project hazelcast by hazelcast.
the class UserCodeDeploymentService method init.
@Override
public void init(NodeEngine nodeEngine, Properties properties) {
UserCodeDeploymentConfig config = nodeEngine.getConfig().getUserCodeDeploymentConfig();
if (!config.isEnabled()) {
return;
}
ClassLoader parent = nodeEngine.getConfigClassLoader().getParent();
Filter<String> classNameFilter = parseClassNameFilters(config);
Filter<Member> memberFilter = parseMemberFilter(config.getProviderFilter());
ConcurrentMap<String, ClassSource> classMap = new ConcurrentHashMap<String, ClassSource>();
UserCodeDeploymentConfig.ProviderMode providerMode = config.getProviderMode();
ILogger providerLogger = nodeEngine.getLogger(ClassDataProvider.class);
provider = new ClassDataProvider(providerMode, parent, classMap, providerLogger);
UserCodeDeploymentConfig.ClassCacheMode classCacheMode = config.getClassCacheMode();
locator = new ClassLocator(classMap, parent, classNameFilter, memberFilter, classCacheMode, nodeEngine);
enabled = config.isEnabled();
}
Aggregations