public interface PCB
Modifier and Type | Method and Description |
---|---|
PID |
getClientPID()
Returns client process ID.
|
long |
getExecutionTime()
Returns duration of this process (in milliseconds).
|
PID |
getParentPID()
Returns parent process ID.
|
PID |
getPID()
Returns ID of process to which is this PCB associated.
|
java.lang.Object |
getProperty(java.lang.String aKey)
Reads property from process environment.
|
java.util.List<java.lang.Object> |
getPropertyChain(java.lang.String aKey)
Reads hierarchy of properties from process environment.
|
PID |
getSessionPID()
Returns session process ID.
|
long |
getStartTime()
Returns start time of process (time is returned as currentTimeMillis).
|
boolean |
isInheritedProperty(java.lang.String aKey)
Checks if property was initially set to actual process environment (is owned by
actual process environment), or was inherited from parent process environment.
|
void |
setProperty(java.lang.String aKey,
Sets property to process environment.
|
void |
setRetainedProperty(java.lang.String aKey,
Sets retained property to process environment.
|
aKey
- Unique property identifieraValue
- Property to be storedaKey
- Unique property identifieraValue
- Property to be storedaKey
- Property identifieraKey
- Property identifieraKey
- Property identifier