Class Set
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Set>
com.aoindustries.aoserv.client.CachedObject<Integer,Set>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<Set>
com.aoindustries.aoserv.client.net.reputation.Set
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AoservReadable,AoservStreamable,AoservWritable,SingleTableObject<Integer,Set>
An
IpReputationSet stores network and host IP reputation fed
from external sources.- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumstatic enum -
Field Summary
Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkeyFields inherited from class com.aoindustries.aoserv.client.CachedObject
tableFields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionSet()Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReputation(int host, Set.ConfidenceType confidence, Set.ReputationType reputationType, short score) voidaddReputation(Collection<Set.AddReputation> addReputations) May be filtered.booleanAllows sub accounts to use this set.protected ObjectgetColumnImpl(int i) intGets the number of seconds between each host reputation decay.getHosts()Gets the system-wide unique identifier for this reputation set.Gets the last time the hosts were decayed.Gets the last time the networks were decayed.Gets the last time reputation was added.shortGets the maximum definite reputation score for a host.intGets the maximum number of individual hosts that will be tracked.shortGets the maximum reputation score for a network.shortGets the maximum uncertain reputation score for a host.intGets the number of seconds between each network reputation decay.shortGets the network prefix size, such as 24 for a /24 (class C) network.voidInitializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion) voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImplMethods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTableMethods inherited from class com.aoindustries.aoserv.client.AoservObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxId, getLinuxUserName, getMacAddress, getMysqlDatabaseName, getMysqlServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
Constructor Details
-
Set
Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getTableId
- Specified by:
getTableIdin classAoservObject<Integer,Set>
-
init
Description copied from class:AoservObjectInitializes this object from the raw database contents.- Specified by:
initin classAoservObject<Integer,Set> - Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
write
- Specified by:
writein interfaceAoservStreamable- Specified by:
writein interfaceAoservWritable- Specified by:
writein classAoservObject<Integer,Set> - Throws:
IOException
-
read
- Specified by:
readin interfaceAoservReadable- Specified by:
readin interfaceAoservStreamable- Specified by:
readin classAoservObject<Integer,Set> - Throws:
IOException
-
getColumnImpl
- Specified by:
getColumnImplin classAoservObject<Integer,Set>
-
getAccount_name
-
getAccount
May be filtered.- Throws:
SQLExceptionIOException
-
getIdentifier
Gets the system-wide unique identifier for this reputation set. -
getAllowSubaccountUse
public boolean getAllowSubaccountUse()Allows sub accounts to use this set. They cannot see the set hosts and networks. -
getMaxHosts
public int getMaxHosts()Gets the maximum number of individual hosts that will be tracked. -
getMaxUncertainReputation
public short getMaxUncertainReputation()Gets the maximum uncertain reputation score for a host. -
getMaxDefiniteReputation
public short getMaxDefiniteReputation()Gets the maximum definite reputation score for a host. -
getNetworkPrefix
public short getNetworkPrefix()Gets the network prefix size, such as 24 for a /24 (class C) network. -
getMaxNetworkReputation
public short getMaxNetworkReputation()Gets the maximum reputation score for a network. -
getHostDecayInterval
public int getHostDecayInterval()Gets the number of seconds between each host reputation decay. -
getLastHostDecay
Gets the last time the hosts were decayed. -
getNetworkDecayInterval
public int getNetworkDecayInterval()Gets the number of seconds between each network reputation decay. -
getLastNetworkDecay
Gets the last time the networks were decayed. -
getLastReputationAdded
Gets the last time reputation was added. -
getHosts
- Throws:
IOExceptionSQLException
-
getNetworks
- Throws:
IOExceptionSQLException
-
addReputation
public void addReputation(int host, Set.ConfidenceType confidence, Set.ReputationType reputationType, short score) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
addReputation
public void addReputation(Collection<Set.AddReputation> addReputations) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
