java.lang.Object
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
,Host> Comparable<Host>
A
Server
stores the details about a single, physical server.- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
The daemon key is only available toMasterUser
s.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 TypeMethodDescriptionvoid
addAccount
(Account.Name accounting, String contractVersion, Account parent, boolean canAddBackupServers, boolean canAddBusinesses, boolean canSeePrices, boolean billParent) int
addNetBind
(Package pk, IpAddress ia, Port port, AppProtocol appProtocol, boolean monitoringEnabled, Set<FirewallZone.Name> firewalldZones) int
protected Object
getColumnImpl
(int i) Gets the list of all replications coming from this server.getName()
getNetBind
(IpAddress ipAddress, Port port) getNetBinds
(AppProtocol protocol) getNetBinds
(IpAddress ipAddress) getNetDevice
(String deviceId) int
May be filtered.int
Gets the package id, will not be filtered.void
Initializes this object from the raw database contents.boolean
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_PACKAGE_name
- See Also:
-
COLUMN_NAME_name
- See Also:
-
HIDDEN_PASSWORD
The daemon key is only available toMasterUser
s. This value is used in place of the key when not accessible.- See Also:
-
-
Constructor Details
-
Host
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
addAccount
public void addAccount(Account.Name accounting, String contractVersion, Account parent, boolean canAddBackupServers, boolean canAddBusinesses, boolean canSeePrices, boolean billParent) throws IOException, SQLException - Throws:
IOException
SQLException
-
addNetBind
public int addNetBind(Package pk, IpAddress ia, Port port, AppProtocol appProtocol, boolean monitoringEnabled, Set<FirewallZone.Name> firewalldZones) throws IOException, SQLException - Throws:
IOException
SQLException
-
getLinuxServer
- Throws:
IOException
SQLException
-
getPhysicalServer
- Throws:
IOException
SQLException
-
getVirtualServer
- Throws:
IOException
SQLException
-
getAccounts
- Throws:
IOException
SQLException
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Host>
-
getOperatingSystemVersion_id
public int getOperatingSystemVersion_id() -
getOperatingSystemVersion
- Throws:
SQLException
IOException
-
getPackage
May be filtered.- Throws:
IOException
SQLException
- See Also:
-
getPackageId
public int getPackageId()Gets the package id, will not be filtered.- See Also:
-
getName
-
isMonitoringEnabled
public boolean isMonitoringEnabled() -
getServerFarm
- Throws:
SQLException
IOException
-
getDescription
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Host>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Host> - 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,
Host> - Throws:
IOException
-
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<Host>
- Throws:
IOException
SQLException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Host> - Throws:
IOException
-
getFailoverFileReplications
Gets the list of all replications coming from this server.- Throws:
IOException
SQLException
-
getFirewalldZones
- Throws:
IOException
SQLException
-
getNetBind
- Throws:
IOException
SQLException
-
getNetBinds
- Throws:
IOException
SQLException
-
getNetBinds
- Throws:
IOException
SQLException
-
getNetBinds
- Throws:
IOException
SQLException
-
getNetDevice
- Throws:
IOException
SQLException
-
getNetDevices
- Throws:
IOException
SQLException
-
getIpAddresses
- Throws:
IOException
SQLException
-
getAvailableIpAddress
- Throws:
SQLException
IOException
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Host>
-