Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

added monitor capabilities to support configuration update in clustered ... #5

Merged
merged 3 commits into from
Jun 13, 2013

Conversation

mswiderski
Copy link
Contributor

...environment - currently deployments only

Extension to ConfigurationService to monitor underlying system repository for changes. In case a change is discovered notifies interested parties to perform update. Currently this mechanism is only used by deployments config service to be able to propagate deployments across cluster, once git repository is synchronized monitor will trigger runtime changes so all servers in the cluster will becomes in sync.

Monitor is enabled by default but can be disabled with system property. Interval of how often monitor checks the repository is also configurable - by default 2 secs.

Monitor checks the last modified date of a single file that is updated on every configuration change.

try {
final Path lastModifiedPath = ioService.get( systemRepository.getUri() ).resolve(LAST_MODIFIED_MARKER_FILE);
final CommentedOption commentedOption = new CommentedOption( "system", "system repo updated" );
final OutputStream outputStream = ioService.newOutputStream(lastModifiedPath,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could make this code a bit clean by using ioService.write() - but this is just about aesthetics.

porcelli added a commit that referenced this pull request Jun 13, 2013
added monitor capabilities to support configuration update in clustered ...
@porcelli porcelli merged commit 0f976d2 into AppFormer:master Jun 13, 2013
psiroky pushed a commit to psiroky/uberfire that referenced this pull request May 5, 2016
- Paged Table height based on pageSize
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants