@Override protected void onOpen() { super.onOpen(); _authenticationManager.getUserMap().put(getName(), this); }
@Override protected void onOpen() { super.onOpen(); Runtime.getRuntime().addShutdownHook(_shutdownHook); LOGGER.debug("Added shutdown hook"); _configurationStore = createStoreObject(); if (isManagementMode()) { _configurationStore = new ManagementModeStoreHandler(_configurationStore, this); } }
@Override protected void onOpen() { super.onOpen(); Set<String> usersInGroup = _groupDatabase.getUsersInGroup(getName()); Collection<GroupMember> members = new ArrayList<GroupMember>(); for (String username : usersInGroup) { UUID id = UUID.randomUUID(); Map<String,Object> attrMap = new HashMap<String, Object>(); attrMap.put(ConfiguredObject.ID,id); attrMap.put(ConfiguredObject.NAME, username); GroupMemberAdapter groupMemberAdapter = new GroupMemberAdapter(attrMap); groupMemberAdapter.registerWithParents(); // todo - this will be safe, but the synchronous open should not be called from the management thread groupMemberAdapter.openAsync(); members.add(groupMemberAdapter); } }
onOpen(); notifyStateChanged(State.UNINITIALIZED, getState()); applyToChildren(new Action<ConfiguredObject<?>>()
@Override protected void onOpen() { super.onOpen(); _tlsProtocolWhiteList = getContextValue(List.class, ParameterizedTypes.LIST_OF_STRINGS, CommonProperties.QPID_SECURITY_TLS_PROTOCOL_WHITE_LIST); _tlsProtocolBlackList = getContextValue(List.class, ParameterizedTypes.LIST_OF_STRINGS, CommonProperties.QPID_SECURITY_TLS_PROTOCOL_BLACK_LIST); _tlsCipherSuiteWhiteList = getContextValue(List.class, ParameterizedTypes.LIST_OF_STRINGS, CommonProperties.QPID_SECURITY_TLS_CIPHER_SUITE_WHITE_LIST); _tlsCipherSuiteBlackList = getContextValue(List.class, ParameterizedTypes.LIST_OF_STRINGS, CommonProperties.QPID_SECURITY_TLS_CIPHER_SUITE_BLACK_LIST); }
@Override protected void onOpen() super.onOpen(); FileGroupDatabase groupDatabase = new FileGroupDatabase(); try
@Override protected void onOpen() { super.onOpen(); long maxAuthDelay = _port.getContextValue(Long.class, Port.CONNECTION_MAXIMUM_AUTHENTICATION_DELAY); SlowConnectionOpenTicker slowConnectionOpenTicker = new SlowConnectionOpenTicker(maxAuthDelay); _aggregateTicker.addTicker(slowConnectionOpenTicker); _lastReadTime = _lastWriteTime = _lastMessageInboundTime = _lastMessageOutboundTime = getCreatedTime().getTime(); _maxUncommittedInMemorySize = getContextValue(Long.class, Connection.MAX_UNCOMMITTED_IN_MEMORY_SIZE); _transactionObserver = _maxUncommittedInMemorySize < 0 ? FlowToDiskTransactionObserver.NOOP_TRANSACTION_OBSERVER : new FlowToDiskTransactionObserver(_maxUncommittedInMemorySize, _logSubject, _eventLoggerProvider.getEventLogger()); logConnectionOpen(); }
@Override public void onOpen() { super.onOpen(); _tlsProtocolWhiteList = getContextValue(List.class, LIST_OF_STRINGS, QPID_SECURITY_TLS_PROTOCOL_WHITE_LIST); _tlsProtocolBlackList = getContextValue(List.class, LIST_OF_STRINGS, QPID_SECURITY_TLS_PROTOCOL_BLACK_LIST); _tlsCipherSuiteWhiteList = getContextValue(List.class, LIST_OF_STRINGS, QPID_SECURITY_TLS_CIPHER_SUITE_WHITE_LIST); _tlsCipherSuiteBlackList = getContextValue(List.class, LIST_OF_STRINGS, QPID_SECURITY_TLS_CIPHER_SUITE_BLACK_LIST); _connectTimeout = getContextValue(Integer.class, QPID_GROUPPROVIDER_CLOUDFOUNDRY_CONNECT_TIMEOUT); _readTimeout = getContextValue(Integer.class, QPID_GROUPPROVIDER_CLOUDFOUNDRY_READ_TIMEOUT); }
@Override protected void onOpen() { super.onOpen(); registerSystemNodes(); _messageStore = createMessageStore(); _messageStoreLogSubject = new MessageStoreLogSubject(getName(), _messageStore.getClass().getSimpleName()); _messageStore.addEventListener(this, Event.PERSISTENT_MESSAGE_SIZE_OVERFULL); _messageStore.addEventListener(this, Event.PERSISTENT_MESSAGE_SIZE_UNDERFULL); _fileSystemMaxUsagePercent = getContextValue(Integer.class, Broker.STORE_FILESYSTEM_MAX_USAGE_PERCENT); _flowToDiskCheckPeriod = getContextValue(Long.class, FLOW_TO_DISK_CHECK_PERIOD); _isDiscardGlobalSharedSubscriptionLinksOnDetach = getContextValue(Boolean.class, DISCARD_GLOBAL_SHARED_SUBSCRIPTION_LINKS_ON_DETACH); QpidServiceLoader serviceLoader = new QpidServiceLoader(); for(ConnectionValidator validator : serviceLoader.instancesOf(ConnectionValidator.class)) { if((_enabledConnectionValidators.isEmpty() && (_disabledConnectionValidators.isEmpty()) || !_disabledConnectionValidators.contains(validator.getType())) || _enabledConnectionValidators.contains(validator.getType())) { _connectionValidators.add(validator); } } PreferencesRoot preferencesRoot = (VirtualHostNode) getParent(); _preferenceStore = preferencesRoot.createPreferenceStore(); _linkRegistry = createLinkRegistry(); createHousekeepingExecutor(); }
@Override public void onOpen() { super.onOpen(); _virtualHostExecutor = getTaskExecutor().getFactory().newInstance("VirtualHostNode-" + getName() + "-Config", () -> { VirtualHost<?> virtualHost = getVirtualHost(); if (virtualHost != null) { return virtualHost.getPrincipal(); } return null; }); _virtualHostExecutor.start(); _durableConfigurationStore = createConfigurationStore(); }
@Override protected void onOpen() super.onOpen();
@Override protected void onOpen() super.onOpen(); final ConfiguredDerivedMethodAttribute<Exchange<?>, Collection<Binding>> durableBindingsAttribute = (ConfiguredDerivedMethodAttribute<Exchange<?>, Collection<Binding>>) getModel().getTypeRegistry().getAttributeTypes(getTypeClass()).get(DURABLE_BINDINGS);