|
Class: URITransmissionService
Object
|
+--URITransmissionService
- Package:
- stx:goodies/communication
- Category:
- Net-Communication-URI
- Version:
- rev:
1.20
date: 2010/08/13 13:57:03
- user: stefan
- file: URITransmissionService.st directory: goodies/communication
- module: stx stc-classLibrary: communication
- Author:
- Timo Merkert (tm@asterix)
documentation to be added.
[instance variables:]
[class variables:]
default settings
-
secondsForTimerAction
-
Returnd the seconds about the interval refered to the timer action
instance creation
-
fromFile: aFileName monitoring: aBoolean onErrorHandle: anErrorHandleBlock
-
self fromFile:'/home/tm/pcsmd/config/fileTransmission/serviceConfiguration'
monitoring:false
onErrorHandle:[:ex| Transcript showCR:ex description ]
-
fromFile: aFileName monitoring: aBoolean onErrorHandle: anErrorHandleBlock transmissionInfoHolder: aTransmissionInfoHolder
-
self fromFile:'/home/tm/pcsmd/config/fileTransmission/serviceConfiguration'
monitoring:true
onErrorHandle:[:ex| Transcript showCR:ex description ]
transmissionInfoHolder:[:info| Transcript showCR:info ]
-
fromFile: aFileName onErrorHandle: anErrorHandleBlock transmissionInfoHolder: aTransmissionInfoHolder
-
self fromFile:'/home/tm/pcsmd/config/fileTransmission/serviceConfiguration'
onErrorHandle:[:ex| Transcript showCR:ex description ]
transmissionInfoHolder:[:info| Transcript showCR:info ]
-
fromString: aString onErrorHandle: anErrorHandleBlock transmissionInfoHolder: aTransmissionInfoHolder
-
self fromString:'file:/phys/exept/home/tm/tmp file:/home/tm/test'
onErrorHandle:[:ex| Transcript showCR:ex description ]
transmissionInfoHolder:[:info| Transcript showCR:info value ]
reading
-
transmissionListFromFile: aFileName
-
-
transmissionListFromFile: aFileName onError: aThreArgBlock
-
list of Strings
accessing
-
fileName
-
return the value of the instance variable 'fileName' (automatically generated)
-
fileName: aFileName
-
set the value of the instance variable 'fileName' (automatically generated)
-
monitoring
-
return the value of the instance variable 'monitoring' (automatically generated)
-
monitoring: aBoolean
-
if true;
reset transmissions read from fileName,
after each processing-loop about the transmissions
-
onErrorBlock
-
get the value of the instance variable 'errorHandler' (automatically generated)
-
onErrorBlock: aOneArgBlock
-
set the value of the instance variable 'errorHandler' (automatically generated)
-
timerProcess
-
return the value of the instance variable 'timerProcess' (automatically generated)
-
transmissionInfoHolder: aValueHolder
-
set the value of the instance variable 'transmissionInfoHolder' (automatically generated)
-
transmissions
-
return the value of the instance variable 'transmissions' (automatically generated)
-
transmissions: aTransmissionList
-
set the value of the instance variable 'transmissions' (automatically generated)
processing
-
doTimerActions
-
-
startService
-
start a sub-process to invoke timer actions cyclic here
usage example(s):
URITransmissionService new startService
|
-
terminateService
-
terminate the sub-process about the timer actions
usage example(s):
URITransmissionService new terminateService
|
-
transmissionsCriticalDo: aBlock
-
do operate with RecursionLock on transmissions
queries
-
state
-
validation
-
evaluateFile
-
ignore non-existing files or files not due to be evaluated
|description transmissions service|
description := 'file:/tmp/test/transmission.txt
file:/home/tm/tmp/transmission.txt
file:/home/tm/tmp/sent'
asCollectionOfWords.
service := URITransmissionService new.
service transmissions:transmissions.
service onErrorBlock:[:ex| Transcript showCR:ex description ].
service transmissionInfoHolder:[:info| Transcript showCR:info value]
service startService.
Delay waitForSeconds:10.
service terminateService.
|
|service|
service := self fromString:'file:/phys/exept/home/tm/tmp /home/tm/test'
onErrorHandle:[:ex| Transcript showCR:ex description ]
transmissionInfoHolder:[:info| Transcript showCR:info value].
Delay waitForSeconds:30.
service terminateService.
|
|service|
service := self fromFile:'/home/tm/pcsmd/config/fileTransmission/serviceConfiguration'
monitoring:true
onErrorHandle:[:ex| Transcript showCR:ex description ]
transmissionInfoHolder:[:info| Transcript showCR:info value].
Delay waitForSeconds:30.
service terminateService.
|