java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Device>
com.aoindustries.aoserv.client.CachedObject<Integer,Device>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<Device>
com.aoindustries.aoserv.client.net.Device
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
Device>
Each server has multiple network devices, each listening on different
IP addresses.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the bonding report from/proc/net/bonding/[p]bond#
ornull
if not a bonded device.protected Object
getColumnImpl
(int i) getHost()
int
getId()
getIpAddress
(InetAddress inetAddress) long
Gets the maximum bit rate this interface can support or-1
if unknown.long
Gets the 5-minute average that is considered a critical-priority alert or-1
if no alert allowed at this level.long
Gets the 5-minute average that is considered a high-priority alert or-1
if no alert allowed at this level.long
Gets the 5-minute average that is considered a low-priority alert or-1
if no alert allowed at this level.long
Gets the 5-minute average that is considered a medium-priority alert or-1
if no alert allowed at this level.int
void
Initializes this object from the raw database contents.boolean
The monitoring of a net_devices may be enabled or disabled.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) AoservObject.toString()
implementation that is allowed to throw exceptions.void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
Methods 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
-
Field Details
-
COLUMN_SERVER_name
- See Also:
-
COLUMN_DEVICE_ID_name
- See Also:
-
-
Constructor Details
-
Device
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Device>
-
getId
public int getId() -
getServer_pkey
public int getServer_pkey() -
getHost
- Throws:
SQLException
IOException
-
getDeviceId_name
-
getDeviceId
- Throws:
SQLException
IOException
-
getDescription
-
getDeleteRoute
-
getGateway
-
getNetwork
-
getBroadcast
-
getMacAddress
-
getMaxBitRate
public long getMaxBitRate()Gets the maximum bit rate this interface can support or-1
if unknown. -
getMonitoringBitRateLow
public long getMonitoringBitRateLow()Gets the 5-minute average that is considered a low-priority alert or-1
if no alert allowed at this level. -
getMonitoringBitRateMedium
public long getMonitoringBitRateMedium()Gets the 5-minute average that is considered a medium-priority alert or-1
if no alert allowed at this level. -
getMonitoringBitRateHigh
public long getMonitoringBitRateHigh()Gets the 5-minute average that is considered a high-priority alert or-1
if no alert allowed at this level. -
getMonitoringBitRateCritical
public long getMonitoringBitRateCritical()Gets the 5-minute average that is considered a critical-priority alert or-1
if no alert allowed at this level. This is the level that will alert people 24x7. -
isMonitoringEnabled
public boolean isMonitoringEnabled()The monitoring of a net_devices may be enabled or disabled. -
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Device> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
Device> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Device> - Throws:
IOException
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Device>
-
toStringImpl
Description copied from class:AoservObject
AoservObject.toString()
implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAoservObject.toString()
on the key (fromAoservObject.getKey()
). When the key isnull
, uses the default implementation fromObject.toString()
.- Overrides:
toStringImpl
in classCachedObjectIntegerKey<Device>
- Throws:
SQLException
IOException
-
getIpAddress
- Throws:
IOException
SQLException
-
getIpAddresses
- Throws:
IOException
SQLException
-
getPrimaryIpAddress
- Throws:
SQLException
IOException
-
getBondingReport
Gets the bonding report from/proc/net/bonding/[p]bond#
ornull
if not a bonded device.- Throws:
IOException
SQLException
-
getStatisticsReport
- Throws:
IOException
SQLException
-