Search in sources :

Example 1 with BlobStoreAdminFactory

use of org.apache.samza.storage.BlobStoreAdminFactory in project samza by apache.

the class BlobStoreStateBackendFactory method getAdmin.

@Override
public StateBackendAdmin getAdmin(JobModel jobModel, Config config) {
    BlobStoreConfig blobStoreConfig = new BlobStoreConfig(config);
    String stateBackendAdminFactory = blobStoreConfig.getBlobStoreAdminFactory();
    BlobStoreAdminFactory factory = ReflectionUtil.getObj(stateBackendAdminFactory, BlobStoreAdminFactory.class);
    return factory.getStateBackendAdmin(config, jobModel);
}
Also used : BlobStoreAdminFactory(org.apache.samza.storage.BlobStoreAdminFactory) BlobStoreConfig(org.apache.samza.config.BlobStoreConfig)

Aggregations

BlobStoreConfig (org.apache.samza.config.BlobStoreConfig)1 BlobStoreAdminFactory (org.apache.samza.storage.BlobStoreAdminFactory)1