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>
Each
Thread
on 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
FieldsModifier and TypeFieldDescriptionprotected String
protected User.Name
protected Identifier
protected UnmodifiableTimestamp
protected int
protected User.Name
protected InetAddress
protected SmallIdentifier
protected boolean
static final String
The different states a process may be in.protected int
protected String
static final String
The different states a process may be in.static final String
The different states a process may be in.protected String
protected UnmodifiableTimestamp
protected long
protected long
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorsConstructorDescriptionProcess()
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 TypeMethodDescriptionstatic String
combineCommand
(String[] command) protected Object
getColumnImpl
(int i) String[]
int
getHost()
getId()
getKey()
int
getState()
getTable()
Gets theAoservTable
that contains thisAoservObject
.long
long
void
Initializes this object from the raw database contents.boolean
isSecure()
void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
setTable
(AoservTable<SmallIdentifier, Process> table) void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) 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 Details
-
LOGIN
The different states a process may be in.- See Also:
-
RUN
The different states a process may be in.- See Also:
-
SLEEP
The different states a process may be in.- See Also:
-
id
-
connectorId
-
authenticatedUser
-
effectiveUser
-
daemonServer
protected int daemonServer -
host
-
protocol
-
aoservProtocol
-
isSecure
protected boolean isSecure -
connectTime
-
useCount
protected long useCount -
totalTime
protected long totalTime -
priority
protected int priority -
state
-
stateStartTime
-
-
Constructor Details
-
Process
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
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<SmallIdentifier,
Process>
-
getDaemonServer
public int getDaemonServer() -
getPriority
public int getPriority() -
getId
-
getConnectorId
-
getAuthenticatedAdministrator_username
-
getAuthenticatedAdministrator
- Throws:
IOException
SQLException
-
getEffectiveAdministrator_username
-
getEffectiveAdministrator
- Throws:
SQLException
IOException
-
getHost
-
getProtocol
-
getAoservProtocol
-
isSecure
public boolean isSecure() -
getConnectTime
-
getUseCount
public long getUseCount() -
getTotalTime
public long getTotalTime() -
getState
-
getStateStartTime
-
getKey
- Specified by:
getKey
in classAoservObject<SmallIdentifier,
Process>
-
getTable
Description copied from interface:SingleTableObject
Gets theAoservTable
that contains thisAoservObject
.- Specified by:
getTable
in interfaceSingleTableObject<SmallIdentifier,
Process> - Returns:
- the
AoservTable
.
-
getTableId
- Specified by:
getTableId
in classAoservObject<SmallIdentifier,
Process>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<SmallIdentifier,
Process> - 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<SmallIdentifier,
Process> - Throws:
IOException
-
combineCommand
-
getCommand
-
setTable
- Specified by:
setTable
in interfaceSingleTableObject<SmallIdentifier,
Process>
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<SmallIdentifier,
Process> - Throws:
IOException
-