|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryAdminService
API for adminstration of FishEye repositories.
Most methods require a String
parameter, name, naming
the repository.
All methods, unless mentioned otherwise, will throw the following exceptions:
NotFoundException
NotPermittedException
Method Summary | |
---|---|
void |
create(RepositoryData repData)
Creates a repository and leaves it disabled. |
void |
delete(java.lang.String name)
Delete a repository. |
void |
disable(java.lang.String name)
Disable the repository. |
void |
enable(java.lang.String name)
Enable the repository. |
DefaultRepositoryOptions |
getDefaultOptions()
Get the default repository options. |
RepositoryOptions |
getEffectiveOptions(java.lang.String name)
Get the effective repository options for the repository, after delegating to- and merging with the repository defaults. |
RepositoryIndexer |
getIndexer(java.lang.String name)
Get the repository indexing service for the repository. |
java.util.Set<java.lang.String> |
getNames()
Returns the name of all repositories. |
java.util.Set<RepositoryData> |
getRepositories()
Returns the RepositoryData of all repositories. |
RepositoryData |
getRepositoryData(java.lang.String name)
Return the data object for the repository. |
RepositoryOptions |
getRepositoryOptions(java.lang.String name)
Return the repository options defined for the repository. |
RepositoryState |
getState(java.lang.String name)
Return the state of the repository. |
boolean |
isEnabled(java.lang.String name)
Whether the repository is enabled. |
void |
setDefaultOptions(DefaultRepositoryOptions options)
Set the default repository options. |
void |
setRepositoryOptions(java.lang.String name,
RepositoryOptions options)
Set the repository options for just the specified repostiory. |
RepositoryState |
start(java.lang.String name)
Start the repository. |
RepositoryState |
stop(java.lang.String name)
Non-blocking call to stop the repository. |
RepositoryState |
stopAndWait(java.lang.String name,
long timeoutMs)
Blocking call to stop the repository. |
RepositoryUpdateResult |
update(RepositoryData repData)
|
Method Detail |
---|
java.util.Set<java.lang.String> getNames()
Set
of all repository names, or an empty set if there are nonejava.util.Set<RepositoryData> getRepositories()
RepositoryData
of all repositories.
Set
of RepositoryData
, or an empty set if there are noneRepositoryData getRepositoryData(java.lang.String name)
RepositoryOptions getRepositoryOptions(java.lang.String name)
This excludes any merging with the default repository options. Use
getEffectiveOptions(String)
to get the effective options
used by the repository.
void setRepositoryOptions(java.lang.String name, RepositoryOptions options) throws RepositoryConfigException
When querying repository options, FishEye combines the repository
and default options (see getEffectiveOptions(String)
).
java.lang.NullPointerException
- if options is null
RepositoryConfigException
- if the repository options could not be persistedDefaultRepositoryOptions getDefaultOptions()
void setDefaultOptions(DefaultRepositoryOptions options) throws RepositoryConfigException
java.lang.NullPointerException
- if options is null
RepositoryConfigException
- if the default repository options could not be persistedRepositoryOptions getEffectiveOptions(java.lang.String name)
void create(RepositoryData repData) throws RepositoryConfigException
For CVS repositories, the directory must exist otherwise creation will fail.
java.lang.IllegalArgumentException
- if the repository name is already used
RepositoryConfigException
- if the repository couldn't be createdRepositoryUpdateResult update(RepositoryData repData) throws RepositoryConfigException
NotFoundException
- if the repository name doesn't exist
RepositoryConfigException
- if the repository couldn't be updatedRepositoryState getState(java.lang.String name)
java.lang.IllegalStateException
- if the repository is disabledboolean isEnabled(java.lang.String name)
void enable(java.lang.String name) throws RepositoryConfigException
java.lang.IllegalStateException
- if the repository is enabled
RepositoryConfigException
- if the enabling could not be persistedvoid disable(java.lang.String name) throws RepositoryConfigException
java.lang.IllegalStateException
- if the repository is disabled or not @{link RepositoryState#STOPPED}
RepositoryConfigException
- if the disabling could not be persistedRepositoryState stop(java.lang.String name)
This method does not wait for the repository to stop. Use getState(String)
to check the progress of stopping the repository.
RepositoryState.STOPPING
, or RepositoryState.STOPPED
if immediately stopped
java.lang.IllegalStateException
- if the repository is disabled or not @{link RepositoryState#RUNNING}RepositoryState stopAndWait(java.lang.String name, long timeoutMs)
Behaves the same as stop(String)
, but waits upto approximately timeoutMs for the
repository to stop before returning.
timeoutMs
- if timeoutMs <= 0, this acts as a call to stop(String)
RepositoryState.STOPPING
, or RepositoryState.STOPPED
if stopped after waitingstop(String)
RepositoryState start(java.lang.String name) throws RepositoryConfigException
RepositoryState.STARTING
or RepositoryState.RUNNING
if successfully started
java.lang.IllegalStateException
- if the repository is disabled or not RepositoryState.STOPPED
RepositoryConfigException
- if there was a problem starting the repositoryvoid delete(java.lang.String name) throws RepositoryConfigException
java.lang.IllegalStateException
- if the repository is enabled but not @{link RepositoryState#STOPPED}
RepositoryConfigException
- if there was a problem deleting the repositoryRepositoryIndexer getIndexer(java.lang.String name)
CvsRepositoryIndexer
, GitRepositoryIndexer
,
P4RepositoryIndexer
, or SvnRepositoryIndexer
. You should
cast the result based on the type of the repository.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |