public void set(final DSOClientConfigHelper config, final PreparedComponentsFromL2Connection connectionComponents) { this.portability = config.getPortability(); this.config = config; this.connectionComponents = connectionComponents; }
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); }
private NonPortableObjectState createObjectState(MemberValue value) { String fieldName = getFieldName(value); String typeName = getTypeName(value); boolean isPortable = isPortable(value); boolean isTransient = isTransient(value); boolean neverPortable = isNeverAdaptable(value); boolean isPreInstrumented = isPreInstrumented(value); boolean isRepeated = value.isRepeated(); boolean isSystemType = isSystemType(value); boolean isNull = value.getValueObject() == null; NonPortableObjectState objectState = new NonPortableObjectState(createLabel(value), fieldName, typeName, isPortable, isTransient, neverPortable, isPreInstrumented, isRepeated, isSystemType, isNull); if (!isPortable) { NonPortableReason reason = config.getPortability().getNonPortableReason(getType(value)); objectState.setNonPortableReason(reason); objectState.setExplaination(handleSpecialCases(value)); } return objectState; }
private NonPortableObjectState createRootObjectState(MemberValue value) { String typeName = getTypeName(value); boolean isPortable = isPortable(value); boolean isTransient = isTransient(value); boolean neverPortable = isNeverAdaptable(value); boolean isPreInstrumented = isPreInstrumented(value); boolean isRepeated = value.isRepeated(); boolean isSystemType = isSystemType(value); boolean isNull = value.getValueObject() == null; String fieldName = null; String label; if (context instanceof NonPortableRootContext) { fieldName = ((NonPortableRootContext) context).getFieldName(); } else { fieldName = getFieldName(value); } label = fieldName != null ? fieldName + " (" + typeName + ")" : typeName; NonPortableObjectState objectState = new NonPortableObjectState(label, fieldName, typeName, isPortable, isTransient, neverPortable, isPreInstrumented, isRepeated, isSystemType, isNull); if (!isPortable) { NonPortableReason reason = config.getPortability().getNonPortableReason(getType(value)); objectState.setNonPortableReason(reason); objectState.setExplaination(handleSpecialCases(value)); } return objectState; }
this.channel.getClientIDProvider(), this.classProvider, classFactory, objectFactory, this.config.getPortability(), globalLocalCacheManager, abortableOperationManager);
this.channel.getClientIDProvider(), this.classProvider, classFactory, objectFactory, this.config.getPortability(), globalLocalCacheManager, abortableOperationManager); this.globalLocalCacheManager.initializeTCObjectSelfStore(objectManager);
this.channel.getClientIDProvider(), this.classProvider, classFactory, objectFactory, this.config.getPortability(), this.channel, toggleRefMgr, globalLocalCacheManager, abortableOperationManager);