|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryService
Platform Component Repository.
This repository stores all the JBI artifacts in exploded format.
Field Summary | |
---|---|
static String |
COMPONENT_LOGGER_NAME
|
static String |
DEFAULT_REPOSITORY_PATH
Path to repository location within Petals installation directory. |
Method Summary | |
---|---|
File |
addComponent(String componentId,
File explodedArchiveRootDirectory)
Install a component package into the local Petals repository. |
File |
addServiceAssembly(String serviceAssemblyId,
File tempFile)
Copy a service assembly package into petals repository |
File |
addSharedLibrary(String sharedLibraryId,
String version,
File tempFile)
Copy a shared library package into petals repository |
File |
explodeSUIntoSAInstallDirectory(String serviceUnitId,
URL suZipLocation,
String serviceAssemblyId)
Explode a given service unit archive into a SU install root created into the SA install root |
File |
getComponentDirectory(String componentId)
Returns the root directory of this component |
File |
getComponentInstallDirectory(String componentId)
Returns the install directory of the component |
File |
getComponentsDirectory()
Retrieve the components directory absolute path from the Petals repository. |
File |
getComponentWorkDirectory(String componentId)
Returns the work directory of the component |
File |
getLostPlusFoundDirectory()
Retrieve the "lost+found" directory absolute path from the Petals repository. |
File |
getRepositoryDirectory()
Return petals repository folder. |
File |
getServiceAssembliesDirectory()
Retrieve the ServiceAssemblies directory absolute path from the Petals repository. |
File |
getServiceAssemblyDirectory(String serviceAsemblyId)
Returns the root directory of the service assembly |
File |
getServiceAssemblyInstallDirectory(String serviceAssemblyId)
Returns the install directory of the service assembly |
File |
getServiceAssemblyWorkDirectory(String serviceAsemblyId)
Returns the work directory of the service assembly |
File |
getSharedLibrariesDirectory()
Retrieve the SharedLibraries directory absolute path from the Petals repository. |
File |
getSharedLibraryDirectory(String sharedLibraryId)
Returns the root directory of the shared library |
File |
getSharedLibraryInstallDirectory(String sharedLibraryId)
Returns the install directory of the shared library |
File |
getSharedLibraryWorkDirectory(String sharedLibraryId)
Returns the work directory of the shared library |
void |
removeComponent(String componentId)
Delete and clean all directories and related data from the Petals repository, for the given component identifier. |
void |
removeServiceAssembly(String serviceAssemblyId)
Delete and clean all directories and related data from the Petals repository, for the given sa identifier. |
void |
removeSharedLibrary(String sharedLibraryId,
String version)
Delete and clean all directories and related data from the Petals repository, for the given sl identifier. |
Field Detail |
---|
static final String COMPONENT_LOGGER_NAME
static final String DEFAULT_REPOSITORY_PATH
Method Detail |
---|
File addComponent(String componentId, File explodedArchiveRootDirectory) throws IOException, ComponentAlreadyExistsException
componentId
- The component name (as JBI identifier, unique into the local
repository. Must be non null and non empty.explodedArchiveRootDirectory
- The root directory of teh exploded component archive. Must be
non null.
File
IOException
- if it fails to create install and work dirs for the component
or if it fails to copy package into install dir
ComponentAlreadyExistsException
- The component already exists in the repository.File addServiceAssembly(String serviceAssemblyId, File tempFile) throws IOException, ServiceAssemblyAlreadyExistsException
serviceAssemblyId
- String
unique sa id that identifies an unique sa
directory into the petals repository. Must be non null and non
emptytempFile
- File
the service assembly package file to add
into the repository. Must be non null
File
IOException
- if it fails to create install and work dirs for the sa or if
it fails to copy package into install dir
ServiceAssemblyAlreadyExistsException
- The serviced assembly already exists in the repository.File addSharedLibrary(String sharedLibraryId, String version, File tempFile) throws IOException, SharedLibraryAlreadyExistsException
sharedLibraryId
- String
unique sl id that identifies an unique sl
directory into the petals repository. Must be non null and non
emptyversion
- Version of the shared library as defined by JBI.tempFile
- File
the shared lib package file to add into the
repository. Must be non null
File
IOException
- if it fails to create install and work dirs for the sl or if
it fails to copy package into install dir
SharedLibraryAlreadyExistsException
- The sl already exists in the repository.File explodeSUIntoSAInstallDirectory(String serviceUnitId, URL suZipLocation, String serviceAssemblyId) throws IOException
suId
- String
unique SU identifier within the
repository.suZipLocation
- URL
the SU Zip archive file to add flatten into
the repository.saId
- String
unique SA identifier within the repository
where SU add to be flatten
File
installation root of su in the repository. Must
be a valid directory.
IOException
- if SU install root can't be created or SU archive can't be
unzippedFile getComponentDirectory(String componentId) throws IOException
componentId
- String
unique component id that identifies an
unique component directory into the petals repository.
IOException
- if an error occurred during component root retrievalFile getComponentInstallDirectory(String componentId) throws IOException
componentId
- String
unique component id that identifies an
unique component directory into the petals repository.
IOException
- if an error occurred during component root retrievalFile getComponentsDirectory()
File getComponentWorkDirectory(String componentId) throws IOException
componentId
- String
unique component id that identifies an
unique component directory into the petals repository.
IOException
- if an error occurred during component root retrievalFile getLostPlusFoundDirectory()
File getRepositoryDirectory()
File getServiceAssembliesDirectory()
File getServiceAssemblyDirectory(String serviceAsemblyId) throws IOException
saId
- String
unique sa id that identifies an unique sa
directory into the petals repository.
IOException
- if an error occured during service assembly root retrievalFile getServiceAssemblyInstallDirectory(String serviceAssemblyId) throws IOException
serviceAssemblyId
- String
unique sa id that identifies an unique sa
directory into the petals repository.
IOException
- if an error occured during service assembly root retrievalFile getServiceAssemblyWorkDirectory(String serviceAsemblyId) throws IOException
saId
- String
unique sa id that identifies an unique sa
directory into the petals repository.
IOException
- if an error occured during service assembly root retrievalFile getSharedLibrariesDirectory()
File getSharedLibraryDirectory(String sharedLibraryId) throws IOException
sharedLibraryId
- String
unique sl id that identifies an unique sl
directory into the petals repository.
IOException
- if an error occured during shared lib root retrievalFile getSharedLibraryInstallDirectory(String sharedLibraryId) throws IOException
slId
- String
unique sl id that identifies an unique sl
directory into the petals repository.
IOException
- if an error occured during shared lib root retrievalFile getSharedLibraryWorkDirectory(String sharedLibraryId) throws IOException
slId
- String
unique sl id that identifies an unique sl
directory into the petals repository.
IOException
- if an error occured during shared lib root retrievalvoid removeComponent(String componentId) throws FileNotFoundException, IOException
componentId
- String
unique component id that identifies an
unique component directory into the petals repository.
FileNotFoundException
- the component does not exist in the repository.
IOException
- if an error occurred during the delete of related filesvoid removeServiceAssembly(String serviceAssemblyId) throws FileNotFoundException, IOException
serviceAssemblyId
- String
unique sa id that identifies an unique sa
directory into the petals repository.
FileNotFoundException
- the service assembly does not exist in the repository.
IOException
- if an error occurred during the delete of related filesvoid removeSharedLibrary(String sharedLibraryId, String version) throws FileNotFoundException, IOException
sharedLibraryId
- unique sl id that identifies an unique sl directory into the
petals repository.version
- Version of the shared library as defined by JBI.
FileNotFoundException
- the shared library does not exist in the repository.
IOException
- if an error occurred during the delete of related files
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |