Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Config Provider

Randgalt edited this page Mar 28, 2012 · 6 revisions

Exhibitor relies on [Shared Configuration] and comes bundled with two potential implementations: Filesystem-based and S3-based. You should choose one of these or write your own.

S3
The S3 Config provider is implemented by S3ConfigProvider. You pass an instance of this to the Exhibitor constructor. It takes three arguments:

  • S3ClientFactory – you should use S3ClientFactoryImpl unless you have special needs
  • S3Credential – the AWS access key and id
  • S3ConfigArguments – the S3 bucket name and key to store the config

Filesystem
If you use FileSystemConfigProvider you should have a shared directory in your system. FileSystemConfigProvider uses I/O locks to manage the shared file.