Class ReplicationAttributeStore

    • Constructor Detail

      • ReplicationAttributeStore

        public ReplicationAttributeStore​(JavaEEIOUtils ioUtils)
        Creates a new instance of ReplicationAttributeStore
    • Method Detail

      • valveSave

        public void valveSave​(Session session)
                       throws IOException
        Save the specified Session into this Store. Any previously saved information for the associated session identifier is replaced.
        Overrides:
        valveSave in class ReplicationStore
        Parameters:
        session - Session to be saved
        Throws:
        IOException - if an input/output error occurs
      • save

        public void save​(Session session)
                  throws IOException
        Save the specified Session into this Store. Any previously saved information for the associated session identifier is replaced.
        Specified by:
        save in interface Store
        Overrides:
        save in class ReplicationStore
        Parameters:
        session - Session to be saved
        Throws:
        IOException - if an input/output error occurs
      • doValveSave

        public void doValveSave​(Session session)
                         throws IOException
        Save the specified Session into this Store. Any previously saved information for the associated session identifier is replaced.
        Overrides:
        doValveSave in class ReplicationStore
        Parameters:
        session - Session to be saved
        Throws:
        IOException - if an input/output error occurs
      • doSave

        public void doSave​(Session session)
                    throws IOException
        Save the specified Session into this Store. Any previously saved information for the associated session identifier is replaced.
        Overrides:
        doSave in class ReplicationStore
        Parameters:
        session - Session to be saved
        Throws:
        IOException - if an input/output error occurs
      • getByteArray

        protected byte[] getByteArray​(Object attributeValue)
                               throws IOException
        Create an byte[] for the session that we can then pass to the HA Store.
        Parameters:
        attributeValue - The attribute value we are serializing
        Throws:
        IOException
      • getByteArrayFromCollection

        protected byte[] getByteArrayFromCollection​(Collection entries)
                                             throws IOException
        Create an byte[] for the session that we can then pass to the HA Store.
        Parameters:
        entries - The Collection of entries we are serializing
        Throws:
        IOException
      • getAttributeValueCollection

        protected Object getAttributeValueCollection​(byte[] state)
                                              throws IOException,
                                                     ClassNotFoundException
        Given a byte[] containing session data, return a session object
        Parameters:
        state - The byte[] with the session attribute data
        Returns:
        A newly created object for the given session attribute data
        Throws:
        IOException
        ClassNotFoundException
      • loadAttributes

        protected void loadAttributes​(ModifiedAttributeHASession modifiedAttributeSession,
                                      Collection attributeList)
        Given a session, load its attributes
        Parameters:
        modifiedAttributeSession - The session (header info only) having its attributes loaded
        attributeList - The List list of loaded attributes