Interface IpFilter

  • All Known Implementing Classes:
    IpFilterImpl

    public interface IpFilter
    • Method Detail

      • getFile

        java.io.File getFile()
      • save

        void save()
           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • reload

        void reload()
             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isInRange

        boolean isInRange​(java.lang.String ipAddress)
      • isInRange

        boolean isInRange​(java.lang.String ipAddress,
                          java.lang.String torrent_name,
                          byte[] torrent_hash)
      • isInRange

        boolean isInRange​(java.lang.String ipAddress,
                          java.lang.String torrent_name,
                          byte[] torrent_hash,
                          boolean loggable)
      • isInRange

        boolean isInRange​(java.net.InetAddress ipAddress,
                          java.lang.String torrent_name,
                          byte[] torrent_hash,
                          boolean loggable)
      • createRange

        IpRange createRange​(int addressType,
                            boolean sessionOnly)
      • addRange

        void addRange​(IpRange range)
      • removeRange

        void removeRange​(IpRange range)
      • getNbRanges

        int getNbRanges()
      • getNbIpsBlocked

        int getNbIpsBlocked()
      • getNbIpsBlockedAndLoggable

        int getNbIpsBlockedAndLoggable()
      • clearBlockedIPs

        void clearBlockedIPs()
      • ban

        boolean ban​(java.lang.String ipAddress,
                    java.lang.String torrent_name,
                    boolean manual)
      • ban

        boolean ban​(java.lang.String ipAddress,
                    java.lang.String torrent_name,
                    boolean manual,
                    int ban_for_mins)
      • unban

        void unban​(java.lang.String ipAddress)
      • unban

        void unban​(java.lang.String ipAddress,
                   boolean block)
      • getNbBannedIps

        int getNbBannedIps()
      • getBannedIps

        BannedIp[] getBannedIps()
      • clearBannedIps

        void clearBannedIps()
      • addExcludedHash

        void addExcludedHash​(byte[] hash)
      • removeExcludedHash

        void removeExcludedHash​(byte[] hash)
      • isEnabled

        boolean isEnabled()
      • setEnabled

        void setEnabled​(boolean enabled)
      • getInRangeAddressesAreAllowed

        boolean getInRangeAddressesAreAllowed()
      • setInRangeAddressesAreAllowed

        void setInRangeAddressesAreAllowed​(boolean b)
      • getLastUpdateTime

        long getLastUpdateTime()
      • reloadSync

        void reloadSync()
                 throws java.lang.Exception
        Throws:
        java.lang.Exception