public ManagerImpl(final boolean startClient, final ClientObjectManager objectManager, final ClientTransactionManager txManager, final ClientLockManager lockManager, final RemoteSearchRequestManager searchRequestManager, final DSOClientConfigHelper config, final PreparedComponentsFromL2Connection connectionComponents, final boolean shutdownActionRequired, final ClassLoader loader, final boolean isExpressRejoinMode, final TCSecurityManager securityManager, final ProductID productId) { this.objectManager = objectManager; this.securityManager = securityManager; this.txManager = txManager; this.lockManager = lockManager; this.searchRequestManager = searchRequestManager; this.config = config; this.startClient = startClient; this.connectionComponents = connectionComponents; this.productId = productId; this.rejoinManager = new RejoinManagerImpl(isExpressRejoinMode); this.dsoCluster = new DsoClusterImpl(rejoinManager); this.uuid = UUID.getUUID(); if (shutdownActionRequired) { this.shutdownAction = new Thread(new ShutdownAction(), L1VMShutdownHookName); // Register a shutdown hook for the terracotta client Runtime.getRuntime().addShutdownHook(this.shutdownAction); } else { this.shutdownAction = null; } this.classProvider = new SingleLoaderClassProvider(loader == null ? getClass().getClassLoader() : loader); this.lockIdFactory = new LockIdFactory(this); this.platformService = new PlatformServiceImpl(this, isExpressRejoinMode); logger.info("manager created with rejoinEnabled=" + isExpressRejoinMode); }
public ManagerImpl(final boolean startClient, final ClientObjectManager objectManager, final ClientTransactionManager txManager, final ClientLockManager lockManager, final RemoteSearchRequestManager searchRequestManager, final DSOClientConfigHelper config, final PreparedComponentsFromL2Connection connectionComponents, final boolean shutdownActionRequired, final ClassLoader loader, final boolean isExpressRejoinMode, final TCSecurityManager securityManager) { this.objectManager = objectManager; this.securityManager = securityManager; this.portability = config == null ? null : config.getPortability(); this.txManager = txManager; this.lockManager = lockManager; this.searchRequestManager = searchRequestManager; this.config = config; this.startClient = startClient; this.connectionComponents = connectionComponents; this.rejoinManager = new RejoinManagerImpl(isExpressRejoinMode); this.dsoCluster = new DsoClusterImpl(rejoinManager); this.uuid = UUID.getUUID(); if (shutdownActionRequired) { this.shutdownAction = new Thread(new ShutdownAction(), L1VMShutdownHookName); // Register a shutdown hook for the terracotta client Runtime.getRuntime().addShutdownHook(this.shutdownAction); } else { this.shutdownAction = null; } this.classProvider = new SingleLoaderClassProvider(loader == null ? getClass().getClassLoader() : loader); this.lockIdFactory = new LockIdFactory(this); this.platformService = new PlatformServiceImpl(this, isExpressRejoinMode); logger.info("manager created with rejoinEnabled=" + isExpressRejoinMode); }