Package com.sun.appserv.ha.spi

Examples of com.sun.appserv.ha.spi.BackingStoreFactory


    /**
     * create and set the backing store
     * @param commandMap map used to translate commands
     */    
    BackingStore createBackingStore(Map commandMap, String sipType) {
        BackingStoreFactory storeFactory = new JxtaBackingStoreFactory();
        BackingStoreRegistry backingStoreRegistry
            = BackingStoreRegistry.getInstance();
        Properties inputEnv
            = backingStoreRegistry.getFactoryClassEnv(getPassedInPersistenceType());
        Properties env = (Properties)inputEnv.clone();       
        //does this manager & backing store support duplicate id semantics
        //for batch replication usage
        env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, Boolean.valueOf(this.isDuplicateIdsSemanticsAllowed()));
        env.put(COMMAND_MAP, commandMap);
        if(sipType != null && (sipType.equals(SIP_TYPE_SAS) || sipType.equals(SIP_TYPE_SS) || sipType.equals(SIP_TYPE_ST))) {
            env.put(SUPPRESS_LOAD_ACK_PROPERTY, Boolean.TRUE);
        }
        //does this manager & backing store support replication compression
        env.put(REPLICATION_COMPRESSION_PROPERTY, Boolean.valueOf(this.isReplicationCompressionEnabled()));
        env.put(SESSION_MANAGER_PROPERTY, this);
        BackingStore backingStore = null;
        try {
            backingStore = storeFactory.createBackingStore(
                        this.getApplicationId(), //appid
                        String.class,
                        SimpleMetadata.class,     //type
                        env);
        } catch (BackingStoreException ex) {
View Full Code Here

TOP

Related Classes of com.sun.appserv.ha.spi.BackingStoreFactory

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.