- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<SmallIdentifier,Process>
-
- com.aoindustries.aoserv.client.master.Process
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<SmallIdentifier,Process>
public class Process extends AOServObject<SmallIdentifier,Process> implements SingleTableObject<SmallIdentifier,Process>
EachThreadon the master reports its activities so that a query on this table shows a snapshot of the currently running system.- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringaoserv_protocolprotected User.Nameauthenticated_userprotected UnmodifiableTimestampconnect_timeprotected IdentifierconnectorIdprotected intdaemon_serverprotected User.Nameeffective_userprotected InetAddresshostprotected SmallIdentifieridprotected booleanis_securestatic StringLOGINThe different states a process may be in.protected intpriorityprotected Stringprotocolstatic StringRUNThe different states a process may be in.static StringSLEEPThe different states a process may be in.protected Stringstateprotected UnmodifiableTimestampstate_start_timeprotected longtotal_timeprotected longuse_count-
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 Process()
-
Method Summary
-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, equals, 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, hashCode, read, toString, toStringImpl, write
-
-
-
-
Field Detail
-
LOGIN
public static final String LOGIN
The different states a process may be in.- See Also:
- Constant Field Values
-
RUN
public static final String RUN
The different states a process may be in.- See Also:
- Constant Field Values
-
SLEEP
public static final String SLEEP
The different states a process may be in.- See Also:
- Constant Field Values
-
id
protected SmallIdentifier id
-
connectorId
protected Identifier connectorId
-
authenticated_user
protected User.Name authenticated_user
-
effective_user
protected User.Name effective_user
-
daemon_server
protected int daemon_server
-
host
protected InetAddress host
-
protocol
protected String protocol
-
aoserv_protocol
protected String aoserv_protocol
-
is_secure
protected boolean is_secure
-
connect_time
protected UnmodifiableTimestamp connect_time
-
use_count
protected long use_count
-
total_time
protected long total_time
-
priority
protected int priority
-
state
protected String state
-
state_start_time
protected UnmodifiableTimestamp state_start_time
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<SmallIdentifier,Process>
-
getDaemonServer
public int getDaemonServer()
-
getPriority
public int getPriority()
-
getId
public SmallIdentifier getId()
-
getConnectorId
public Identifier getConnectorId()
-
getAuthenticatedAdministrator_username
public User.Name getAuthenticatedAdministrator_username()
-
getAuthenticatedAdministrator
public Administrator getAuthenticatedAdministrator() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getEffectiveAdministrator_username
public User.Name getEffectiveAdministrator_username()
-
getEffectiveAdministrator
public Administrator getEffectiveAdministrator() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getHost
public InetAddress getHost()
-
getProtocol
public String getProtocol()
-
getAOServProtocol
public String getAOServProtocol()
-
isSecure
public boolean isSecure()
-
getConnectTime
public UnmodifiableTimestamp getConnectTime()
-
getUseCount
public long getUseCount()
-
getTotalTime
public long getTotalTime()
-
getState
public String getState()
-
getStateStartTime
public UnmodifiableTimestamp getStateStartTime()
-
getKey
public SmallIdentifier getKey()
- Specified by:
getKeyin classAOServObject<SmallIdentifier,Process>
-
getTable
public AOServTable<SmallIdentifier,Process> getTable()
Description copied from interface:SingleTableObjectGets theAOServTablethat contains thisAOServObject.- Specified by:
getTablein interfaceSingleTableObject<SmallIdentifier,Process>- Returns:
- the
AOServTable.
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<SmallIdentifier,Process>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<SmallIdentifier,Process>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<SmallIdentifier,Process>- Throws:
IOException
-
getCommand
public String[] getCommand()
-
setTable
public void setTable(AOServTable<SmallIdentifier,Process> table)
- Specified by:
setTablein interfaceSingleTableObject<SmallIdentifier,Process>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<SmallIdentifier,Process>- Throws:
IOException
-
-