Class RWSConfigManager

    • Constructor Detail

      • RWSConfigManager

        public RWSConfigManager()

        Constructor for RWSConfigManager.

      • RWSConfigManager

        public RWSConfigManager​(java.io.InputStream stream)
                         throws java.io.IOException

        Constructor for RWSConfigManager.

        Parameters:
        stream - a InputStream object.
        Throws:
        java.io.IOException - if any.
    • Method Detail

      • getReadLock

        public java.util.concurrent.locks.Lock getReadLock()
        Specified by:
        getReadLock in interface RWSConfig
      • getWriteLock

        public java.util.concurrent.locks.Lock getWriteLock()
        Specified by:
        getWriteLock in interface RWSConfig
      • getBase

        public org.opennms.rancid.ConnectionProperties getBase()

        getBase

        Specified by:
        getBase in interface RWSConfig
        Returns:
        a ConnectionProperties object.
      • getNextStandBy

        public org.opennms.rancid.ConnectionProperties getNextStandBy()

        getNextStandBy

        Specified by:
        getNextStandBy in interface RWSConfig
        Returns:
        a ConnectionProperties object.
      • getStandBy

        public org.opennms.rancid.ConnectionProperties[] getStandBy()

        getStandBy

        Specified by:
        getStandBy in interface RWSConfig
        Returns:
        an array of ConnectionProperties objects.
      • hasStandbyUrl

        public boolean hasStandbyUrl()

        hasStandbyUrl

        Specified by:
        hasStandbyUrl in interface RWSConfig
        Returns:
        a boolean.
      • reloadXML

        protected void reloadXML​(java.io.InputStream stream)
                          throws java.io.IOException

        reloadXML

        Parameters:
        stream - a InputStream object.
        Throws:
        java.io.IOException - if any.