Examples of StoreType


Examples of com.sun.xml.ws.api.ha.HighAvailabilityProvider.StoreType

        final BackingStore<String, HAInstance> bs;
        // Removes expired entrees from BackingStore
        TimerTask expiredTask;

        HAMap() {
            StoreType type = haEnabled ? StoreType.IN_MEMORY : StoreType.NOOP;
            bs = HighAvailabilityProvider.INSTANCE.createBackingStore(
                    HighAvailabilityProvider.INSTANCE.getBackingStoreFactory(type),
                    owner.getServiceName() + ":" + owner.getPortName() + ":STATEFUL_WEB_SERVICE",
                    String.class,
                    HAInstance.class);
View Full Code Here

Examples of org.apache.tajo.catalog.proto.CatalogProtos.StoreType

    ResultSet res = null;
    Statement stmt = null;

    String tableName = null;
    Path path = null;
    StoreType storeType = null;
    Options options;
    TableStat stat = null;

    try {
      String sql =
View Full Code Here

Examples of org.apache.tajo.catalog.proto.CatalogProtos.StoreType

    ResultSet res = null;
    Statement stmt = null;

    String tableName = null;
    Path path = null;
    StoreType storeType = null;
    Options options;
    TableStat stat = null;

    try {
      rlock.lock();
View Full Code Here

Examples of org.objectweb.celtix.bus.configuration.wsrm.StoreType

        RMStoreFactory.theStore = null;
    }
   
    public void testStoreCreationFailure() {
        IMocksControl control = EasyMock.createNiceControl();     
        StoreType s = control.createMock(StoreType.class);
        s.getStoreClass();
        EasyMock.expectLastCall().andReturn("org.objectweb.celtix.bus.ws.rm.persistence.no.such.StoreClass");
        control.replay();
       
        RMStoreFactory factory = new RMStoreFactory();
        try {
View Full Code Here

Examples of org.objectweb.celtix.bus.configuration.wsrm.StoreType

    }
   
    public void testStoreCreationNoParams() {
        IMocksControl control = EasyMock.createNiceControl();
        Configuration c = control.createMock(Configuration.class);       
        StoreType s = control.createMock(StoreType.class);
        c.getObject(StoreType.class, "store");
        EasyMock.expectLastCall().andReturn(s);
        s.getStoreClass();
        EasyMock.expectLastCall().andReturn("org.objectweb.celtix.bus.ws.rm.persistence.file.RMFileStore");
        s.getInitParam();
        EasyMock.expectLastCall().andReturn(new ArrayList<StoreInitParamType>());
        control.replay();
       
        RMStoreFactory factory = new RMStoreFactory();
        RMStore store = factory.getStore(c);
View Full Code Here

Examples of org.objectweb.celtix.bus.configuration.wsrm.StoreType

    }
   
    public void testStoreCreationWithParams() {
        IMocksControl control = EasyMock.createNiceControl();
        Configuration c = control.createMock(Configuration.class)
        StoreType s = RMUtils.getWSRMConfFactory().createStoreType();
        s.setStoreClass("org.objectweb.celtix.bus.ws.rm.persistence.file.RMFileStore");
        StoreInitParamType param = RMUtils.getWSRMConfFactory().createStoreInitParamType();
        param.setParamName(RMFileStore.FILE_STORE_DIR);
        param.setParamValue("dbs/rm");
        s.getInitParam().add(param);
        param = RMUtils.getWSRMConfFactory().createStoreInitParamType();
        param.setParamName("prop2");
        param.setParamValue("val2");
        s.getInitParam().add(param);
        c.getObject(StoreType.class, "store");
        EasyMock.expectLastCall().andReturn(s);
        control.replay();
       
        RMStoreFactory factory = new RMStoreFactory();
View Full Code Here

Examples of org.objectweb.celtix.bus.configuration.wsrm.StoreType

    private static final Logger LOG = LogUtils.getL7dLogger(RMStoreFactory.class);
   
   
    public RMStore getStore(Configuration c) {
       
        StoreType s = c.getObject(StoreType.class, "store");
        assert null != s;
       
        if (null == theStore) {
            createStore(s);
            initStore(s);
View Full Code Here

Examples of org.objectweb.celtix.bus.configuration.wsrm.StoreType

        return null;
    }
   
    private RMTxStore getStore(RMHandler rmh) {
        Configuration cfg = rmh.getConfiguration();
        StoreType s = cfg.getObject(StoreType.class, "store");
        Map<String, String> params = new HashMap<String, String>();
        for (StoreInitParamType p : s.getInitParam()) {
            String name = p.getParamName();
            String value = p.getParamValue();
            params.put(name, value);
        }
        RMTxStore store = new RMTxStore();
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.