|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectScavenger
Service that scans for projects in a directory. Manages if projects are
active and in that case publishes them as TransformationEnvironment
s
to an EnvironmentManager
.
Nested Class Summary | |
---|---|
static class |
ProjectScavenger.Status
Project states |
Method Summary | |
---|---|
void |
activate(String projectId)
Activate the project with the given identifier. |
boolean |
allowAddProject()
Determines if adding a project generally is allowed/possible. |
void |
deactivate(String projectId)
Activate the project with the given identifier. |
ProjectInfo |
getInfo(String projectId)
Get the project info for the project with the given identifier, if available. |
File |
getLoadReports(String projectId)
Get the file where the reports form loading the project are stored. |
Set<String> |
getProjects()
Get the identifiers of the available projects. |
ProjectScavenger.Status |
getStatus(String projectId)
Get the status of the project with the given identifier. |
void |
releaseProjectId(String projectId)
Release a previously reserved project identifier. |
File |
reserveProjectId(String projectId)
Reserve a project identifier, e.g. |
void |
triggerScan()
Check if there are any new projects available. |
Method Detail |
---|
void triggerScan()
Set<String> getProjects()
File reserveProjectId(String projectId) throws ScavengerException
projectId
- the project identifier
ScavengerException
- if the projectId is already taken/reserved or
adding new projects is not possiblevoid releaseProjectId(String projectId)
projectId
- the project idnetifierboolean allowAddProject()
ProjectScavenger.Status getStatus(String projectId)
projectId
- the project identifier
File getLoadReports(String projectId)
projectId
- the project identifier
null
if the project with the given
identifier does not existProjectInfo getInfo(String projectId)
projectId
- the project identifier
null
void activate(String projectId)
projectId
- the project identifiervoid deactivate(String projectId)
projectId
- the project identifier
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |