Package com.netflix.paas.provider

Examples of com.netflix.paas.provider.TableDataResourceFactory


        for (TableEntity table : schemaEntity.getTables().values()) {
            LOG.info("Adding table '{}' to schema '{}'", new Object[]{table.getTableName(), schemaEntity.getName()});
            try {
                Preconditions.checkNotNull(table.getStorageType());
               
                TableDataResourceFactory tableDataResourceFactory = tableDataResourceFactories.get(table.getStorageType());
                if (tableDataResourceFactory == null) {
                    throw new NotFoundException(TableDataResourceFactory.class, table.getStorageType());
                }
               
                builder.put(table.getTableName(), tableDataResourceFactory.getTableDataResource(table));
            }
            catch (Exception e) {
                LOG.error("Failed to create storage for table '{}' in schema '{}", new Object[]{table.getTableName(), schemaEntity.getName(), e});
            }
        }
View Full Code Here

TOP

Related Classes of com.netflix.paas.provider.TableDataResourceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.