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:
Interface-Tools-Monitors
Version:
rev: 1.132 date: 2024/04/22 16:50:10
user: stefan
file: ProcessMonitorV2.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


documentation to be added.


[instance variables:]

[class variables:]

copyright

COPYRIGHT (c) 2003 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

defaults
o  default
return the default class to be used as process monotor

Usage example(s):

     self default open

Usage example(s):

     UserPreferences current processMonitorClass:ProcessMonitor.
     ProcessMonitor default open.
     UserPreferences current processMonitorClass:nil.

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
(comment from inherited method)
text for an about box for this application.

help specs
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  open
Singleton closeRequest

o  openAllowNoModifications

o  openOn: aProcess
ProcessMonitorV2 openOn:Processor activeProcess

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: aCollectionOfProcessItems
Modified (format): / 04-07-2023 / 15:02:56 / exept MBP

o  changeSelectionToProcesses: aCollectionOfProcesses
Modified (format): / 04-07-2023 / 15:05:50 / exept MBP

o  decreaseupdateContentsDelayTime

o  decreaseupdateListDelayTime

o  doubleClickedAt: anItemIndex
open a debugger on the selected process

o  evaluateEnableDecreaseButtons

o  evaluateEnableInDecreaseButtons

o  getProcessList
select processes to display.
Subclasses may redefine this

o  increaseupdateContentsDelayTime

o  increaseupdateListDelayTime

o  selectedProcessesDo: aBlock
evaluate aBlock on each selected process

o  selectedProcessesSend: aSelector
send a message to each selected process

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

o  interruptCountHolder

o  isNotTimeslicing

o  isTimeslicing

o  memoryAllocatedHolder

o  processList

o  scaledUpdateContentsDelayTime

o  scaledUpdateListDelayTime

o  selectedProcesses

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

o  sortBlock

o  systemProcessCountHolder

o  tableColumns

o  timerActionCountHolder

o  updateContentsDelayTimeHolder

o  updateListDelayTimeHolder

o  userProcessCountHolder

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  hasDebuggedProcessSelectedHolder

o  hasSelection
return true, if an item is selected

o  hasSelectionHolder

o  hasSelectionWithApplicationProcess

o  hasSelectionWithApplicationProcessHolder

o  hasSelectionWithDebuggedProcessHolder

o  hasSelectionWithDisabledInstrumentation

o  hasSelectionWithDisabledInstrumentationHolder

o  hasSelectionWithEnabledInstrumentation

o  hasSelectionWithEnabledInstrumentationHolder

o  hasSelectionWithGUIProcess

o  hasSelectionWithGUIProcessHolder

o  hasSelectionWithProcessBlockingOnSemaphore

o  hasSelectionWithProcessBlockingOnSemaphoreHolder

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
(comment from inherited method)
a common hook for postOpenWith:, postOpenAsSubcanvasWith: and postOpenAsDialogWith:.
Notice: redefined methods should do a super send.
otherwise resources might be undefined.

o  initialize
0.5

o  postBuildProcessTable: aWidget

o  release
(comment from inherited method)
remove all references to objects that may refer to self.
Subclasses may redefine this method but should do a 'super 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.
Also called when <F1> is pressed

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  inspectBlockingSemaphore

o  inspectSelection
open an inspector on the selected process

o  raiseDebugger
raise the debugger window, which is debugging the selected process(es)

o  raiseDebuggerOfProcess: aProcess
raise the debugger window, which is debugging the given 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 blockingSemaphoreInto: aBlockOrNil
retrieve a reasonable context 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 as a string;
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]).

o  updateView


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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:12:48 GMT