Package com.zfabrik.impl.hubcr.store
Class HubCRResource
java.lang.Object
com.zfabrik.resources.provider.Resource
com.zfabrik.impl.hubcr.store.HubCRResource
Life cycle of HubCR provider implementation. Also does JMX registration.
This resource may be loaded on home and worker. But the actual manager and the JMX beans will only be loaded on worker nodes (and otherwise throw an exception).
The following configurations are supported:
- hubcr.eviction.delay - specifies the max keep time of older component revisions than the most current in hours. Defaults to 168h
- hubcr.scanOnSync - if set to
true
, every sync completion will trigger an update of the HubCR - hubcr.ignore.types - Comma-separated list of component types to not put in the repository
- hubcr.ignore.prefixes - Comma-separated list of component name prefixes to filter out components before putting them in the repository
com.zfabrik.svncr
, com.zfabrik.gitcr
, com.zfabrik.hubcr
as well as the prefix com.zfabrik.hubcr/
are in effect.
Also, no components of the local repo will be served.
Note, this is the serving side. See also ComponentRepositoryImpl on how
to set up a consuming component repository.
To enable provisioning via the HubCR visit the manager configuration at com.zfabrik.hubcr/manager
and enable the
Web application com.zfabrik.hubcr/web
by configuring a suitable state dependency. Please do not start the
web app by a dependency declared outside of the served scope (which includes the module com.zfabrik.hubcr
) as that
will lead to unresolvable dependencies on the consuming side.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> T
static HubCRManager
static HubCRResource
void
boolean
void
-
Constructor Details
-
HubCRResource
public HubCRResource()
-
-
Method Details
-
as
-
scanOnSync
public void scanOnSync() -
_isStarted
public boolean _isStarted() -
isScanOnSync
public boolean isScanOnSync() -
invalidate
- Overrides:
invalidate
in classResource
- Throws:
ResourceBusyException
-
getManager
-
getResource
-