Class ClusterManagerBase

    • Field Detail

      • sm

        protected static final StringManager sm
        String manager for this class.
    • Constructor Detail

      • ClusterManagerBase

        public ClusterManagerBase()
        Default constructor for ClusterManagerBase.
    • Method Detail

      • getDeltaRequestPool

        protected SynchronizedStack<DeltaRequest> getDeltaRequestPool()
        Returns the pool of DeltaRequest objects.
        Returns:
        the delta request pool
      • isNotifyListenersOnReplication

        public boolean isNotifyListenersOnReplication()
        Description copied from interface: ClusterManager
        Returns whether listeners are notified on replication.
        Specified by:
        isNotifyListenersOnReplication in interface ClusterManager
        Returns:
        true if listeners are notified on replication
      • setNotifyListenersOnReplication

        public void setNotifyListenersOnReplication​(boolean notifyListenersOnReplication)
        Sets whether listeners should be notified on replication.
        Parameters:
        notifyListenersOnReplication - the new value
      • isRecordAllActions

        public boolean isRecordAllActions()
        Returns whether all session attribute actions should be recorded.
        Returns:
        true if all actions are recorded
      • setRecordAllActions

        public void setRecordAllActions​(boolean recordAllActions)
        Sets whether all session attribute actions should be recorded.
        Parameters:
        recordAllActions - the new value
      • getClassLoaders

        public static java.lang.ClassLoader[] getClassLoaders​(Context context)
        Returns the class loaders for the specified context.
        Parameters:
        context - the context
        Returns:
        the array of class loaders
      • getClassLoaders

        public java.lang.ClassLoader[] getClassLoaders()
        Returns the class loaders for this manager's context.
        Returns:
        the array of class loaders
      • getReplicationStream

        public ReplicationStream getReplicationStream​(byte[] data)
                                               throws java.io.IOException
        Description copied from interface: ClusterManager
        Open stream and use correct ClassLoader (Container), switching thread context class loader.
        Specified by:
        getReplicationStream in interface ClusterManager
        Parameters:
        data - the data
        Returns:
        the object input stream
        Throws:
        java.io.IOException - An error occurred
      • getReplicationStream

        public ReplicationStream getReplicationStream​(byte[] data,
                                                      int offset,
                                                      int length)
                                               throws java.io.IOException
        Description copied from interface: ClusterManager
        Open stream and use correct ClassLoader (Container), switching thread context class loader.
        Specified by:
        getReplicationStream in interface ClusterManager
        Parameters:
        data - the data
        offset - the offset in the data array
        length - the data length
        Returns:
        the object input stream
        Throws:
        java.io.IOException - An error occurred
      • load

        public void load()
        Manager implementations that also implement ClusterManager do not support local session persistence.
        Specified by:
        load in interface Manager
      • unload

        public void unload()
        Manager implementations that also implement ClusterManager do not support local session persistence.
        Specified by:
        unload in interface Manager
      • clone

        protected void clone​(ClusterManagerBase copy)
        Clone the configuration from this manager to the specified copy.
        Parameters:
        copy - the manager to clone to
      • registerSessionAtReplicationValve

        protected void registerSessionAtReplicationValve​(DeltaSession session)
        Register cross context session at replication valve thread local
        Parameters:
        session - cross context session