Examples of ConfigurationStore


Examples of com.sun.xacml.ConfigurationStore

     * Default constructor. This creates a <code>SimplePDP</code> with a <code>PDP</code> based on
     * the configuration defined by the runtime property com.sun.xcaml.PDPConfigFile.
     */
    public SimplePDP() throws Exception {
        // load the configuration
        ConfigurationStore store = new ConfigurationStore();

        // use the default factories from the configuration
        store.useDefaultFactories();

        // get the PDP configuration's and setup the PDP
        pdp = new PDP(store.getDefaultPDPConfig());
    }
View Full Code Here

Examples of com.volantis.osgi.cm.store.ConfigurationStore

                "listenerMock", dispatcherExpectations);


        persistentDir = createTempDir("cmint");
        fileManager = new FileManagerImpl(persistentDir, 4, 10);
        ConfigurationStore store = new ConfigurationStoreImpl(fileManager);

        // Create the dispatcher and prepare it for using mocks.
        asynchronousDispatcher = new AsynchronousDispatcher();
//        asynchronousDispatcher.queueAsynchronousAction(new Runnable() {
//            public void run() {
View Full Code Here

Examples of com.volantis.osgi.cm.store.ConfigurationStore

        asynchronousDispatcher.stop();
    }

    private void checkPersistedConfigurations(InternalConfiguration[] expected)
            throws IOException {
        ConfigurationStore newStore = new ConfigurationStoreImpl(fileManager);
        InternalConfiguration[] persisted = newStore.load();


        assertMatchingConfigurations(expected, persisted);
    }
View Full Code Here

Examples of com.volantis.osgi.cm.store.ConfigurationStore

        }

        FileManager fileManager = new FileManagerImpl(
                rootDir, MAX_FILES_PER_DIR, MAX_DIRS_PER_DIR);

        ConfigurationStore store = new ConfigurationStoreImpl(fileManager);

        ConfigurationManager manager =
                new ConfigurationAdminManager(bundleContext,
                        log, dispatcher, store);
View Full Code Here

Examples of name.abuchen.portfolio.ui.util.ConfigurationStore

        this.part = view.getPart();
        this.client = view.getClient();
        this.mode = mode;
        this.resources = new LocalResourceManager(JFaceResources.getResources(), this);

        this.store = new ConfigurationStore(identifier, client, this);

        buildAvailableDataSeries();
        load();

        setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
View Full Code Here

Examples of org.apache.falcon.entity.store.ConfigurationStore

        ConfigurationStore.get().init();

    }

    protected void cleanupStore() throws FalconException {
        ConfigurationStore store = ConfigurationStore.get();
        for (EntityType type : EntityType.values()) {
            Collection<String> entities = store.getEntities(type);
            for (String entity : entities) {
                store.remove(type, entity);
            }
        }
    }
View Full Code Here

Examples of org.apache.falcon.entity.store.ConfigurationStore

        }
    }

    protected void storeEntity(EntityType type, String name) throws Exception {
        Unmarshaller unmarshaller = type.getUnmarshaller();
        ConfigurationStore store = ConfigurationStore.get();
        store.remove(type, name);
        switch (type) {
        case CLUSTER:
            Cluster cluster = (Cluster) unmarshaller.unmarshal(this.getClass().getResource(CLUSTER_XML));
            cluster.setName(name);
            ClusterHelper.getInterface(cluster, Interfacetype.WRITE).setEndpoint(conf.get("fs.default.name"));
            store.publish(type, cluster);
            break;

        case FEED:
            Feed feed = (Feed) unmarshaller.unmarshal(this.getClass().getResource(FEED_XML));
            feed.setName(name);
            store.publish(type, feed);
            break;

        case PROCESS:
            Process process = (Process) unmarshaller.unmarshal(this.getClass().getResource(PROCESS_XML));
            process.setName(name);
            store.publish(type, process);
            break;

        default:
            throw new IllegalArgumentException("Invalid entity type: " + type);
        }
View Full Code Here

Examples of org.apache.falcon.entity.store.ConfigurationStore

        storeEntity(EntityType.PROCESS, "clicksummary", PROCESS_XML);
        storeEntity(EntityType.PROCESS, "pig-process", PIG_PROCESS_XML);
    }

    public void cleanup() throws Exception {
        ConfigurationStore store = ConfigurationStore.get();
        store.remove(EntityType.PROCESS, "pig-process");
        store.remove(EntityType.PROCESS, "clicksummary");
        store.remove(EntityType.FEED, "clicksummary");
        store.remove(EntityType.FEED, "impressions");
        store.remove(EntityType.FEED, "clicks");
        store.remove(EntityType.CLUSTER, "corp");
    }
View Full Code Here

Examples of org.apache.falcon.entity.store.ConfigurationStore

    @BeforeMethod
    public void setUp() throws Exception {
        super.setup();

        ConfigurationStore store = ConfigurationStore.get();
        Cluster cluster = store.get(EntityType.CLUSTER, "corp");
        ClusterHelper.getInterface(cluster, Interfacetype.WRITE).setEndpoint(hdfsUrl);
        ClusterHelper.getInterface(cluster, Interfacetype.REGISTRY).setEndpoint("thrift://localhost:49083");
        fs = new Path(hdfsUrl).getFileSystem(new Configuration());
        fs.create(new Path(ClusterHelper.getLocation(cluster, "working"), "libext/PROCESS/ext.jar")).close();

        Process process = store.get(EntityType.PROCESS, "clicksummary");
        Path wfpath = new Path(process.getWorkflow().getPath());
        assert new Path(hdfsUrl).getFileSystem(new Configuration()).mkdirs(wfpath);
    }
View Full Code Here

Examples of org.apache.falcon.entity.store.ConfigurationStore

        assertEquals(process.getOutputs().getOutputs().get(0).getName(),
                coord.getOutputEvents().getDataOut().get(0).getDataset());

        assertEquals(6, coord.getDatasets().getDatasetOrAsyncDataset().size());

        ConfigurationStore store = ConfigurationStore.get();
        Feed feed = store.get(EntityType.FEED, process.getInputs().getInputs().get(0).getFeed());
        SYNCDATASET ds = (SYNCDATASET) coord.getDatasets().getDatasetOrAsyncDataset().get(0);

        final org.apache.falcon.entity.v0.feed.Cluster feedCluster = feed.getClusters().getClusters().get(0);
        assertEquals(SchemaHelper.formatDateUTC(feedCluster.getValidity().getStart()), ds.getInitialInstance());
        assertEquals(feed.getTimezone().getID(), ds.getTimezone());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.