Examples of SimpleMetaData


Examples of com.sun.appserv.ha.util.SimpleMetadata

       
       if(parent == null) {
            return;
        }
        BackingStore replicator = parent.getBackingStore();
        SimpleMetadata simpleMetadata =
            createSimpleMetadata(ssoId, (HASingleSignOnEntry)ssoEntry);
        try {
            replicator.save(ssoId, //id
                            simpleMetadata, true)//TODO: Check last param
        } catch (BackingStoreException ex) {
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

        if(!(replicator instanceof JxtaBackingStoreImpl)) {
            return null;
        }
        JxtaBackingStoreImpl jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        ReplicationState transmitState = null;
        SimpleMetadata simpleMetadata =
            createSimpleMetadata(ssoId, (HASingleSignOnEntry)ssoEntry);
        //need this here because save not called
        simpleMetadata.setOwningInstanceName(ReplicationUtil.getInstanceName());
        try {
            transmitState = jxtaReplicator.getSimpleTransmitState(ssoId, simpleMetadata);
        } catch (BackingStoreException ex) {}
        return transmitState;
    }
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("ReplicationSSOStore>>updateLastAccessTime: replicator: " + replicator);
        }        
        try {
            //FIXED: replicator.updateLastAccessTime(ssoId, lat, 0L);
            SimpleMetadata smd = SimpleMetadataFactory.createSimpleMetadata(lat, 0L);
            replicator.save(ssoId, smd, false);
        } catch (BackingStoreException ex) {
            // FIXME evaluate log level
            if (_logger.isLoggable(Level.FINE)) {
                _logger.log(Level.FINE, "exception occurred in remove", ex);
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

    public void save(String id, Metadata value, boolean isNew)
            throws BackingStoreException {
        //health check done in saveSimple and saveComposite
        value.setOwningInstanceName(ReplicationUtil.getInstanceName());
        if (value instanceof SimpleMetadata) {
            SimpleMetadata smd = (SimpleMetadata) value;
            if (smd.getSaveMode() == SimpleMetadata.SAVE_ALL) {
                saveSimple(id, smd);
            } else if (smd.getSaveMode() == SimpleMetadata.SAVE_TIME_STAMP) {
                updateLastAccessTime(id, smd.getLastAccessTime(), smd.getVersion());
            } else if (smd.getSaveMode() == SimpleMetadata. SAVE_EP) {
                updateContainerExtraParam(id, smd.getLastAccessTime(), smd.getVersion(), smd.getExtraParam());
            }
        } else {
            if (value instanceof CompositeMetadata) {
                saveComposite(id, (CompositeMetadata) value);
            }
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

   
    public SimpleMetadata getSimpleMetadataFromQueryResult(ReplicationState queryResult)
        throws BackingStoreException {
        Object containerExtraParams = ReplicationState.getContainerExtraParamFrom(
                queryResult, isReplicationCompressionEnabled());
        SimpleMetadata result = SimpleMetadataFactory.createSimpleMetadata(queryResult.getVersion(),
                queryResult.getLastAccess(), queryResult.getMaxInactiveInterval(),
                queryResult.getState(),
                containerExtraParams);       
        return result;
    }
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

        if(mgr == null) {
            return;
        }
        BackingStore replicator = mgr.getBackingStore();
        //System.out.println("in new API save: replicator: " + replicator);
        SimpleMetadata simpleMetadata =
            createSimpleMetadata(sfsBean);
        try {
            replicator.save(sfsBean.getId().toString(), //id
                    simpleMetadata, sfsBean.isNew())//SimpleMetadata
        } catch (BackingStoreException ex) {
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

        if(mgr == null) {
            return;
        }
        //BackingStore replicator = mgr.getBackingStore();
        //System.out.println("in new API save: passed in replicator: " + replicator);
        SimpleMetadata simpleMetadata =
            createSimpleMetadata(sfsBean);
        try {
            replicator.save(sfsBean.getId().toString(), //id
                    simpleMetadata, sfsBean.isNew())//SimpleMetadata
        } catch (BackingStoreException ex) {
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

    public SFSBBeanState loadBean(Object id) throws IOException {
        try {
            if(id == null) {
                return null;
            }
            SimpleMetadata metaData = (SimpleMetadata) getBackingStore().load(
                    id.toString(), // Passing id.toString() instead of id is important!
                    null);
            if(_logger.isLoggable(Level.FINE)) {
                _logger.fine("ReplicatedEjbStore>>loadBean:id=" + id + ", metaData=" + metaData);
            }
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("ReplicatedEjbStore>>__load:id=" + id + ", localCachedState = " +
                    localCachedState + ", broadcastResultState from broadcast or unicast=" +
                    broadcastResultState + ", bestState = " + bestState);
        }
        SimpleMetadata result = ReplicationState.createSimpleMetadataFrom(
                bestState, isReplicationCompressionEnabled());
        return result;
    }
View Full Code Here

Examples of com.sun.appserv.ha.util.SimpleMetadata

        }
        BackingStore replicator = mgr.getBackingStore();
        //System.out.println("in new API updateLastAccessTime: replicator: " + replicator);
        try {
            //FIXME when Mahesh fix for version comes in
            SimpleMetadata smd = SimpleMetadataFactory.createSimpleMetadata(0L, time);
            replicator.save(sessionKey.toString(), smd, false);
        } catch (BackingStoreException ex) {
            //FIXME
        }
       
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.