IComponentsRepository
, ISynchronizer
public class ComponentRepositoryImpl extends AbstractComponentRepository<com.zfabrik.hubcr.RemoteComponentRepositoryDB>
hubcr.url | The URL to the source repo. Typically this is of the form http://<server>:<port>/z_hubcr |
hubcr.timeout | Connection timeout in ms for connecting to the providing side (defaults to 10000) |
hubcr.user | The remote user to use (optional but required by default) |
hubcr.password | The remote user's password |
hubcr.priority | The priority of the repository (defaults to 500) |
com.zfabrik.hubcr.mode
that if set to relaxed
(as opposed to the default of strict
)
supports relaxed behavior if remote database updates do not succeed. If relaxed, the repository will continue with the latest
known database. Assuming component resources have been fetched previously, this allows to survive short outages gracefully.AbstractExtComponentRepository.Repo, AbstractExtComponentRepository.RepoMBean
ALL
COMPONENT_REPO_IMPLEMENTATION, COMPONENT_REPO_MODE, COMPONENT_REPO_MODE_RELAXED, COMPONENT_REPO_MODE_STRICT
PRIO, TYPE
Constructor | Description |
---|---|
ComponentRepositoryImpl(java.lang.String name,
java.util.Properties properties) |
Modifier and Type | Method | Description |
---|---|---|
void |
download(FSCRDBComponent component,
java.io.File folder) |
Download resources of a single component into the given folder
|
com.zfabrik.hubcr.RemoteComponentRepositoryDB |
scan(com.zfabrik.hubcr.RemoteComponentRepositoryDB current) |
Provide an updated DB.
|
java.lang.String |
toString() |
as, checkOfflineMode, complete, configure, configure, configure, findComponents, findComponents, getCacheRoot, getComponent, getComponent, getContext, getDB, getExpectedConfiguration, getModules, getModules, getName, getRevision, getRevision, getRevision, getURL, has, isRelaxedMode, preInvalidation, preInvalidation, retrieve, retrieve, setEvictionDelay, start, stop, test_setContext, test_setDb, test_setInited
public ComponentRepositoryImpl(java.lang.String name, java.util.Properties properties)
public void download(FSCRDBComponent component, java.io.File folder)
com.zfabrik.components.provider.util.AbstractExtComponentRepository
download
in class AbstractExtComponentRepository<FSCRDBComponent,com.zfabrik.hubcr.RemoteComponentRepositoryDB>
public com.zfabrik.hubcr.RemoteComponentRepositoryDB scan(com.zfabrik.hubcr.RemoteComponentRepositoryDB current)
com.zfabrik.components.provider.util.AbstractExtComponentRepository
scan
in class AbstractExtComponentRepository<FSCRDBComponent,com.zfabrik.hubcr.RemoteComponentRepositoryDB>
public java.lang.String toString()
toString
in class AbstractExtComponentRepository<FSCRDBComponent,com.zfabrik.hubcr.RemoteComponentRepositoryDB>