Class ConnectorManagerRemoteCommitListener

  • All Implemented Interfaces:
    Serializable, org.apache.openjpa.event.RemoteCommitListener, org.apache.openjpa.lib.util.Closeable

    public class ConnectorManagerRemoteCommitListener
    extends Object
    implements org.apache.openjpa.event.RemoteCommitListener, Serializable
    Takes care of connectors' Spring beans (un)registration in case HA is set up and the actual change is performed by another node in the OpenJPA cluster.
    See Also:
    Serialized Form
    • Field Detail

      • LOG

        protected static final Logger LOG
      • domain

        protected final String domain
    • Constructor Detail

      • ConnectorManagerRemoteCommitListener

        public ConnectorManagerRemoteCommitListener​(String domain)
    • Method Detail

      • registerForExternalResource

        protected void registerForExternalResource​(String resourceKey)
      • registerForConnInstance

        protected void registerForConnInstance​(String connInstanceKey)
      • unregister

        protected void unregister​(String resourceKey)
      • afterCommit

        public void afterCommit​(org.apache.openjpa.event.RemoteCommitEvent event)
        Specified by:
        afterCommit in interface org.apache.openjpa.event.RemoteCommitListener
      • close

        public void close()
        Specified by:
        close in interface org.apache.openjpa.lib.util.Closeable
        Specified by:
        close in interface org.apache.openjpa.event.RemoteCommitListener