use of cz.o2.proxima.repository.EntityDescriptor in project proxima-platform by O2-Czech-Republic.
the class HadoopStorageTest method testHashCodeAndEquals.
@Test
public void testHashCodeAndEquals() {
TestUtils.assertHashCodeAndEquals(new HadoopStorage(), new HadoopStorage());
EntityDescriptor entity = EntityDescriptor.newBuilder().setName("dummy").build();
final AttributeFamilyDescriptor family = TestUtils.createTestFamily(entity, URI.create("hdfs://host:9000/path"));
TestUtils.assertHashCodeAndEquals(new HadoopDataAccessor(family), new HadoopDataAccessor(family));
}
use of cz.o2.proxima.repository.EntityDescriptor in project proxima-platform by O2-Czech-Republic.
the class WebsocketReader method asFactory.
@Override
public Factory<?> asFactory() {
final EntityDescriptor entity = getEntityDescriptor();
final URI uri = getUri();
final Map<String, Object> cfg = this.cfg;
return repo -> new WebsocketReader(entity, uri, cfg);
}
use of cz.o2.proxima.repository.EntityDescriptor in project proxima-platform by O2-Czech-Republic.
the class OpenTsdbWriter method asFactory.
@Override
public Factory<?> asFactory() {
final EntityDescriptor entity = getEntityDescriptor();
final URI uri = getUri();
final Map<String, Object> cfg = getCfg();
return repo -> new OpenTsdbWriter(entity, uri, cfg);
}
use of cz.o2.proxima.repository.EntityDescriptor in project proxima-platform by O2-Czech-Republic.
the class HBaseLogReader method asFactory.
@Override
public Factory<?> asFactory() {
final URI uri = getUri();
final EntityDescriptor entity = this.entity;
final cz.o2.proxima.functional.Factory<ExecutorService> executorFactory = this.executorFactory;
final byte[] serializedConf = this.serializedConf;
return repo -> new HBaseLogReader(uri, deserialize(serializedConf, new Configuration()), entity, executorFactory);
}
use of cz.o2.proxima.repository.EntityDescriptor in project proxima-platform by O2-Czech-Republic.
the class HttpWriter method asFactory.
@Override
public Factory<?> asFactory() {
final EntityDescriptor entity = getEntityDescriptor();
final URI uri = getUri();
final Map<String, Object> cfg = this.cfg;
return repo -> new HttpWriter(entity, uri, cfg);
}
Aggregations