- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.GlobalObject<String,T>
-
- com.aoindustries.aoserv.client.GlobalObjectStringKey<DeviceId>
-
- com.aoindustries.aoserv.client.net.DeviceId
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,Comparable<DeviceId>
public final class DeviceId extends GlobalObjectStringKey<DeviceId> implements Comparable<DeviceId>
AnNetDeviceIDis a simple wrapper for the different names of network devices used in Linux servers.- Author:
- AO Industries, Inc.
- See Also:
Device
-
-
Field Summary
Fields Modifier and Type Field Description static StringBMCstatic StringBOND0static StringBOND1static StringBOND2static StringETH0static StringETH1static StringETH2static StringETH3static StringETH4static StringETH5static StringETH6static StringLO-
Fields inherited from class com.aoindustries.aoserv.client.GlobalObjectStringKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description DeviceId()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DeviceId other)protected ObjectgetColumnImpl(int i)StringgetName()Table.TableIDgetTableID()voidinit(ResultSet results)Initializes this object from the raw database contents.booleanisLoopback()voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.GlobalObjectStringKey
equals, getKey, hashCode, toStringImpl
-
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 Detail
-
BMC
public static final String BMC
- See Also:
- Constant Field Values
-
BOND0
public static final String BOND0
- See Also:
- Constant Field Values
-
BOND1
public static final String BOND1
- See Also:
- Constant Field Values
-
BOND2
public static final String BOND2
- See Also:
- Constant Field Values
-
LO
public static final String LO
- See Also:
- Constant Field Values
-
ETH0
public static final String ETH0
- See Also:
- Constant Field Values
-
ETH1
public static final String ETH1
- See Also:
- Constant Field Values
-
ETH2
public static final String ETH2
- See Also:
- Constant Field Values
-
ETH3
public static final String ETH3
- See Also:
- Constant Field Values
-
ETH4
public static final String ETH4
- See Also:
- Constant Field Values
-
ETH5
public static final String ETH5
- See Also:
- Constant Field Values
-
ETH6
public static final String ETH6
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<String,DeviceId>
-
getName
public String getName()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<String,DeviceId>
-
init
public void init(ResultSet results) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<String,DeviceId>- Parameters:
results- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isLoopback
public boolean isLoopback()
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<String,DeviceId>- Throws:
IOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<String,DeviceId>- Throws:
IOException
-
compareTo
public int compareTo(DeviceId other)
- Specified by:
compareToin interfaceComparable<DeviceId>
-
-