|
||||||||||
| 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 java.lang.String |
DEFAULT_REPOSITORY_PATH
Path to repository location within Petals installation directory. |
| Method Summary | |
|---|---|
java.io.File |
addComponent(java.lang.String componentId,
java.io.File explodedArchiveRootDirectory)
Install a component package into the local Petals repository. |
java.io.File |
addServiceAssembly(java.lang.String serviceAssemblyId,
java.io.File tempFile)
Copy a service assembly package into petals repository |
java.io.File |
addSharedLibrary(java.lang.String sharedLibraryId,
java.lang.String version,
java.io.File tempFile)
Copy a shared library package into petals repository |
java.io.File |
explodeSUIntoSAInstallDirectory(java.lang.String serviceUnitId,
java.net.URL suZipLocation,
java.lang.String serviceAssemblyId)
Explode a given service unit archive into a SU install root created into the SA install root |
java.io.File |
getComponentDirectory(java.lang.String componentId)
Returns the root directory of this component |
java.io.File |
getComponentInstallDirectory(java.lang.String componentId)
Returns the install directory of the component |
java.io.File |
getComponentsDirectory()
Retrieve the components directory absolute path from the Petals repository. |
java.io.File |
getComponentWorkDirectory(java.lang.String componentId)
Returns the work directory of the component |
java.io.File |
getLostPlusFoundDirectory()
Retrieve the "lost+found" directory absolute path from the Petals repository. |
java.io.File |
getRepositoryDirectory()
Return petals repository folder. |
java.io.File |
getServiceAssembliesDirectory()
Retrieve the ServiceAssemblies directory absolute path from the Petals repository. |
java.io.File |
getServiceAssemblyDirectory(java.lang.String serviceAsemblyId)
Returns the root directory of the service assembly |
java.io.File |
getServiceAssemblyInstallDirectory(java.lang.String serviceAssemblyId)
Returns the install directory of the service assembly |
java.io.File |
getServiceAssemblyWorkDirectory(java.lang.String serviceAsemblyId)
Returns the work directory of the service assembly |
java.io.File |
getSharedLibrariesDirectory()
Retrieve the SharedLibraries directory absolute path from the Petals repository. |
java.io.File |
getSharedLibraryDirectory(java.lang.String sharedLibraryId)
Returns the root directory of the shared library |
java.io.File |
getSharedLibraryInstallDirectory(java.lang.String sharedLibraryId)
Returns the install directory of the shared library |
java.io.File |
getSharedLibraryWorkDirectory(java.lang.String sharedLibraryId)
Returns the work directory of the shared library |
void |
removeComponent(java.lang.String componentId)
Delete and clean all directories and related data from the Petals repository, for the given component identifier. |
void |
removeServiceAssembly(java.lang.String serviceAssemblyId)
Delete and clean all directories and related data from the Petals repository, for the given sa identifier. |
void |
removeSharedLibrary(java.lang.String sharedLibraryId,
java.lang.String version)
Delete and clean all directories and related data from the Petals repository, for the given sl identifier. |
| Field Detail |
|---|
static final java.lang.String DEFAULT_REPOSITORY_PATH
| Method Detail |
|---|
java.io.File addComponent(java.lang.String componentId,
java.io.File explodedArchiveRootDirectory)
throws java.io.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
java.io.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.
java.io.File addServiceAssembly(java.lang.String serviceAssemblyId,
java.io.File tempFile)
throws java.io.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
java.io.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.
java.io.File addSharedLibrary(java.lang.String sharedLibraryId,
java.lang.String version,
java.io.File tempFile)
throws java.io.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
java.io.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.
java.io.File explodeSUIntoSAInstallDirectory(java.lang.String serviceUnitId,
java.net.URL suZipLocation,
java.lang.String serviceAssemblyId)
throws java.io.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.
java.io.IOException - if SU install root can't be created or SU archive can't be
unzipped
java.io.File getComponentDirectory(java.lang.String componentId)
throws java.io.IOException
componentId - String unique component id that identifies an
unique component directory into the petals repository.
java.io.IOException - if an error occurred during component root retrieval
java.io.File getComponentInstallDirectory(java.lang.String componentId)
throws java.io.IOException
componentId - String unique component id that identifies an
unique component directory into the petals repository.
java.io.IOException - if an error occurred during component root retrievaljava.io.File getComponentsDirectory()
java.io.File getComponentWorkDirectory(java.lang.String componentId)
throws java.io.IOException
componentId - String unique component id that identifies an
unique component directory into the petals repository.
java.io.IOException - if an error occurred during component root retrievaljava.io.File getLostPlusFoundDirectory()
java.io.File getRepositoryDirectory()
java.io.File getServiceAssembliesDirectory()
java.io.File getServiceAssemblyDirectory(java.lang.String serviceAsemblyId)
throws java.io.IOException
saId - String unique sa id that identifies an unique sa
directory into the petals repository.
java.io.IOException - if an error occured during service assembly root retrieval
java.io.File getServiceAssemblyInstallDirectory(java.lang.String serviceAssemblyId)
throws java.io.IOException
serviceAssemblyId - String unique sa id that identifies an unique sa
directory into the petals repository.
java.io.IOException - if an error occured during service assembly root retrieval
java.io.File getServiceAssemblyWorkDirectory(java.lang.String serviceAsemblyId)
throws java.io.IOException
saId - String unique sa id that identifies an unique sa
directory into the petals repository.
java.io.IOException - if an error occured during service assembly root retrievaljava.io.File getSharedLibrariesDirectory()
java.io.File getSharedLibraryDirectory(java.lang.String sharedLibraryId)
throws java.io.IOException
sharedLibraryId - String unique sl id that identifies an unique sl
directory into the petals repository.
java.io.IOException - if an error occured during shared lib root retrieval
java.io.File getSharedLibraryInstallDirectory(java.lang.String sharedLibraryId)
throws java.io.IOException
slId - String unique sl id that identifies an unique sl
directory into the petals repository.
java.io.IOException - if an error occured during shared lib root retrieval
java.io.File getSharedLibraryWorkDirectory(java.lang.String sharedLibraryId)
throws java.io.IOException
slId - String unique sl id that identifies an unique sl
directory into the petals repository.
java.io.IOException - if an error occured during shared lib root retrieval
void removeComponent(java.lang.String componentId)
throws java.io.FileNotFoundException,
java.io.IOException
componentId - String unique component id that identifies an
unique component directory into the petals repository.
java.io.FileNotFoundException - the component does not exist in the repository.
java.io.IOException - if an error occurred during the delete of related files
void removeServiceAssembly(java.lang.String serviceAssemblyId)
throws java.io.FileNotFoundException,
java.io.IOException
serviceAssemblyId - String unique sa id that identifies an unique sa
directory into the petals repository.
java.io.FileNotFoundException - the service assembly does not exist in the repository.
java.io.IOException - if an error occurred during the delete of related files
void removeSharedLibrary(java.lang.String sharedLibraryId,
java.lang.String version)
throws java.io.FileNotFoundException,
java.io.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.
java.io.FileNotFoundException - the shared library does not exist in the repository.
java.io.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 | |||||||||