Search in sources :

Example 1 with TimeSeriesSchema

use of com.emc.storageos.db.common.schema.TimeSeriesSchema in project coprhd-controller by CoprHD.

the class DbSchemaScanner method processClass.

@Override
protected void processClass(Class clazz) {
    DbSchema schema = null;
    if (DataObject.class.isAssignableFrom(clazz)) {
        if (_scannerInterceptor != null && _scannerInterceptor.isClassIgnored(clazz.getSimpleName())) {
            log.info("{} is ignored in schema due to interceptor", clazz.getSimpleName());
            return;
        }
        schema = new DataObjectSchema(clazz, _scannerInterceptor);
        if (clazz.isAnnotationPresent(DbKeyspace.class)) {
            DbKeyspace anno = (DbKeyspace) clazz.getAnnotation(DbKeyspace.class);
            if (DbKeyspace.Keyspaces.GLOBAL.equals(anno.value())) {
                geoSchemas.add(schema);
            }
        }
    } else if (TimeSeries.class.isAssignableFrom(clazz)) {
        schema = new TimeSeriesSchema(clazz);
    } else if (TimeSeriesSerializer.DataPoint.class.isAssignableFrom(clazz)) {
        schema = new DataPointSchema(clazz);
    } else {
        return;
    }
    schemas.addSchema(schema);
}
Also used : DbKeyspace(com.emc.storageos.db.client.model.DbKeyspace) DataObjectSchema(com.emc.storageos.db.common.schema.DataObjectSchema) TimeSeries(com.emc.storageos.db.client.model.TimeSeries) DbSchema(com.emc.storageos.db.common.schema.DbSchema) TimeSeriesSchema(com.emc.storageos.db.common.schema.TimeSeriesSchema) DataPointSchema(com.emc.storageos.db.common.schema.DataPointSchema) TimeSeriesSerializer(com.emc.storageos.db.client.model.TimeSeriesSerializer)

Aggregations

DbKeyspace (com.emc.storageos.db.client.model.DbKeyspace)1 TimeSeries (com.emc.storageos.db.client.model.TimeSeries)1 TimeSeriesSerializer (com.emc.storageos.db.client.model.TimeSeriesSerializer)1 DataObjectSchema (com.emc.storageos.db.common.schema.DataObjectSchema)1 DataPointSchema (com.emc.storageos.db.common.schema.DataPointSchema)1 DbSchema (com.emc.storageos.db.common.schema.DbSchema)1 TimeSeriesSchema (com.emc.storageos.db.common.schema.TimeSeriesSchema)1