public URI getDomain() { return info.getDomain(); }
public URI getDomain() { return info.getDomain(); }
public AbstractDomainMBean(Domain domain, MetaDataStore store, LogicalComponentManager lcm, HostInfo info, DomainMBeanMonitor monitor) { this.domain = domain; this.store = store; this.lcm = lcm; this.info = info; this.domainUri = info.getDomain().toString(); this.monitor = monitor; }
public FederatedAddressCache(@Reference ZoneTopologyService topologyService, @Reference HostInfo info) { this.topologyService = topologyService; this.info = info; this.qualifiedChannelName = ZEROMQ_CHANNEL + "." + info.getDomain().getAuthority(); }
public JMXManagementExtension(@Reference MBeanServer mBeanServer, @Reference HostInfo info) { this.mBeanServer = mBeanServer; this.applicationDomain = info.getDomain(); }
/** * Derives the context URL for the web application relative to the domain. * * @param component the component * @return the context URL */ private String calculateContextUrl(LogicalComponent<WebImplementation> component) { URI contextUri = component.getDefinition().getImplementation().getUri(); if (contextUri == null) { // the context URL for the web application is derived from the component name if a URI is not specified contextUri = component.getUri(); } return info.getDomain().relativize(contextUri).toString(); }
@Init public void init() throws Exception { // set the bind address if it is specified in the system configuration and not specified at JVM startup if (defaultBindAddress != null && System.getProperty("jgroups.bind_addr") == null) { System.setProperty("jgroups.bind_addr", defaultBindAddress); } domainName = info.getDomain().getAuthority(); // setup runtime notifications Fabric3EventListener<JoinDomain> joinListener = getJoinListener(); eventService.subscribe(JoinDomain.class, joinListener); Fabric3EventListener<RuntimeStop> stopListener = getStopListener(); eventService.subscribe(RuntimeStop.class, stopListener); }
@Constructor public LogicalComponentManagerImpl(@Reference HostInfo info) { domainUri = info.getDomain(); initializeDomainComposite(); }
public void openChannel(String name, String configuration, MessageReceiver receiver) throws ZoneChannelException { if (channels.containsKey(name)) { throw new ZoneChannelException("Channel already open:" + name); } try { Channel channel; if (configuration != null) { channel = new JChannel(configuration); } else if (channelConfig != null) { channel = new JChannel(channelConfig); } else { channel = new JChannel(); } initializeChannel(channel); channels.put(name, channel); DelegatingReceiver delegatingReceiver = new DelegatingReceiver(channel, receiver, helper, monitor); channel.setReceiver(delegatingReceiver); channel.connect(info.getDomain().getAuthority() + ":" + name); } catch (Exception e) { throw new ZoneChannelException(e); } }
selectedPort.bind(Port.TYPE.TCP); TransportConnector connector = broker.addConnector("tcp://" + bindAddress + ":" + selectedPort.getNumber()); String group = info.getDomain().getAuthority(); connector.setDiscoveryUri(URI.create("multicast://default?group=" + group)); broker.addNetworkConnector("multicast://default?group=" + group);