Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/tcf/services/sysmonitor.py')
-rw-r--r--python/src/tcf/services/sysmonitor.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/python/src/tcf/services/sysmonitor.py b/python/src/tcf/services/sysmonitor.py
index 6e5d69218..9ccd13462 100644
--- a/python/src/tcf/services/sysmonitor.py
+++ b/python/src/tcf/services/sysmonitor.py
@@ -1,5 +1,5 @@
# *****************************************************************************
-# * Copyright (c) 2011, 2013-2014 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011, 2013-2014, 2016 Wind River Systems, Inc. and others.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
@@ -244,6 +244,8 @@ NAME = "SysMonitor"
# Context property names.
PROP_ID = "ID"
PROP_PARENTID = "ParentID"
+PROP_SYSTEMID = "SystemID"
+PROP_SYSTEMTYPE = "SystemType"
PROP_CWD = "CWD"
PROP_ROOT = "Root"
PROP_UID = "UID"
@@ -328,6 +330,22 @@ class SysMonitorContext(object):
"""
return self._props.get(PROP_PARENTID, '')
+ def getSystemID(self):
+ """Get target context ID.
+
+ :returns: A |basestring| representing this target context ID or None
+ if unspecified.
+ """
+ return self._props.get(PROP_SYSTEMID, None)
+
+ def getSystemType(self):
+ """Get target context type.
+
+ :returns: A |basestring| representing this target context type or None
+ if unspecified.
+ """
+ return self._props.get(PROP_SYSTEMTYPE, None)
+
def getPGRP(self):
"""Get process group ID.

Back to the top