if (createHierarchy(fname))
if (createHierarchy(fname))
protected File openAndLock (String fname, int lmode, boolean create) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("FileSystemStore.openAndLock(" + fname + ", " + FileLock.modeString(lmode) + ", " + create + ")"); } // File fd = (File) FdCache(fname); File fd = null; if (fd == null) { fd = new File(fname); if (!fd.exists()) { if (createHierarchy(fname)) { if (!lock(fd, lmode, create)) { return null; } else return fd; } else throw new ObjectStoreException("FileSystemStore.openAndLock failed to create hierarchy "+fname); } if (!lock(fd, lmode, create)) fd = null; } return fd; }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
public FileSystemStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); fullStoreName = locateStore(_objectStoreRoot); doSync = objectStoreEnvironmentBean.isObjectStoreSync(); scanZeroLengthFiles = objectStoreEnvironmentBean.isScanZeroLengthFiles(); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { throw new ObjectStoreException( tsLogger.i18NLogger.get_objectstore_FileSystemStore_1(fullStoreName) ); } }
if (createHierarchy(fname))
protected synchronized boolean setupStore (String localOSRoot) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PROTECTED, FacilityCode.FAC_OBJECT_STORE, "FileSystemStore.setupStore("+localOSRoot+")"); } isValid = true; if (localOSRoot == null) localOSRoot = ""; localStoreRoot = localOSRoot; fullStoreName = locateStore(localStoreRoot); /* The root of the objectstore must exist and be writable */ if ((fullStoreName == null) || !createHierarchy(fullStoreName)) { if (tsLogger.arjLoggerI18N.isWarnEnabled()) { tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore_1", new Object[]{fullStoreName}); } isValid = false; } return isValid; }