public String getRuntimeName() { return info.getRuntimeName(); }
public String getRuntimeName() { return info.getRuntimeName(); }
public String getRuntimeName() { return info.getRuntimeName(); }
private String parseTopic(XMLStreamReader reader) { String topic = reader.getAttributeValue(null, "topic"); if (topic == null) { topic = "fabric3"; } else if ("#domain".equals(topic)) { topic = hostInfo.getDomain().getAuthority() + "." + hostInfo.getRuntimeName(); } return topic; } }
public BrokerHelperImpl(@Reference HostInfo info) { this.defaultBrokerName = "vm://" + info.getRuntimeName().replace(":", "."); }
public ActiveMQConnectionFactoryCreator(@Reference HostInfo info, @Monitor ConnectionMonitor monitor) { this.info = info; this.monitor = monitor; String brokerName = info.getRuntimeName().replace(":", "."); brokerUri = URI.create("vm://" + brokerName); }
private void setClientId(String clientId, ActiveMQConnectionFactory factory) { if (ConnectionFactoryConfiguration.RUNTIME.equals(clientId)) { // client id is set to the runtime name factory.setClientID(info.getRuntimeName().replace(":", ".")); } else { factory.setClientID(clientId); } }
@Init @SuppressWarnings({"ResultOfMethodCallIgnored"}) public void init() throws IOException { eventService.subscribe(RuntimeRecover.class, this); // turn off transactions.properties search by the transaction manager since these will be supplied directly System.setProperty(ATOMIKOS_NO_FILE, "true"); // configure mandatory value System.setProperty(FACTORY_KEY, FACTORY_VALUE); File dataDir = info.getDataDir(); File trxDir = new File(dataDir, "transactions"); if (!trxDir.exists()) { trxDir.mkdirs(); } // set the unique TM name String name = info.getRuntimeName().replace(":", "_"); // shorten to length required by Atomikos if too large if (name.getBytes().length + 16 > XID.MAXGTRIDSIZE) { name = new String(Arrays.copyOfRange(name.getBytes(), 0, XID.MAXGTRIDSIZE - 16)); } properties.setProperty(TM_NAME, name); String path = trxDir.getCanonicalPath(); properties.setProperty(OUTPUT_DIR_PROPERTY_NAME, path); properties.setProperty(LOG_BASE_DIR_PROPERTY_NAME, path); properties.setProperty(THREADED2PC, Boolean.toString(singleThreaded2PC)); properties.setProperty(ENABLE_LOGGING, Boolean.toString(enableLogging)); if (checkPointInterval != -1) { properties.setProperty(CHECKPOINT_INTERVAL, Long.toString(checkPointInterval)); } }
sessionManager = new ManagedHashSessionManager(); HashSessionIdManager sessionIdManager = new HashSessionIdManager(); String workerName = hostInfo.getRuntimeName().replace(".", "_"); // Jetty does not accept names with '.' characters sessionIdManager.setWorkerName(workerName); server.setSessionIdManager(sessionIdManager);
brokerName = configuredBrokerName; } else { brokerName = info.getRuntimeName().replace(":", ".");