Interface CacheManagerPeerProvider

    • Method Detail

      • registerPeer

        void registerPeer​(java.lang.String nodeId)
        Register a new peer.
        Parameters:
        nodeId - Identifies a node in this replication scheme (ex: RMI URL)
      • unregisterPeer

        void unregisterPeer​(java.lang.String nodeId)
        Unregisters a peer.
        Parameters:
        nodeId - Identifies a node in this replication scheme (ex: RMI URL)
      • init

        void init()
        Notifies providers to initialise themselves.
        Throws:
        CacheException
      • dispose

        void dispose()
              throws CacheException
        Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.
        Throws:
        CacheException
      • getTimeForClusterToForm

        long getTimeForClusterToForm()
        Time for a cluster to form. This varies considerably, depending on the implementation.
        Returns:
        the time in ms, for a cluster to form
      • getScheme

        java.lang.String getScheme()
        The replication scheme. Each peer provider has a scheme name, which can be used to specify the scheme for replication and bootstrap purposes. Each CacheReplicator should lookup the provider for its scheme type during replication. Similarly a BootstrapCacheLoader should also look up the provider for its scheme.

        Returns:
        the well-known scheme name, which is determined by the replication provider author.
        Since:
        1.6 introduced to permit multiple distribution schemes to be used in the same CacheManager