15
15
import base64
16
16
import sys
17
17
18
- import busIndipendentMessages
18
+ import busIndependentMessages
19
19
import computation_job_inputs
20
20
import computational_job_input_actions
21
21
import configInstance
@@ -141,8 +141,8 @@ def __init__(self, remote_config_filepath, service_config_filepath, execute_mess
141
141
self ._finished = False
142
142
143
143
# event handlers
144
- self .bus .RegisterMessageCallback (busIndipendentMessages .FinishMessage , self .handle_finish )
145
- self .bus .RegisterMessageCallback (busIndipendentMessages .AbortMessage , self .handle_abort )
144
+ self .bus .RegisterMessageCallback (busIndependentMessages .FinishMessage , self .handle_finish )
145
+ self .bus .RegisterMessageCallback (busIndependentMessages .AbortMessage , self .handle_abort )
146
146
147
147
def exit (self , return_code , exception = None ):
148
148
# if exception:
@@ -225,7 +225,7 @@ def process_output_parser(self, invoked_process):
225
225
self .bus .xmpp .reconnect ()
226
226
self .bus .xmpp .send_presence ()
227
227
if self .bus .state () == 'connected' :
228
- self .bus .SendMessage (busIndipendentMessages .
228
+ self .bus .SendMessage (busIndependentMessages .
229
229
LogMessage (self ._remote_wps_endpoint ,
230
230
"INFO" ,
231
231
"start parsing stdout of created process " + self .service ))
@@ -263,7 +263,7 @@ def process_output_parser(self, invoked_process):
263
263
" Could not send info message to GeoServer Endpoint " +
264
264
str (self ._remote_wps_endpoint ))
265
265
if self .bus .state () == 'connected' :
266
- self .bus .SendMessage (busIndipendentMessages .
266
+ self .bus .SendMessage (busIndependentMessages .
267
267
ProgressMessage (self ._remote_wps_endpoint ,
268
268
float (res .group (1 ).strip ())))
269
269
# match = True
@@ -280,7 +280,7 @@ def process_output_parser(self, invoked_process):
280
280
" Could not send info message to GeoServer Endpoint " +
281
281
str (self ._remote_wps_endpoint ))
282
282
if self .bus .state () == 'connected' :
283
- self .bus .SendMessage (busIndipendentMessages .
283
+ self .bus .SendMessage (busIndependentMessages .
284
284
LogMessage (self ._remote_wps_endpoint ,
285
285
res .group (1 ).strip (),
286
286
res .group (2 ).strip ()))
@@ -298,7 +298,7 @@ def process_output_parser(self, invoked_process):
298
298
" Could not send info message to GeoServer Endpoint " +
299
299
str (self ._remote_wps_endpoint ))
300
300
if self .bus .state () == 'connected' :
301
- self .bus .SendMessage (busIndipendentMessages .
301
+ self .bus .SendMessage (busIndependentMessages .
302
302
ErrorMessage (self ._remote_wps_endpoint ,
303
303
res .group (2 ).strip ()))
304
304
# match = True
@@ -357,7 +357,7 @@ def process_output_parser(self, invoked_process):
357
357
str (self ._remote_wps_endpoint ))
358
358
if self .bus .state () == 'connected' :
359
359
logger .info ("sending 'completed' message tentative #" + str (counter ))
360
- self .bus .SendMessage (busIndipendentMessages .
360
+ self .bus .SendMessage (busIndependentMessages .
361
361
CompletedMessage (self ._remote_wps_endpoint ,
362
362
self ._remote_wps_baseurl , outputs ))
363
363
counter = counter + 1
@@ -411,15 +411,15 @@ def send_error_message(self, msg):
411
411
" Could not send info message to GeoServer Endpoint " +
412
412
str (self ._remote_wps_endpoint ))
413
413
if self .bus .state () == 'connected' :
414
- self .bus .SendMessage (busIndipendentMessages .ErrorMessage (self ._remote_wps_endpoint , msg ))
414
+ self .bus .SendMessage (busIndependentMessages .ErrorMessage (self ._remote_wps_endpoint , msg ))
415
415
else :
416
416
try :
417
417
self .bus .xmpp .reconnect ()
418
418
self .bus .xmpp .send_presence ()
419
419
# self.bus.xmpp.get_roster()
420
420
421
421
if self .bus .state () == 'connected' :
422
- self .bus .SendMessage (busIndipendentMessages .ErrorMessage (self ._remote_wps_endpoint , msg ))
422
+ self .bus .SendMessage (busIndependentMessages .ErrorMessage (self ._remote_wps_endpoint , msg ))
423
423
else :
424
424
sys .stdout .write ("[XMPP Disconnected]: Process <UID>" +
425
425
str (self ._uniqueExeId ) +
0 commit comments