eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ProcessMonitorV2':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ProcessMonitorV2


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--ProcessMonitorV2

Package:
stx:libtool
Category:
Monitors-ST/X
Version:
rev: 1.86 date: 2018/01/17 13:09:00
user: cg
file: ProcessMonitorV2.st directory: libtool
module: stx stc-classLibrary: libtool
Author:
Christian Penk (penk@bierfix)

Description:


documentation to be added.


[instance variables:]

[class variables:]


Related information:



Class protocol:

defaults
o  defaultLabel

o  resourcePackName
return the name which is used as the fileNameBase of my resource file.
Here, use the same resources as the (old) ProcessMonitor

help
o  aboutThisApplicationText

o  helpSpec
This resource specification was automatically generated
by the UIHelpTool of ST/X.

image specs
o  defaultIcon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self defaultIcon inspect
     ImageEditor openOnClass:self andSelector:#defaultIcon
     Icon flushCachedIcons

o  detailsMenuIconDown
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self detailsMenuIconDown inspect
     ImageEditor openOnClass:self andSelector:#detailsMenuIconDown
     Icon flushCachedIcons

o  detailsMenuIconUp
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self detailsMenuIconUp inspect
     ImageEditor openOnClass:self andSelector:#detailsMenuIconUp
     Icon flushCachedIcons

o  process22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self process22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#process22x22Icon
     Icon flushCachedIcons

o  processAbort22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processAbort22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processAbort22x22Icon
     Icon flushCachedIcons

o  processDebug22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processDebug22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processDebug22x22Icon
     Icon flushCachedIcons

o  processInspect22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processInspect22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processInspect22x22Icon
     Icon flushCachedIcons

o  processLowerPrio22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processLowerPrio22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processLowerPrio22x22Icon
     Icon flushCachedIcons

o  processRaisePrio22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processRaisePrio22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processRaisePrio22x22Icon
     Icon flushCachedIcons

o  processRestart22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processRestart22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processRestart22x22Icon
     Icon flushCachedIcons

o  processResume22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processResume22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processResume22x22Icon
     Icon flushCachedIcons

o  processStop22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processStop22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processStop22x22Icon
     Icon flushCachedIcons

o  processSuspend22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processSuspend22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processSuspend22x22Icon
     Icon flushCachedIcons

o  processTerminate22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processTerminate22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processTerminate22x22Icon
     Icon flushCachedIcons

o  processTerminateGroup22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self processTerminateGroup22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#processTerminateGroup22x22Icon
     Icon flushCachedIcons

o  raiseWindow22x22Icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self raiseWindow22x22Icon inspect
     ImageEditor openOnClass:self andSelector:#raiseWindow22x22Icon
     Icon flushCachedIcons

o  terminateGroupIcon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self terminateGroupIcon inspect
     ImageEditor openOnClass:self andSelector:#terminateGroupIcon
     Icon flushCachedIcons

o  terminateIcon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self terminateIcon inspect
     ImageEditor openOnClass:self andSelector:#terminateIcon
     Icon flushCachedIcons

o  viewDetailsIcon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self viewDetailsIcon inspect
     ImageEditor openOnClass:self andSelector:#viewDetailsIcon
     Icon flushCachedIcons

instance creation
o  openAllowNoModifications

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):
     UIPainter new openOnClass:ProcessMonitorV2 andSelector:#windowSpec
     ProcessMonitorV2 new openInterface:#windowSpec
     ProcessMonitorV2 open

menu specs
o  applicationMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#applicationMenu
     (Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 applicationMenu)) startUp

o  debugMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#debugMenu
     (Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 debugMenu)) startUp

o  instrumentationMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#instrumentationMenu
     (Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 instrumentationMenu)) startUp

o  mainMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#mainMenu
     (Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 mainMenu)) startUp

o  processMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#processMenu
     (Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 processMenu)) startUp

o  tableMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#tableMenu
     (Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 tableMenu)) startUp

o  toolBarMainMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#toolBarMainMenu
     (Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 toolBarMainMenu)) startUp

o  viewDetailsMenuSpec
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#viewDetailsMenuSpec
     (Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 viewDetailsMenuSpec)) startUp

tableColumns specs
o  tableColumns
This resource specification was automatically generated
by the DataSetBuilder of ST/X.
usage example(s):
     DataSetBuilder new openOnClass:ProcessMonitorV2 andSelector:#tableColumns


Instance protocol:

accessing
o  visibleBlock

o  visibleBlock: aProcessVisibleFilterBlock

actions
o  changeSelectionTo: aSelection

o  changeSelectionToProcesses: aProcessList

o  decreaseupdateContentsDelayTime

o  decreaseupdateListDelayTime

o  doubleClickedAt: anItemIndex
open a debugger on the selected process

o  evaluateEnableInDecreaseButtons

o  getProcessList
select processes to display.
Subclasses may redefine this

o  increaseupdateContentsDelayTime

o  increaseupdateListDelayTime

o  selectedProcessesDo: aBlock

o  selectedProcessesSend: aSelector
send a message to all selected processes

aspects
o  currentSortOrder
return/create the 'currentSortOrder' value holder (automatically generated)

o  interruptCountHolder

o  isNotTimeslicing

o  isTimeslicing

o  processList

o  scaledUpdateContentsDelayTime

o  scaledUpdateListDelayTime

o  selectedProcesses
selectedProcesses addDependent:self.

o  showDeadHolder
return/create the 'showDead' value holder (automatically generated)

o  sortBlock

o  tableColumns

o  timerActionCountHolder

o  updateContentsDelayTimeHolder

o  updateListDelayTimeHolder

aspects-column
o  showApplication
return/create the 'showApplication' value holder (automatically generated)

o  showCurrentSegment
return/create the 'showCurrentSegment' value holder (automatically generated)

o  showGroup
return/create the 'showGroup' value holder (automatically generated)

o  showInstrumentation
return/create the 'showInstrumentation' value holder (automatically generated)

o  showPrio
return/create the 'showPrio' value holder (automatically generated)

o  showProcessId

o  showStartTime
return/create the 'showStartTime' value holder (automatically generated)

o  showState
return/create the 'showState' value holder (automatically generated)

o  showSwitch
return/create the 'showSwitch' value holder (automatically generated)

o  showTotalStack
return/create the 'showTotalStack' value holder (automatically generated)

o  showUsedStack
return/create the 'showUsedStack' value holder (automatically generated)

o  showWhere
return/create the 'showWhere' value holder (automatically generated)

o  showWindowTitle
return/create the 'showWindowTitle' value holder (automatically generated)

aspects-menu enabling
o  allowModifications

o  allowModificationsAndHasDebugger

o  enableDecreaseContentsDelayTime

o  enableDecreaseListDelayTime

o  enableIncreaseContentsDelayTime

o  enableIncreaseListDelayTime

o  hasSelection
return true, if an item is selected

o  hasSelectionHolder

o  hasSelectionWithApplicationProcess

o  hasSelectionWithApplicationProcessHolder

o  hasSelectionWithDisabledInstrumentation

o  hasSelectionWithDisabledInstrumentationHolder

o  hasSelectionWithEnabledInstrumentation

o  hasSelectionWithEnabledInstrumentationHolder

o  hasSelectionWithGUIProcess

o  hasSelectionWithGUIProcessHolder

o  hasSelectionWithProcessForWhich: aBlock

o  hasSelectionWithStoppedProcess

o  hasSelectionWithStoppedProcessHolder

o  selectionRestartable

change & update
o  selectionChanged

o  update: something with: aParameter from: changedObject
Invoked when an object that I depend upon sends a change notification.

o  viewedColumnsChanged
take the class's columnSpec and select the one's selected by the user.
Stuff this filtered tableColSpec into the value holder
usage example(s):
Transcript showCR:'oldSelection on catch in viewedColumnsChanged', (oldSelection isNil ifTrue:['nil'] ifFalse:[oldSelection first printString]).
usage example(s):
Transcript showCR:'oldSelection on set in viewedColumnsChanged', (oldSelection isNil ifTrue:['nil'] ifFalse:[oldSelection first printString]).

event handling
o  processEvent: anEvent
filter keyboard events.
Return true, if I have eaten the event

initialization & release
o  commonPostOpen

o  initialize
0.5

o  postBuildProcessTable: aWidget

o  release

o  restarted
restarted from snapshot

menu accessing
o  tableMenu

o  tableMenuAccess

menu actions
o  abortProcess
abort (raise AbortSignal in) the selected process

o  findProcessByView
let user click on a window. then select the corresponding process

o  hardTerminateProcess
hard terminate the selected process

o  lowerPrio
lower the selected processes priority

o  openDocumentation
This method was generated by the Browser.
It will be invoked when the menu-item 'help-documentation' is selected.

o  raisePrio
raise the selected processes priority

o  restartProcess
restarts the selected process

o  resumeProcess
resume the selected process (i.e. let it run)

o  setPrioRange
set a prio-range the selected processes priority

o  startTimeslicing

o  stopProcess
stop the selected process - not even interrupts will wake it up

o  stopTimeslicing

o  suspendProcess
suspend the selected process - interrupts will let it run again

o  terminateAllLikeThis
terminate the selected process with all of its subprocesses

o  terminateProcess
terminate the selected process

o  terminateProcessGroup
terminate the selected process with all of its subprocesses

menu actions-application
o  closeApplication
close the process(es) topView(s)

o  lowerApplicationWindow
lower the selected process(es) topView(s)

o  raiseApplicationWindow
raise the selected process(es) topView(s)

o  selectedApplicationTopViewsDo: aBlock

menu actions-debug
o  browseApplication
open a browser on the selected process(es) application or topView

o  debugProcess
open a debugger on the selected process(es)

o  debugWhenResumed
open a debugger when the selected process(es) is resumed

o  disableInstrumentation

o  enableInstrumentation

o  inspectApplication
open an inspector on the selected process(es) application or topView

o  inspectSelection
open an inspector on the selected process

private queries
o  isApplicationProcess: aProcess

o  windowGroupOfProcess: aProcess

queries - table string
o  getActiveStringFor: aProcess running: isRunning

o  getApplicationFor: aProcess

o  getApplicationStringFor: aProcess

o  getCurrentSegmentStringFor: con
Modified (format): / 17-08-2011 / 10:57:23 / cg

o  getGroupStringFor: aProcess
a group leader

o  getInstrumentationStringFor: aProcess

o  getPrioStringFor: aProcess
Modified (format): / 17-08-2011 / 10:57:36 / cg

o  getTotalStackStringFor: aProcess

o  getWhereContextFor: con running: isRunning
retrieve a reasonable description of where the process is sitting around;
that is not the last context before the context switch, because that would
usually be too low level and non-descriptive; instead, walk up the sender chain to
a higher level waiter, such as a semaphore wait, a shared queue wait etc.

o  getWhereStringFor: con running: isRunning
retrieve a reasonable description of where the process is sitting around;
that is not the last context before the context switch, because that would
usually be too low level and non-descriptive; instead, walk up the sender chain to
a higher level waiter, such as a semaphore wait, a shared queue wait etc.

o  getWindowTitleFor: aProcess

sorting
o  sortProcessListBy: instanceName
method to sort the list of BugReport

update process
o  fillItemInformationIn: processItem
processItem processBlocked:(aProcess interruptsDisabled).

o  fillItemInformationIn: processItem with: aProcess inArray: weakArrayWithProcesses atIndex: processInstanceIndexInWeakArray

o  startUpdateProcess
after a restart, updateProcess is a dead process

o  updateChangedItem: oldItem newItem: newItem atIndex: index
ID

o  updateList
recompute the list of processes

o  updateStatus: newProcessList
update the interrupt counts

o  updateTable: newProcessList
Transcript showCR:('update the table', Timestamp now printString, 'with new list:', newProcessList notNil asString).
usage example(s):
Transcript showCR:'oldSelection on catch in updateTable: ', (oldSelection isEmptyOrNil ifTrue:['nil'] ifFalse:[oldSelection first printString]).
usage example(s):
Transcript showCR:'oldSelection on set in updateTable: ', (oldSelection isEmptyOrNil ifTrue:['nil'] ifFalse:[oldSelection first printString]).


Private classes:

    ProcessItem

Examples:


Starting the application:
  ProcessMonitorV2 open

Starting the application withot any possibilities to change the processes
  ProcessMonitorV2 openAllowNoModifications

more examples to be added:
  ... add code fragment for
  ... executable example here ...


ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 12 Dec 2018 20:53:17 GMT