Mercurial > hg > release > thermostat-0.9
view client/cli/src/main/resources/com/redhat/thermostat/client/cli/strings.properties @ 1102:8757e35030f2
Add user ID to VmInfo and display in clients
This commit adds user ID information to the VmInfo Pojo, which is
gathered by SystemBackend. The UID for a VM is collected by parsing
/proc/${pid}/status, and we then get the username for the UID from the
native function getpwuid_r. Both the vm-info command and the VM Overview
tab of the Swing GUI now show the user under Process Information. I took
inspiration from the id Unix program for the formatting, which is
"uid(username)". The native component of this commit is added to
agent-core for use by system-backend, this was done on request by Mario
since agent-core already has a native component for getting the
hostname. I made this component an OSGi service primarily to hide its
implementation details.
Reviewed-by: omajid, jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-May/006674.html
author | Elliott Baron <ebaron@redhat.com> |
---|---|
date | Tue, 21 May 2013 12:43:17 -0400 |
parents | 97e66ed2e4ae |
children |
line wrap: on
line source
MISSING_INFO = Missing Information MISSING_LAUNCHER = Fatal Error: Could not locate launcher HOST_SERVICE_UNAVAILABLE = Unable to get host information (HostInfoDAO is unavailable) VM_SERVICE_UNAVAILABLE = Unable to get vm information (VmInfoDAO is unavailable) VM_CPU_SERVICE_NOT_AVAILABLE = Unable to access vm cpu information (VmCpuStats not available) VM_MEMORY_SERVICE_NOT_AVAILABLE = Unable to access vm memory information (VmCpuStats not available) COMMAND_CONNECT_ALREADY_CONNECTED = Already connected to storage: URL = {0}\nPlease use disconnect command to disconnect. COMMAND_CONNECT_FAILED_TO_CONNECT = Could not connect to db {0} COMMAND_CONNECT_INVALID_STORAGE = Unrecognized storage URL {0} COMMAND_CONNECT_NO_KEYRING = Unable to retrieve keyring COMMAND_CONNECT_ERROR = Error: {0} COMMAND_CONNECT_USER_PROMPT_ERROR = Error while prompting for username and password. COMMAND_DISCONNECT_NOT_CONNECTED = Not connected to storage. You may use the connect command for establishing connections. COMMAND_DISCONNECT_ERROR = Failed to disconnect from database. COMMAND_SHELL_IO_EXCEPTION = IOException caught during Thermostat shell session. VM_INFO_PROCESS_ID = Process ID: VM_INFO_START_TIME = Start time: VM_INFO_STOP_TIME = Stop time: VM_INFO_MAIN_CLASS = Main class: VM_INFO_COMMAND_LINE = Command line: VM_INFO_JAVA_VERSION = Java version: VM_INFO_VIRTUAL_MACHINE = Virtual machine: VM_INFO_VM_ARGUMENTS = VM arguments: VM_INFO_USER = User ID: VM_INFO_USER_UNKNOWN = <Unknown> COLUMN_HEADER_HOST_ID = HOST_ID COLUMN_HEADER_HOST = HOST COLUMN_HEADER_VM_ID = VM_ID COLUMN_HEADER_VM_NAME = VM_NAME COLUMN_HEADER_VM_STATUS = STATUS COLUMN_HEADER_TIME = TIME VM_STOP_TIME_RUNNING = <Running> VM_STATUS_ALIVE = RUNNING VM_STATUS_DEAD = EXITED HOSTID_REQUIRED_MESSAGE = a hostId is required INVALID_VMID_MESSAGE = Invalid VM ID: {0}