Package sos.scheduler.command

Examples of sos.scheduler.command.SOSSchedulerCommand.disconnect()


      stateText = "..number of jobs launched: " + (counter) + "(error=" + counterError +  ";success="+(counter - counterError) +")" + e.getMessage();
      sosLogger.info("..error in "+ SOSClassUtil.getClassName() + ": " + e.getMessage());
      throw new Exception("..error in "+ SOSClassUtil.getClassName() + ": " + e.getMessage());
     
    } finally {
      if (remoteCommand != null) { try { remoteCommand.disconnect(); } catch (Exception x) {} } // gracefully ignore this error
    }
  }
 
  /**
   * �berpr�fungen:
 
View Full Code Here


                    HashMap checkScheduler = (HashMap)schedulerIterator.next();
                    SOSSchedulerCommand command = new SOSSchedulerCommand(checkScheduler.get("host").toString(),
                                                       Integer.parseInt(checkScheduler.get("port").toString()), "udp");
                    command.connect();
                    command.sendRequest(jobContent);
                    command.disconnect();
                }
               
                // TODO wait some seconds and retrieve sanity check results from database, send alert message
               
            } catch (Exception e) {
View Full Code Here

           
        } catch (Exception e) {
            spooler_log.error("error occurred for remote execution: " + e.getMessage());
            return false;
        } finally {
            if (remoteCommand != null) { try { remoteCommand.disconnect(); } catch (Exception x) {} } // gracefully ignore this error
        }
       
    }

View Full Code Here

                    if (errorText != null && errorText.length() > 0) {
                        throw new Exception("could not send command to Supervisor Job Scheduler [" + this.getEventSupervisorSchedulerHost() + ":" + this.getEventSupervisorSchedulerPort() + "]: " + errorText );
                    }                           
                }

                schedulerCommand.disconnect();
                hwFile.close();
               
                if (!eventFileCopy.delete()) {
                    this.getLogger().info("could not delete temporary working copy of event file, re-trying later");
                    eventFileCopy.deleteOnExit();
View Full Code Here

       
      }
      return false;
    } finally {
      if (remoteCommand != null) {
        try { remoteCommand.disconnect(); } catch (Exception x) {}  // gracefully ignore this error
     
    }   
   
  }
 
View Full Code Here

            catch (Exception e) {
              throw new Exception("Error contacting remote Job Scheduler: " + e, e);
            }
            finally {
              try {
                schedulerCommand.disconnect();
              }
              catch (Exception ex) {
              }
            }
          }
View Full Code Here

              }
        }catch (Exception e){
          getLogger().warn("Error occured querying Job Scheduler at\""+hostPort+"\": "+e);
        } finally{
          try {
            command.disconnect();
          } catch (Exception ex){}
        }
       
      }
    }
View Full Code Here

          System.out.println("Error sending Command" + ee.getMessage());
      
      } finally {
         if( socket != null)
       try {
       socket.disconnect();
       } catch (Exception e1) {
        e1.printStackTrace();
       }

      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.