public class Repository extends Object
[sa-name]'/'[su-name]| Modifier and Type | Field and Description |
|---|---|
protected static String |
DIR_SUFFIX_PATTERN
The Directory suffix pattern.
|
| Constructor and Description |
|---|
Repository(ManagementContext context)
Create a new instance of the repository.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArchive(Archive archive)
Add a pre-parsed archive to the repository.
|
Archive |
addArchive(ArchiveType type,
String path)
Add an archive to the repository.
|
boolean |
archiveExists(ArchiveType type,
String name)
Used to determine if a particular archive is stored in the repository.
|
void |
cleanRepository() |
String |
findArchive(ArchiveType type,
String name)
Returns the path to the specified archive, or null if it does not exist
in the repository.
|
String |
findArchiveDirectory(ArchiveType type,
String name)
Returns the path to the directory where the archive is stored, or null
if archive does not exist in the repository.
|
Archive |
getArchive(ArchiveType type,
String name)
Retrieve archive details for the specified id.
|
Archive |
getArchive(Object archiveId)
Retrieve archive details for the specified id.
|
List<String> |
getArchiveEntityNames(ArchiveType type) |
File |
getTempStore()
Returns a file pointer to the repository temp store.
|
void |
purge()
Purges the repository, removing all archives.
|
void |
removeArchive(ArchiveType type,
String name)
Remove the specified archive.
|
void |
setRepositoryInitTime(long initTime)
Set repository init time, this could be NFS time
|
protected static final String DIR_SUFFIX_PATTERN
public Repository(ManagementContext context) throws RepositoryException
RepositoryExceptionpublic void cleanRepository()
public void setRepositoryInitTime(long initTime)
initTime - public Archive addArchive(ArchiveType type, String path) throws RepositoryException
RepositoryExceptionpublic void addArchive(Archive archive) throws RepositoryException
RepositoryExceptionpublic boolean archiveExists(ArchiveType type, String name)
public Archive getArchive(Object archiveId)
public Archive getArchive(ArchiveType type, String name)
public String findArchiveDirectory(ArchiveType type, String name)
public String findArchive(ArchiveType type, String name)
public void removeArchive(ArchiveType type, String name) throws RepositoryException
RepositoryException - archive not found in repositorypublic File getTempStore()
public void purge()
public List<String> getArchiveEntityNames(ArchiveType type)
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.