public File getDataDirectory() { return info.getDataDir(); }
public File getDataDirectory() { return info.getDataDir(); }
@Property(required = false) public void setLogFilename(String logFilename) { File logDir = new File(hostInfo.getDataDir(), "log"); logDir.mkdirs(); this.logFilename = new File(logDir, logFilename).getAbsolutePath(); }
public BrokerEngine(@Reference PortAllocator portAllocator, @Reference HostInfo info) { this.portAllocator = portAllocator; tempDir = new File(info.getTempDir(), "activemq"); // sets the directory where persistent messages are written File baseDataDir = info.getDataDir(); dataDir = new File(baseDataDir, "activemq.data"); this.info = info; }
@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 properties.setProperty(TM_NAME, info.getRuntimeName().replace(":", "_")); 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)); } }
public FSDeployTracker(@Reference XMLFactory factory, @Reference HostInfo info, @Monitor DeployTrackerMonitor monitor) { this.monitor = monitor; this.outputFactory = factory.newOutputFactoryInstance(); this.contributions = new ArrayList<URI>(); this.deployables = new HashMap<QName, String>(); domainLog = new File(info.getDataDir(), "domain.xml"); }
@Init public void init() throws XMLStreamException, FileNotFoundException { journal = new File(info.getDataDir(), "contributions.xml"); inputFactory = xmlFactory.newInputFactoryInstance(); outputFactory = xmlFactory.newOutputFactoryInstance(); read(); }
public ProfileTracker(@Reference XMLFactory factory, @Reference EventService eventService, @Reference HostInfo hostInfo, @Reference MetaDataStore store, @Monitor ProfileTrackerMonitor monitor) { this.eventService = eventService; this.store = store; this.inputFactory = factory.newInputFactoryInstance(); this.outputFactory = factory.newOutputFactoryInstance(); this.monitor = monitor; repositoryIndex = new File(hostInfo.getDataDir(), "profiles.xml"); mappings = new HashMap<URI, List<URI>>(); }
public FSDomainReplayer(@Reference(name = "domain") Domain domain, @Reference XMLFactory xmlFactory, @Reference HostInfo hostInfo, @Reference EventService eventService, @Monitor FSDomainReplayMonitor monitor) { this.domain = domain; this.eventService = eventService; this.monitor = monitor; this.inputFactory = xmlFactory.newInputFactoryInstance(); domainLog = new File(hostInfo.getDataDir(), "domain.xml"); }