Examples of BackingStoreFactory


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

        backingStore = aBackingStore;
    }
   
    void createBackingStore() {
        //BackingStoreFactory storeFactory = new JxtaBackingStoreFactory();
        BackingStoreFactory storeFactory = getBackingStoreFactory();
        BackingStoreRegistry backingStoreRegistry
            = BackingStoreRegistry.getInstance();
        Properties inputEnv
            = backingStoreRegistry.getFactoryClassEnv(getPassedInPersistenceType());
        Properties env = (Properties)inputEnv.clone();       
        //this is always true for sso
        env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, true);       
        BackingStore backingStore = null;
        env.put(SESSION_MANAGER_PROPERTY, this);
        try {
            //FIXED: backingStore = storeFactory.createBackingStore(
            //FIXED:            SimpleMetadata.class,     //type
            //FIXED:            this.getApplicationId(), //appid
            //FIXED:            env);
            backingStore = storeFactory.createBackingStore(
                        this.getApplicationId(), //appid
                        String.class,
                        SimpleMetadata.class,     //type
                        env);
        } catch (BackingStoreException ex) {
View Full Code Here

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

            this.setBackingStore(backingStore);
        }
    }
   
    protected BackingStoreFactory getBackingStoreFactory() {
        BackingStoreFactory backingStoreFactory = new JxtaBackingStoreFactory();
        BackingStoreRegistry backingStoreRegistry
            = BackingStoreRegistry.getInstance();
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("ReplicationSingleSignOn>>getBackingStoreFactory:passedInPersistenceType=" + getPassedInPersistenceType());
        }        
View Full Code Here

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

   
    private BackingStoreFactory getBackingStoreFactoryFromName(String className) {
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("ReplicationSingleSignOn:className: " + className);
        }          
        BackingStoreFactory backingStoreFactory = new JxtaBackingStoreFactory();
        try {
            backingStoreFactory =
                (BackingStoreFactory) (Class.forName(className)).newInstance();
        } catch (Exception ex) {
            if(_logger.isLoggable(Level.FINE)) {
View Full Code Here

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

    /**
    * create and set the backing store
    */    
    void createBackingStore() {
        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(SUPPRESS_LOAD_ACK_PROPERTY, Boolean.TRUE);
        env.put(SESSION_MANAGER_PROPERTY, this); // this class itself does not implement ReplicationManager, but all concrete subclasses do implement ReplicationManager, so it should be ok.
        BackingStore backingStore = null;
        try {
            backingStore = storeFactory.createBackingStore(
                        this.getApplicationId(), //appid
                        String.class,
                        SimpleMetadata.class,     //type
                        env);
        } catch (BackingStoreException ex) {
View Full Code Here

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

    /**
    * create and set the backing store for CompositeMetadata
    */    
    void createCompositeBackingStore() {
        BackingStoreFactory storeFactory = new JxtaBackingStoreFactory();
        BackingStoreRegistry backingStoreRegistry
            = BackingStoreRegistry.getInstance();
        Properties env
            = backingStoreRegistry.getFactoryClassEnv(getPassedInPersistenceType());
        env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, Boolean.valueOf(this.isDuplicateIdsSemanticsAllowed()));
        env.put(SESSION_MANAGER_PROPERTY, this); // this class itself does not implement ReplicationManager, but all concrete subclasses do implement ReplicationManager, so it should be ok.       
        BackingStore compositeBackingStore = null;
        try {
            compositeBackingStore = storeFactory.createBackingStore(
                        this.getApplicationId(), //appid
                        String.class,
                        CompositeMetadata.class,     //type
                        env);
        } catch (BackingStoreException ex) {
View Full Code Here

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

    */   
    private BackingStoreFactory getBackingStoreFactoryFromName(String className) {
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("getBackingStoreFactoryFromName:className: " + className);
        }       
        BackingStoreFactory backingStoreFactory = null;
        try {
            backingStoreFactory =
                (BackingStoreFactory) (Class.forName(className)).newInstance();
        } catch (Exception ex) {
            //FIXME - throw exception?
View Full Code Here

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

    /**
    * create the backingStore
    */    
    void createBackingStore() {
        //BackingStoreFactory storeFactory = new JxtaBackingStoreFactory();
        BackingStoreFactory storeFactory = getBackingStoreFactory();
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("storeFactory: " + storeFactory);
        }        
        BackingStoreRegistry backingStoreRegistry
            = BackingStoreRegistry.getInstance();
        Properties inputEnv
            = backingStoreRegistry.getFactoryClassEnv(getPassedInPersistenceType());
        Properties env = (Properties)inputEnv.clone();       
        //this is always true for sfsbs
        if(env != null) {
            env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, true);
            env.put(SESSION_MANAGER_PROPERTY, this);
        }
        BackingStore backingStore = null;
        try {
            backingStore = storeFactory.createBackingStore(
                        this.getContainerID(), //appid
                        String.class,
                        SimpleMetadata.class,     //type
                        env);
        } catch (BackingStoreException ex) {
View Full Code Here

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

    /**
    * create the backingStore factory based on the passed
    * in persistence-type
    */   
    protected BackingStoreFactory getBackingStoreFactory() {
        BackingStoreFactory backingStoreFactory = new JxtaBackingStoreFactory();
        BackingStoreRegistry backingStoreRegistry
            = BackingStoreRegistry.getInstance();
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("getBackingStoreFactory:passedInPersistenceType=" + getPassedInPersistenceType());
        }       
View Full Code Here

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

   
    private BackingStoreFactory getBackingStoreFactoryFromName(String className) {
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("getBackingStoreFactoryFromName:className: " + className);
        }          
        BackingStoreFactory backingStoreFactory = new JxtaBackingStoreFactory();
        try {
            backingStoreFactory =
                (BackingStoreFactory) (Class.forName(className)).newInstance();
        } catch (Exception ex) {
            if(_logger.isLoggable(Level.FINE)) {
View Full Code Here

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) {
        BackingStoreFactory storeFactory = new JxtaBackingStoreFactory();
        BackingStoreRegistry backingStoreRegistry
            = BackingStoreRegistry.getInstance();
        Properties inputEnv = backingStoreRegistry.getFactoryClassEnv(getPassedInPersistenceType());
        Properties env = (Properties)inputEnv.clone();
        env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, Boolean.valueOf(this.isDuplicateIdsSemanticsAllowed()));
        env.put(SUPPRESS_LOAD_ACK_PROPERTY, Boolean.TRUE);
        env.put(COMMAND_MAP, commandMap);
        //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
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.