// ============================================================================
//
// Copyright (c) 2006-2015, Talend Inc.
//
// This source code has been automatically generated by_Talend Open Studio for Data Integration
// / Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package fil_galaxie.galaxie__mrj__alimentation_0_1;
import routines.Mathematical;
import routines.DataOperation;
import routines.Relational;
import routines.TalendDate;
import routines.TalendDataGenerator;
import routines.Numeric;
import routines.TalendString;
import routines.StringHandling;
import routines.system.*;
import routines.system.api.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.math.BigDecimal;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectInputStream;
import java.io.IOException;
import java.util.Comparator;
//the import part of tJava_1
//import java.util.List;
//the import part of tJava_4
//import java.util.List;
//the import part of tJava_3
//import java.util.List;
@SuppressWarnings("unused")
/**
* Job: GALAXIE__MRJ__ALIMENTATION Purpose: Orchestration de l'alimentation
* Description:
* @author test@talend.com
* @version 6.1.1.20151214_1327
* @status
*/
public class GALAXIE__MRJ__ALIMENTATION implements TalendJob {
public final Object obj = new Object();
// for transmiting parameters purpose
private Object valueObject = null;
public Object getValueObject() {
return this.valueObject;
}
public void setValueObject(Object valueObject) {
this.valueObject = valueObject;
}
private final static String defaultCharset = java.nio.charset.Charset
.defaultCharset().name();
private final static String utf8Charset = "UTF-8";
// create and load default properties
private java.util.Properties defaultProps = new java.util.Properties();
// create application properties with default
public class ContextProperties extends java.util.Properties {
private static final long serialVersionUID = 1L;
public ContextProperties(java.util.Properties properties) {
super(properties);
}
public ContextProperties() {
super();
}
public void synchronizeContext() {
if (CTX_EMAIL_Destinataire != null) {
this.setProperty("CTX_EMAIL_Destinataire",
CTX_EMAIL_Destinataire.toString());
}
if (CTX_EMAIL_Destinataire_copie != null) {
this.setProperty("CTX_EMAIL_Destinataire_copie",
CTX_EMAIL_Destinataire_copie.toString());
}
if (CTX_EMAIL_Destinataire_copie_cachee != null) {
this.setProperty("CTX_EMAIL_Destinataire_copie_cachee",
CTX_EMAIL_Destinataire_copie_cachee.toString());
}
if (CTX_EMAIL_Emetteur != null) {
this.setProperty("CTX_EMAIL_Emetteur",
CTX_EMAIL_Emetteur.toString());
}
if (CTX_EMAIL_Envoi_active != null) {
this.setProperty("CTX_EMAIL_Envoi_active",
CTX_EMAIL_Envoi_active.toString());
}
if (CTX_EMAIL_Login != null) {
this.setProperty("CTX_EMAIL_Login", CTX_EMAIL_Login.toString());
}
if (CTX_EMAIL_Password != null) {
this.setProperty("CTX_EMAIL_Password",
CTX_EMAIL_Password.toString());
}
if (CTX_EMAIL_Serveur_port != null) {
this.setProperty("CTX_EMAIL_Serveur_port",
CTX_EMAIL_Serveur_port.toString());
}
if (CTX_EMAIL_Serveur_SMTP != null) {
this.setProperty("CTX_EMAIL_Serveur_SMTP",
CTX_EMAIL_Serveur_SMTP.toString());
}
if (CTX_PGS_COMPTAFIL_Database != null) {
this.setProperty("CTX_PGS_COMPTAFIL_Database",
CTX_PGS_COMPTAFIL_Database.toString());
}
if (CTX_PGS_COMPTAFIL_Login != null) {
this.setProperty("CTX_PGS_COMPTAFIL_Login",
CTX_PGS_COMPTAFIL_Login.toString());
}
if (CTX_PGS_COMPTAFIL_Password != null) {
this.setProperty("CTX_PGS_COMPTAFIL_Password",
CTX_PGS_COMPTAFIL_Password.toString());
}
if (CTX_PGS_COMPTAFIL_Port != null) {
this.setProperty("CTX_PGS_COMPTAFIL_Port",
CTX_PGS_COMPTAFIL_Port.toString());
}
if (CTX_PGS_COMPTAFIL_Schema != null) {
this.setProperty("CTX_PGS_COMPTAFIL_Schema",
CTX_PGS_COMPTAFIL_Schema.toString());
}
if (CTX_PGS_COMPTAFIL_Server != null) {
this.setProperty("CTX_PGS_COMPTAFIL_Server",
CTX_PGS_COMPTAFIL_Server.toString());
}
if (CTX_PGS_COMPTALIS_Database != null) {
this.setProperty("CTX_PGS_COMPTALIS_Database",
CTX_PGS_COMPTALIS_Database.toString());
}
if (CTX_PGS_COMPTALIS_Login != null) {
this.setProperty("CTX_PGS_COMPTALIS_Login",
CTX_PGS_COMPTALIS_Login.toString());
}
if (CTX_PGS_COMPTALIS_Password != null) {
this.setProperty("CTX_PGS_COMPTALIS_Password",
CTX_PGS_COMPTALIS_Password.toString());
}
if (CTX_PGS_COMPTALIS_Port != null) {
this.setProperty("CTX_PGS_COMPTALIS_Port",
CTX_PGS_COMPTALIS_Port.toString());
}
if (CTX_PGS_COMPTALIS_Schema != null) {
this.setProperty("CTX_PGS_COMPTALIS_Schema",
CTX_PGS_COMPTALIS_Schema.toString());
}
if (CTX_PGS_COMPTALIS_Server != null) {
this.setProperty("CTX_PGS_COMPTALIS_Server",
CTX_PGS_COMPTALIS_Server.toString());
}
if (CTX_PGS_CRM_CommitInterval != null) {
this.setProperty("CTX_PGS_CRM_CommitInterval",
CTX_PGS_CRM_CommitInterval.toString());
}
if (CTX_PGS_CRM_Database != null) {
this.setProperty("CTX_PGS_CRM_Database",
CTX_PGS_CRM_Database.toString());
}
if (CTX_PGS_CRM_Login != null) {
this.setProperty("CTX_PGS_CRM_Login",
CTX_PGS_CRM_Login.toString());
}
if (CTX_PGS_CRM_Password != null) {
this.setProperty("CTX_PGS_CRM_Password",
CTX_PGS_CRM_Password.toString());
}
if (CTX_PGS_CRM_Port != null) {
this.setProperty("CTX_PGS_CRM_Port",
CTX_PGS_CRM_Port.toString());
}
if (CTX_PGS_CRM_Schema != null) {
this.setProperty("CTX_PGS_CRM_Schema",
CTX_PGS_CRM_Schema.toString());
}
if (CTX_PGS_CRM_Server != null) {
this.setProperty("CTX_PGS_CRM_Server",
CTX_PGS_CRM_Server.toString());
}
if (CTX_PGS_DSA_CommitInterval != null) {
this.setProperty("CTX_PGS_DSA_CommitInterval",
CTX_PGS_DSA_CommitInterval.toString());
}
if (CTX_PGS_DSA_Database != null) {
this.setProperty("CTX_PGS_DSA_Database",
CTX_PGS_DSA_Database.toString());
}
if (CTX_PGS_DSA_Login != null) {
this.setProperty("CTX_PGS_DSA_Login",
CTX_PGS_DSA_Login.toString());
}
if (CTX_PGS_DSA_Password != null) {
this.setProperty("CTX_PGS_DSA_Password",
CTX_PGS_DSA_Password.toString());
}
if (CTX_PGS_DSA_Port != null) {
this.setProperty("CTX_PGS_DSA_Port",
CTX_PGS_DSA_Port.toString());
}
if (CTX_PGS_DSA_Schema != null) {
this.setProperty("CTX_PGS_DSA_Schema",
CTX_PGS_DSA_Schema.toString());
}
if (CTX_PGS_DSA_Server != null) {
this.setProperty("CTX_PGS_DSA_Server",
CTX_PGS_DSA_Server.toString());
}
if (CTX_PGS_ODS_CommitInterval != null) {
this.setProperty("CTX_PGS_ODS_CommitInterval",
CTX_PGS_ODS_CommitInterval.toString());
}
if (CTX_PGS_ODS_Database != null) {
this.setProperty("CTX_PGS_ODS_Database",
CTX_PGS_ODS_Database.toString());
}
if (CTX_PGS_ODS_Login != null) {
this.setProperty("CTX_PGS_ODS_Login",
CTX_PGS_ODS_Login.toString());
}
if (CTX_PGS_ODS_Password != null) {
this.setProperty("CTX_PGS_ODS_Password",
CTX_PGS_ODS_Password.toString());
}
if (CTX_PGS_ODS_Port != null) {
this.setProperty("CTX_PGS_ODS_Port",
CTX_PGS_ODS_Port.toString());
}
if (CTX_PGS_ODS_Schema != null) {
this.setProperty("CTX_PGS_ODS_Schema",
CTX_PGS_ODS_Schema.toString());
}
if (CTX_PGS_ODS_Server != null) {
this.setProperty("CTX_PGS_ODS_Server",
CTX_PGS_ODS_Server.toString());
}
if (CTX_PRM_ArchiveLogs != null) {
this.setProperty("CTX_PRM_ArchiveLogs",
CTX_PRM_ArchiveLogs.toString());
}
if (CTX_PRM_CEV != null) {
this.setProperty("CTX_PRM_CEV", CTX_PRM_CEV.toString());
}
if (CTX_PRM_CodeRetour != null) {
this.setProperty("CTX_PRM_CodeRetour",
CTX_PRM_CodeRetour.toString());
}
if (CTX_PRM_DateDebut != null) {
String pattern_CTX_PRM_DateDebut = "yyyy-MM-dd HH:mm:ss";
String value_CTX_PRM_DateDebut = "";
String[] parts_CTX_PRM_DateDebut = value_CTX_PRM_DateDebut
.split(";");
if (parts_CTX_PRM_DateDebut.length > 1) {
pattern_CTX_PRM_DateDebut = parts_CTX_PRM_DateDebut[0];
this.setProperty(
"CTX_PRM_DateDebut",
pattern_CTX_PRM_DateDebut
+ ";"
+ FormatterUtils.format_Date(
CTX_PRM_DateDebut,
pattern_CTX_PRM_DateDebut));
} else {
this.setProperty("CTX_PRM_DateDebut", FormatterUtils
.format_Date(CTX_PRM_DateDebut,
pattern_CTX_PRM_DateDebut));
}
}
if (CTX_PRM_DateFin != null) {
String pattern_CTX_PRM_DateFin = "yyyy-MM-dd HH:mm:ss";
String value_CTX_PRM_DateFin = "";
String[] parts_CTX_PRM_DateFin = value_CTX_PRM_DateFin
.split(";");
if (parts_CTX_PRM_DateFin.length > 1) {
pattern_CTX_PRM_DateFin = parts_CTX_PRM_DateFin[0];
this.setProperty(
"CTX_PRM_DateFin",
pattern_CTX_PRM_DateFin
+ ";"
+ FormatterUtils.format_Date(
CTX_PRM_DateFin,
pattern_CTX_PRM_DateFin));
} else {
this.setProperty("CTX_PRM_DateFin", FormatterUtils
.format_Date(CTX_PRM_DateFin,
pattern_CTX_PRM_DateFin));
}
}
if (CTX_PRM_Edeal_ASSO_FIL != null) {
this.setProperty("CTX_PRM_Edeal_ASSO_FIL",
CTX_PRM_Edeal_ASSO_FIL.toString());
}
if (CTX_PRM_Edeal_ASSO_LIS != null) {
this.setProperty("CTX_PRM_Edeal_ASSO_LIS",
CTX_PRM_Edeal_ASSO_LIS.toString());
}
if (CTX_PRM_EdealBascounter != null) {
this.setProperty("CTX_PRM_EdealBascounter",
CTX_PRM_EdealBascounter.toString());
}
if (CTX_PRM_EdealBasid != null) {
this.setProperty("CTX_PRM_EdealBasid",
CTX_PRM_EdealBasid.toString());
}
if (CTX_PRM_EdealCodeActor != null) {
this.setProperty("CTX_PRM_EdealCodeActor",
CTX_PRM_EdealCodeActor.toString());
}
if (CTX_PRM_EdealIdActor != null) {
this.setProperty("CTX_PRM_EdealIdActor",
CTX_PRM_EdealIdActor.toString());
}
if (CTX_PRM_EdealLicence != null) {
this.setProperty("CTX_PRM_EdealLicence",
CTX_PRM_EdealLicence.toString());
}
if (CTX_PRM_Environnement != null) {
this.setProperty("CTX_PRM_Environnement",
CTX_PRM_Environnement.toString());
}
if (CTX_PRM_EQUALITING != null) {
this.setProperty("CTX_PRM_EQUALITING",
CTX_PRM_EQUALITING.toString());
}
if (CTX_PRM_Exec_RES != null) {
this.setProperty("CTX_PRM_Exec_RES",
CTX_PRM_Exec_RES.toString());
}
if (CTX_PRM_FichierConfiguration != null) {
this.setProperty("CTX_PRM_FichierConfiguration",
CTX_PRM_FichierConfiguration.toString());
}
if (CTX_PRM_FichierLog != null) {
this.setProperty("CTX_PRM_FichierLog",
CTX_PRM_FichierLog.toString());
}
if (CTX_PRM_FichierLogs != null) {
this.setProperty("CTX_PRM_FichierLogs",
CTX_PRM_FichierLogs.toString());
}
if (CTX_PRM_FichierMetrique != null) {
this.setProperty("CTX_PRM_FichierMetrique",
CTX_PRM_FichierMetrique.toString());
}
if (CTX_PRM_FichierStatistique != null) {
this.setProperty("CTX_PRM_FichierStatistique",
CTX_PRM_FichierStatistique.toString());
}
if (CTX_PRM_fileEncodage != null) {
this.setProperty("CTX_PRM_fileEncodage",
CTX_PRM_fileEncodage.toString());
}
if (CTX_PRM_fileName != null) {
this.setProperty("CTX_PRM_fileName",
CTX_PRM_fileName.toString());
}
if (CTX_PRM_IdAudit != null) {
this.setProperty("CTX_PRM_IdAudit", CTX_PRM_IdAudit.toString());
}
if (CTX_PRM_IdEtape != null) {
this.setProperty("CTX_PRM_IdEtape", CTX_PRM_IdEtape.toString());
}
if (CTX_PRM_IdEtapeDebut != null) {
this.setProperty("CTX_PRM_IdEtapeDebut",
CTX_PRM_IdEtapeDebut.toString());
}
if (CTX_PRM_IdEtapeFin != null) {
this.setProperty("CTX_PRM_IdEtapeFin",
CTX_PRM_IdEtapeFin.toString());
}
if (CTX_PRM_listOfTableToDisableConstraints != null) {
this.setProperty("CTX_PRM_listOfTableToDisableConstraints",
CTX_PRM_listOfTableToDisableConstraints.toString());
}
if (CTX_PRM_LKPCursorSize != null) {
this.setProperty("CTX_PRM_LKPCursorSize",
CTX_PRM_LKPCursorSize.toString());
}
if (CTX_PRM_NomAppliSource != null) {
this.setProperty("CTX_PRM_NomAppliSource",
CTX_PRM_NomAppliSource.toString());
}
if (CTX_PRM_NomSource != null) {
this.setProperty("CTX_PRM_NomSource",
CTX_PRM_NomSource.toString());
}
if (CTX_PRM_OLAKALA_ERROR != null) {
this.setProperty("CTX_PRM_OLAKALA_ERROR",
CTX_PRM_OLAKALA_ERROR.toString());
}
if (CTX_PRM_OLAKALA_FINISHED != null) {
this.setProperty("CTX_PRM_OLAKALA_FINISHED",
CTX_PRM_OLAKALA_FINISHED.toString());
}
if (CTX_PRM_OLAKALA_PROGRESS != null) {
this.setProperty("CTX_PRM_OLAKALA_PROGRESS",
CTX_PRM_OLAKALA_PROGRESS.toString());
}
if (CTX_PRM_ProfondeurRetentionLogs != null) {
this.setProperty("CTX_PRM_ProfondeurRetentionLogs",
CTX_PRM_ProfondeurRetentionLogs.toString());
}
if (CTX_PRM_ProfondeurRetentionRejets != null) {
this.setProperty("CTX_PRM_ProfondeurRetentionRejets",
CTX_PRM_ProfondeurRetentionRejets.toString());
}
if (CTX_PRM_RepertoireConf != null) {
this.setProperty("CTX_PRM_RepertoireConf",
CTX_PRM_RepertoireConf.toString());
}
if (CTX_PRM_RepertoireData != null) {
this.setProperty("CTX_PRM_RepertoireData",
CTX_PRM_RepertoireData.toString());
}
if (CTX_PRM_RepertoireDataArchive != null) {
this.setProperty("CTX_PRM_RepertoireDataArchive",
CTX_PRM_RepertoireDataArchive.toString());
}
if (CTX_PRM_RepertoireDataIn != null) {
this.setProperty("CTX_PRM_RepertoireDataIn",
CTX_PRM_RepertoireDataIn.toString());
}
if (CTX_PRM_RepertoireDataOut != null) {
this.setProperty("CTX_PRM_RepertoireDataOut",
CTX_PRM_RepertoireDataOut.toString());
}
if (CTX_PRM_RepertoireLog != null) {
this.setProperty("CTX_PRM_RepertoireLog",
CTX_PRM_RepertoireLog.toString());
}
if (CTX_PRM_RepertoireRacine != null) {
this.setProperty("CTX_PRM_RepertoireRacine",
CTX_PRM_RepertoireRacine.toString());
}
if (CTX_PRM_RepertoireSql != null) {
this.setProperty("CTX_PRM_RepertoireSql",
CTX_PRM_RepertoireSql.toString());
}
if (CTX_PRM_RepertoireTmp != null) {
this.setProperty("CTX_PRM_RepertoireTmp",
CTX_PRM_RepertoireTmp.toString());
}
if (CTX_PRM_RESERVIT != null) {
this.setProperty("CTX_PRM_RESERVIT",
CTX_PRM_RESERVIT.toString());
}
if (CTX_PRM_SRCCursorSize != null) {
this.setProperty("CTX_PRM_SRCCursorSize",
CTX_PRM_SRCCursorSize.toString());
}
if (CTX_PRM_TalendRootPackage != null) {
this.setProperty("CTX_PRM_TalendRootPackage",
CTX_PRM_TalendRootPackage.toString());
}
if (CTX_PRM_TalendRootPid != null) {
this.setProperty("CTX_PRM_TalendRootPid",
CTX_PRM_TalendRootPid.toString());
}
if (SharedMap_EXE_RES != null) {
this.setProperty("SharedMap_EXE_RES",
SharedMap_EXE_RES.toString());
}
}
public String CTX_EMAIL_Destinataire;
public String getCTX_EMAIL_Destinataire() {
return this.CTX_EMAIL_Destinataire;
}
public String CTX_EMAIL_Destinataire_copie;
public String getCTX_EMAIL_Destinataire_copie() {
return this.CTX_EMAIL_Destinataire_copie;
}
public String CTX_EMAIL_Destinataire_copie_cachee;
public String getCTX_EMAIL_Destinataire_copie_cachee() {
return this.CTX_EMAIL_Destinataire_copie_cachee;
}
public String CTX_EMAIL_Emetteur;
public String getCTX_EMAIL_Emetteur() {
return this.CTX_EMAIL_Emetteur;
}
public Integer CTX_EMAIL_Envoi_active;
public Integer getCTX_EMAIL_Envoi_active() {
return this.CTX_EMAIL_Envoi_active;
}
public String CTX_EMAIL_Login;
public String getCTX_EMAIL_Login() {
return this.CTX_EMAIL_Login;
}
public java.lang.String CTX_EMAIL_Password;
public java.lang.String getCTX_EMAIL_Password() {
return this.CTX_EMAIL_Password;
}
public String CTX_EMAIL_Serveur_port;
public String getCTX_EMAIL_Serveur_port() {
return this.CTX_EMAIL_Serveur_port;
}
public String CTX_EMAIL_Serveur_SMTP;
public String getCTX_EMAIL_Serveur_SMTP() {
return this.CTX_EMAIL_Serveur_SMTP;
}
public String CTX_PGS_COMPTAFIL_Database;
public String getCTX_PGS_COMPTAFIL_Database() {
return this.CTX_PGS_COMPTAFIL_Database;
}
public String CTX_PGS_COMPTAFIL_Login;
public String getCTX_PGS_COMPTAFIL_Login() {
return this.CTX_PGS_COMPTAFIL_Login;
}
public java.lang.String CTX_PGS_COMPTAFIL_Password;
public java.lang.String getCTX_PGS_COMPTAFIL_Password() {
return this.CTX_PGS_COMPTAFIL_Password;
}
public String CTX_PGS_COMPTAFIL_Port;
public String getCTX_PGS_COMPTAFIL_Port() {
return this.CTX_PGS_COMPTAFIL_Port;
}
public String CTX_PGS_COMPTAFIL_Schema;
public String getCTX_PGS_COMPTAFIL_Schema() {
return this.CTX_PGS_COMPTAFIL_Schema;
}
public String CTX_PGS_COMPTAFIL_Server;
public String getCTX_PGS_COMPTAFIL_Server() {
return this.CTX_PGS_COMPTAFIL_Server;
}
public String CTX_PGS_COMPTALIS_Database;
public String getCTX_PGS_COMPTALIS_Database() {
return this.CTX_PGS_COMPTALIS_Database;
}
public String CTX_PGS_COMPTALIS_Login;
public String getCTX_PGS_COMPTALIS_Login() {
return this.CTX_PGS_COMPTALIS_Login;
}
public java.lang.String CTX_PGS_COMPTALIS_Password;
public java.lang.String getCTX_PGS_COMPTALIS_Password() {
return this.CTX_PGS_COMPTALIS_Password;
}
public String CTX_PGS_COMPTALIS_Port;
public String getCTX_PGS_COMPTALIS_Port() {
return this.CTX_PGS_COMPTALIS_Port;
}
public String CTX_PGS_COMPTALIS_Schema;
public String getCTX_PGS_COMPTALIS_Schema() {
return this.CTX_PGS_COMPTALIS_Schema;
}
public String CTX_PGS_COMPTALIS_Server;
public String getCTX_PGS_COMPTALIS_Server() {
return this.CTX_PGS_COMPTALIS_Server;
}
public Integer CTX_PGS_CRM_CommitInterval;
public Integer getCTX_PGS_CRM_CommitInterval() {
return this.CTX_PGS_CRM_CommitInterval;
}
public String CTX_PGS_CRM_Database;
public String getCTX_PGS_CRM_Database() {
return this.CTX_PGS_CRM_Database;
}
public String CTX_PGS_CRM_Login;
public String getCTX_PGS_CRM_Login() {
return this.CTX_PGS_CRM_Login;
}
public java.lang.String CTX_PGS_CRM_Password;
public java.lang.String getCTX_PGS_CRM_Password() {
return this.CTX_PGS_CRM_Password;
}
public String CTX_PGS_CRM_Port;
public String getCTX_PGS_CRM_Port() {
return this.CTX_PGS_CRM_Port;
}
public String CTX_PGS_CRM_Schema;
public String getCTX_PGS_CRM_Schema() {
return this.CTX_PGS_CRM_Schema;
}
public String CTX_PGS_CRM_Server;
public String getCTX_PGS_CRM_Server() {
return this.CTX_PGS_CRM_Server;
}
public Integer CTX_PGS_DSA_CommitInterval;
public Integer getCTX_PGS_DSA_CommitInterval() {
return this.CTX_PGS_DSA_CommitInterval;
}
public String CTX_PGS_DSA_Database;
public String getCTX_PGS_DSA_Database() {
return this.CTX_PGS_DSA_Database;
}
public String CTX_PGS_DSA_Login;
public String getCTX_PGS_DSA_Login() {
return this.CTX_PGS_DSA_Login;
}
public java.lang.String CTX_PGS_DSA_Password;
public java.lang.String getCTX_PGS_DSA_Password() {
return this.CTX_PGS_DSA_Password;
}
public String CTX_PGS_DSA_Port;
public String getCTX_PGS_DSA_Port() {
return this.CTX_PGS_DSA_Port;
}
public String CTX_PGS_DSA_Schema;
public String getCTX_PGS_DSA_Schema() {
return this.CTX_PGS_DSA_Schema;
}
public String CTX_PGS_DSA_Server;
public String getCTX_PGS_DSA_Server() {
return this.CTX_PGS_DSA_Server;
}
public Integer CTX_PGS_ODS_CommitInterval;
public Integer getCTX_PGS_ODS_CommitInterval() {
return this.CTX_PGS_ODS_CommitInterval;
}
public String CTX_PGS_ODS_Database;
public String getCTX_PGS_ODS_Database() {
return this.CTX_PGS_ODS_Database;
}
public String CTX_PGS_ODS_Login;
public String getCTX_PGS_ODS_Login() {
return this.CTX_PGS_ODS_Login;
}
public java.lang.String CTX_PGS_ODS_Password;
public java.lang.String getCTX_PGS_ODS_Password() {
return this.CTX_PGS_ODS_Password;
}
public String CTX_PGS_ODS_Port;
public String getCTX_PGS_ODS_Port() {
return this.CTX_PGS_ODS_Port;
}
public String CTX_PGS_ODS_Schema;
public String getCTX_PGS_ODS_Schema() {
return this.CTX_PGS_ODS_Schema;
}
public String CTX_PGS_ODS_Server;
public String getCTX_PGS_ODS_Server() {
return this.CTX_PGS_ODS_Server;
}
public String CTX_PRM_ArchiveLogs;
public String getCTX_PRM_ArchiveLogs() {
return this.CTX_PRM_ArchiveLogs;
}
public String CTX_PRM_CEV;
public String getCTX_PRM_CEV() {
return this.CTX_PRM_CEV;
}
public Integer CTX_PRM_CodeRetour;
public Integer getCTX_PRM_CodeRetour() {
return this.CTX_PRM_CodeRetour;
}
public java.util.Date CTX_PRM_DateDebut;
public java.util.Date getCTX_PRM_DateDebut() {
return this.CTX_PRM_DateDebut;
}
public java.util.Date CTX_PRM_DateFin;
public java.util.Date getCTX_PRM_DateFin() {
return this.CTX_PRM_DateFin;
}
public String CTX_PRM_Edeal_ASSO_FIL;
public String getCTX_PRM_Edeal_ASSO_FIL() {
return this.CTX_PRM_Edeal_ASSO_FIL;
}
public String CTX_PRM_Edeal_ASSO_LIS;
public String getCTX_PRM_Edeal_ASSO_LIS() {
return this.CTX_PRM_Edeal_ASSO_LIS;
}
public String CTX_PRM_EdealBascounter;
public String getCTX_PRM_EdealBascounter() {
return this.CTX_PRM_EdealBascounter;
}
public String CTX_PRM_EdealBasid;
public String getCTX_PRM_EdealBasid() {
return this.CTX_PRM_EdealBasid;
}
public String CTX_PRM_EdealCodeActor;
public String getCTX_PRM_EdealCodeActor() {
return this.CTX_PRM_EdealCodeActor;
}
public String CTX_PRM_EdealIdActor;
public String getCTX_PRM_EdealIdActor() {
return this.CTX_PRM_EdealIdActor;
}
public String CTX_PRM_EdealLicence;
public String getCTX_PRM_EdealLicence() {
return this.CTX_PRM_EdealLicence;
}
public String CTX_PRM_Environnement;
public String getCTX_PRM_Environnement() {
return this.CTX_PRM_Environnement;
}
public String CTX_PRM_EQUALITING;
public String getCTX_PRM_EQUALITING() {
return this.CTX_PRM_EQUALITING;
}
public Object CTX_PRM_Exec_RES;
public Object getCTX_PRM_Exec_RES() {
return this.CTX_PRM_Exec_RES;
}
public String CTX_PRM_FichierConfiguration;
public String getCTX_PRM_FichierConfiguration() {
return this.CTX_PRM_FichierConfiguration;
}
public String CTX_PRM_FichierLog;
public String getCTX_PRM_FichierLog() {
return this.CTX_PRM_FichierLog;
}
public String CTX_PRM_FichierLogs;
public String getCTX_PRM_FichierLogs() {
return this.CTX_PRM_FichierLogs;
}
public String CTX_PRM_FichierMetrique;
public String getCTX_PRM_FichierMetrique() {
return this.CTX_PRM_FichierMetrique;
}
public String CTX_PRM_FichierStatistique;
public String getCTX_PRM_FichierStatistique() {
return this.CTX_PRM_FichierStatistique;
}
public String CTX_PRM_fileEncodage;
public String getCTX_PRM_fileEncodage() {
return this.CTX_PRM_fileEncodage;
}
public String CTX_PRM_fileName;
public String getCTX_PRM_fileName() {
return this.CTX_PRM_fileName;
}
public Long CTX_PRM_IdAudit;
public Long getCTX_PRM_IdAudit() {
return this.CTX_PRM_IdAudit;
}
public Integer CTX_PRM_IdEtape;
public Integer getCTX_PRM_IdEtape() {
return this.CTX_PRM_IdEtape;
}
public Integer CTX_PRM_IdEtapeDebut;
public Integer getCTX_PRM_IdEtapeDebut() {
return this.CTX_PRM_IdEtapeDebut;
}
public Integer CTX_PRM_IdEtapeFin;
public Integer getCTX_PRM_IdEtapeFin() {
return this.CTX_PRM_IdEtapeFin;
}
public String CTX_PRM_listOfTableToDisableConstraints;
public String getCTX_PRM_listOfTableToDisableConstraints() {
return this.CTX_PRM_listOfTableToDisableConstraints;
}
public Integer CTX_PRM_LKPCursorSize;
public Integer getCTX_PRM_LKPCursorSize() {
return this.CTX_PRM_LKPCursorSize;
}
public String CTX_PRM_NomAppliSource;
public String getCTX_PRM_NomAppliSource() {
return this.CTX_PRM_NomAppliSource;
}
public String CTX_PRM_NomSource;
public String getCTX_PRM_NomSource() {
return this.CTX_PRM_NomSource;
}
public String CTX_PRM_OLAKALA_ERROR;
public String getCTX_PRM_OLAKALA_ERROR() {
return this.CTX_PRM_OLAKALA_ERROR;
}
public String CTX_PRM_OLAKALA_FINISHED;
public String getCTX_PRM_OLAKALA_FINISHED() {
return this.CTX_PRM_OLAKALA_FINISHED;
}
public String CTX_PRM_OLAKALA_PROGRESS;
public String getCTX_PRM_OLAKALA_PROGRESS() {
return this.CTX_PRM_OLAKALA_PROGRESS;
}
public Integer CTX_PRM_ProfondeurRetentionLogs;
public Integer getCTX_PRM_ProfondeurRetentionLogs() {
return this.CTX_PRM_ProfondeurRetentionLogs;
}
public Integer CTX_PRM_ProfondeurRetentionRejets;
public Integer getCTX_PRM_ProfondeurRetentionRejets() {
return this.CTX_PRM_ProfondeurRetentionRejets;
}
public String CTX_PRM_RepertoireConf;
public String getCTX_PRM_RepertoireConf() {
return this.CTX_PRM_RepertoireConf;
}
public String CTX_PRM_RepertoireData;
public String getCTX_PRM_RepertoireData() {
return this.CTX_PRM_RepertoireData;
}
public String CTX_PRM_RepertoireDataArchive;
public String getCTX_PRM_RepertoireDataArchive() {
return this.CTX_PRM_RepertoireDataArchive;
}
public String CTX_PRM_RepertoireDataIn;
public String getCTX_PRM_RepertoireDataIn() {
return this.CTX_PRM_RepertoireDataIn;
}
public String CTX_PRM_RepertoireDataOut;
public String getCTX_PRM_RepertoireDataOut() {
return this.CTX_PRM_RepertoireDataOut;
}
public String CTX_PRM_RepertoireLog;
public String getCTX_PRM_RepertoireLog() {
return this.CTX_PRM_RepertoireLog;
}
public String CTX_PRM_RepertoireRacine;
public String getCTX_PRM_RepertoireRacine() {
return this.CTX_PRM_RepertoireRacine;
}
public String CTX_PRM_RepertoireSql;
public String getCTX_PRM_RepertoireSql() {
return this.CTX_PRM_RepertoireSql;
}
public String CTX_PRM_RepertoireTmp;
public String getCTX_PRM_RepertoireTmp() {
return this.CTX_PRM_RepertoireTmp;
}
public String CTX_PRM_RESERVIT;
public String getCTX_PRM_RESERVIT() {
return this.CTX_PRM_RESERVIT;
}
public Integer CTX_PRM_SRCCursorSize;
public Integer getCTX_PRM_SRCCursorSize() {
return this.CTX_PRM_SRCCursorSize;
}
public String CTX_PRM_TalendRootPackage;
public String getCTX_PRM_TalendRootPackage() {
return this.CTX_PRM_TalendRootPackage;
}
public String CTX_PRM_TalendRootPid;
public String getCTX_PRM_TalendRootPid() {
return this.CTX_PRM_TalendRootPid;
}
public Object SharedMap_EXE_RES;
public Object getSharedMap_EXE_RES() {
return this.SharedMap_EXE_RES;
}
}
private ContextProperties context = new ContextProperties();
public ContextProperties getContext() {
return this.context;
}
private final String jobVersion = "0.1";
private final String jobName = "GALAXIE__MRJ__ALIMENTATION";
private final String projectName = "FIL_GALAXIE";
public Integer errorCode = null;
private String currentComponent = "";
private final java.util.Map globalMap = new java.util.HashMap();
private final static java.util.Map junitGlobalMap = new java.util.HashMap();
private final java.util.Map start_Hash = new java.util.HashMap();
private final java.util.Map end_Hash = new java.util.HashMap();
private final java.util.Map ok_Hash = new java.util.HashMap();
public final java.util.List globalBuffer = new java.util.ArrayList();
// OSGi DataSource
private final static String KEY_DB_DATASOURCES = "KEY_DB_DATASOURCES";
public void setDataSources(
java.util.Map dataSources) {
java.util.Map talendDataSources = new java.util.HashMap();
for (java.util.Map.Entry dataSourceEntry : dataSources
.entrySet()) {
talendDataSources.put(
dataSourceEntry.getKey(),
new routines.system.TalendDataSource(dataSourceEntry
.getValue()));
}
globalMap.put(KEY_DB_DATASOURCES, talendDataSources);
}
LogCatcherUtils talendLogs_LOGS = new LogCatcherUtils();
StatCatcherUtils talendStats_STATS = new StatCatcherUtils(
"_s_kt0Mv3EeSfIPwgq6wtfA", "0.1");
MetterCatcherUtils talendMeter_METTER = new MetterCatcherUtils(
"_s_kt0Mv3EeSfIPwgq6wtfA", "0.1");
private final java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
private final java.io.PrintStream errorMessagePS = new java.io.PrintStream(
new java.io.BufferedOutputStream(baos));
public String getExceptionStackTrace() {
if ("failure".equals(this.getStatus())) {
errorMessagePS.flush();
return baos.toString();
}
return null;
}
private Exception exception;
public Exception getException() {
if ("failure".equals(this.getStatus())) {
return this.exception;
}
return null;
}
private class TalendException extends Exception {
private static final long serialVersionUID = 1L;
private java.util.Map globalMap = null;
private Exception e = null;
private String currentComponent = null;
private String virtualComponentName = null;
public void setVirtualComponentName(String virtualComponentName) {
this.virtualComponentName = virtualComponentName;
}
private TalendException(Exception e, String errorComponent,
final java.util.Map globalMap) {
this.currentComponent = errorComponent;
this.globalMap = globalMap;
this.e = e;
}
public Exception getException() {
return this.e;
}
public String getCurrentComponent() {
return this.currentComponent;
}
public String getExceptionCauseMessage(Exception e) {
Throwable cause = e;
String message = null;
int i = 10;
while (null != cause && 0 < i--) {
message = cause.getMessage();
if (null == message) {
cause = cause.getCause();
} else {
break;
}
}
if (null == message) {
message = e.getClass().getName();
}
return message;
}
@Override
public void printStackTrace() {
if (!(e instanceof TalendException || e instanceof TDieException)) {
if (virtualComponentName != null
&& currentComponent.indexOf(virtualComponentName + "_") == 0) {
globalMap.put(virtualComponentName + "_ERROR_MESSAGE",
getExceptionCauseMessage(e));
}
globalMap.put(currentComponent + "_ERROR_MESSAGE",
getExceptionCauseMessage(e));
System.err
.println("Exception in component " + currentComponent);
}
if (!(e instanceof TDieException)) {
if (e instanceof TalendException) {
e.printStackTrace();
} else {
e.printStackTrace();
e.printStackTrace(errorMessagePS);
GALAXIE__MRJ__ALIMENTATION.this.exception = e;
}
}
if (!(e instanceof TalendException)) {
try {
for (java.lang.reflect.Method m : this.getClass()
.getEnclosingClass().getMethods()) {
if (m.getName().compareTo(currentComponent + "_error") == 0) {
m.invoke(GALAXIE__MRJ__ALIMENTATION.this,
new Object[] { e, currentComponent,
globalMap });
break;
}
}
if (!(e instanceof TDieException)) {
talendLogs_LOGS.addMessage("Java Exception",
currentComponent, 6, e.getClass().getName()
+ ":" + e.getMessage(), 1);
talendLogs_LOGSProcess(globalMap);
}
} catch (TalendException e) {
// do nothing
} catch (Exception e) {
this.e.printStackTrace();
}
}
}
}
public void preStaLogCon_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
preStaLogCon_onSubJobError(exception, errorComponent, globalMap);
}
public void tPostjob_1_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tPostjob_1_onSubJobError(exception, errorComponent, globalMap);
}
public void tRunJob_5_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tRunJob_5_onSubJobError(exception, errorComponent, globalMap);
}
public void tRunJob_1_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tRunJob_1_onSubJobError(exception, errorComponent, globalMap);
}
public void tContextLoad_1_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tRunJob_1_onSubJobError(exception, errorComponent, globalMap);
}
public void tRunJob_2_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tRunJob_2_onSubJobError(exception, errorComponent, globalMap);
}
public void tJava_1_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tJava_1_onSubJobError(exception, errorComponent, globalMap);
}
public void tRunJob_3_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tRunJob_3_onSubJobError(exception, errorComponent, globalMap);
}
public void tRunJob_4_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tRunJob_4_onSubJobError(exception, errorComponent, globalMap);
}
public void tJava_4_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tJava_4_onSubJobError(exception, errorComponent, globalMap);
}
public void tJava_3_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
tJava_3_onSubJobError(exception, errorComponent, globalMap);
}
public void connectionStatsLogs_Commit_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
connectionStatsLogs_Commit_onSubJobError(exception, errorComponent,
globalMap);
}
public void connectionStatsLogs_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
connectionStatsLogs_onSubJobError(exception, errorComponent, globalMap);
}
public void talendLogs_LOGS_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
talendLogs_FILE_error(exception, errorComponent, globalMap);
}
public void talendLogs_FILE_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
talendLogs_DB_error(exception, errorComponent, globalMap);
}
public void talendLogs_DB_error(Exception exception, String errorComponent,
final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
talendLogs_LOGS_onSubJobError(exception, errorComponent, globalMap);
}
public void talendStats_STATS_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
talendStats_FILE_error(exception, errorComponent, globalMap);
}
public void talendStats_FILE_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
talendStats_DB_error(exception, errorComponent, globalMap);
}
public void talendStats_DB_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
talendStats_STATS_onSubJobError(exception, errorComponent, globalMap);
}
public void talendMeter_METTER_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
talendMeter_FILE_error(exception, errorComponent, globalMap);
}
public void talendMeter_FILE_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
talendMeter_DB_error(exception, errorComponent, globalMap);
}
public void talendMeter_DB_error(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
end_Hash.put(errorComponent, System.currentTimeMillis());
status = "failure";
talendMeter_METTER_onSubJobError(exception, errorComponent, globalMap);
}
public void preStaLogCon_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tPostjob_1_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tRunJob_5_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tRunJob_1_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tRunJob_2_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tJava_1_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tRunJob_3_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tRunJob_4_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tJava_4_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void tJava_3_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void connectionStatsLogs_Commit_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void connectionStatsLogs_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void talendLogs_LOGS_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void talendStats_STATS_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void talendMeter_METTER_onSubJobError(Exception exception,
String errorComponent, final java.util.Map globalMap)
throws TalendException {
resumeUtil.addLog("SYSTEM_LOG", "NODE:" + errorComponent, "", Thread
.currentThread().getId() + "", "FATAL", "",
exception.getMessage(),
ResumeUtil.getExceptionStackTrace(exception), "");
}
public void preStaLogConProcess(
final java.util.Map globalMap)
throws TalendException {
globalMap.put("preStaLogCon_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [preStaLogCon begin ] start
*/
ok_Hash.put("preStaLogCon", false);
start_Hash.put("preStaLogCon", System.currentTimeMillis());
currentComponent = "preStaLogCon";
int tos_count_preStaLogCon = 0;
/**
* [preStaLogCon begin ] stop
*/
/**
* [preStaLogCon main ] start
*/
currentComponent = "preStaLogCon";
tos_count_preStaLogCon++;
/**
* [preStaLogCon main ] stop
*/
/**
* [preStaLogCon end ] start
*/
currentComponent = "preStaLogCon";
ok_Hash.put("preStaLogCon", true);
end_Hash.put("preStaLogCon", System.currentTimeMillis());
connectionStatsLogsProcess(globalMap);
/**
* [preStaLogCon end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [preStaLogCon finally ] start
*/
currentComponent = "preStaLogCon";
/**
* [preStaLogCon finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("preStaLogCon_SUBPROCESS_STATE", 1);
}
public void tPostjob_1Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tPostjob_1_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [tPostjob_1 begin ] start
*/
ok_Hash.put("tPostjob_1", false);
start_Hash.put("tPostjob_1", System.currentTimeMillis());
currentComponent = "tPostjob_1";
int tos_count_tPostjob_1 = 0;
/**
* [tPostjob_1 begin ] stop
*/
/**
* [tPostjob_1 main ] start
*/
currentComponent = "tPostjob_1";
tos_count_tPostjob_1++;
/**
* [tPostjob_1 main ] stop
*/
/**
* [tPostjob_1 end ] start
*/
currentComponent = "tPostjob_1";
ok_Hash.put("tPostjob_1", true);
end_Hash.put("tPostjob_1", System.currentTimeMillis());
tRunJob_5Process(globalMap);
/**
* [tPostjob_1 end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tPostjob_1 finally ] start
*/
currentComponent = "tPostjob_1";
/**
* [tPostjob_1 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tPostjob_1_SUBPROCESS_STATE", 1);
}
public void tRunJob_5Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tRunJob_5_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [tRunJob_5 begin ] start
*/
ok_Hash.put("tRunJob_5", false);
start_Hash.put("tRunJob_5", System.currentTimeMillis());
currentComponent = "tRunJob_5";
int tos_count_tRunJob_5 = 0;
/**
* [tRunJob_5 begin ] stop
*/
/**
* [tRunJob_5 main ] start
*/
currentComponent = "tRunJob_5";
java.util.List paraList_tRunJob_5 = new java.util.ArrayList();
paraList_tRunJob_5.add("--father_pid=" + pid);
paraList_tRunJob_5.add("--root_pid=" + rootPid);
paraList_tRunJob_5.add("--father_node=tRunJob_5");
paraList_tRunJob_5.add("--context=RE7");
// for feature:10589
paraList_tRunJob_5.add("--stat_port=" + portStats);
if (resuming_logs_dir_path != null) {
paraList_tRunJob_5.add("--resuming_logs_dir_path="
+ resuming_logs_dir_path);
}
String childResumePath_tRunJob_5 = ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path);
String tRunJobName_tRunJob_5 = ResumeUtil
.getRighttRunJob(resuming_checkpoint_path);
if ("tRunJob_5".equals(tRunJobName_tRunJob_5)
&& childResumePath_tRunJob_5 != null) {
paraList_tRunJob_5
.add("--resuming_checkpoint_path="
+ ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path));
}
paraList_tRunJob_5.add("--parent_part_launcher=JOB:" + jobName
+ "/NODE:tRunJob_5");
java.util.Map parentContextMap_tRunJob_5 = new java.util.HashMap();
context.synchronizeContext();
java.util.Enumeration> propertyNames_tRunJob_5 = context
.propertyNames();
while (propertyNames_tRunJob_5.hasMoreElements()) {
String key_tRunJob_5 = (String) propertyNames_tRunJob_5
.nextElement();
Object value_tRunJob_5 = (Object) context
.get(key_tRunJob_5);
paraList_tRunJob_5.add("--context_param " + key_tRunJob_5
+ "=" + value_tRunJob_5);
}
parentContextMap_tRunJob_5.put("CTX_EMAIL_Destinataire",
context.CTX_EMAIL_Destinataire);
parentContextMap_tRunJob_5.put("CTX_EMAIL_Destinataire_copie",
context.CTX_EMAIL_Destinataire_copie);
parentContextMap_tRunJob_5.put(
"CTX_EMAIL_Destinataire_copie_cachee",
context.CTX_EMAIL_Destinataire_copie_cachee);
parentContextMap_tRunJob_5.put("CTX_EMAIL_Emetteur",
context.CTX_EMAIL_Emetteur);
parentContextMap_tRunJob_5.put("CTX_EMAIL_Envoi_active",
context.CTX_EMAIL_Envoi_active);
parentContextMap_tRunJob_5.put("CTX_EMAIL_Login",
context.CTX_EMAIL_Login);
parentContextMap_tRunJob_5.put("CTX_EMAIL_Password",
context.CTX_EMAIL_Password);
parentContextMap_tRunJob_5.put("CTX_EMAIL_Serveur_port",
context.CTX_EMAIL_Serveur_port);
parentContextMap_tRunJob_5.put("CTX_EMAIL_Serveur_SMTP",
context.CTX_EMAIL_Serveur_SMTP);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTAFIL_Database",
context.CTX_PGS_COMPTAFIL_Database);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTAFIL_Login",
context.CTX_PGS_COMPTAFIL_Login);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTAFIL_Password",
context.CTX_PGS_COMPTAFIL_Password);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTAFIL_Port",
context.CTX_PGS_COMPTAFIL_Port);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTAFIL_Schema",
context.CTX_PGS_COMPTAFIL_Schema);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTAFIL_Server",
context.CTX_PGS_COMPTAFIL_Server);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTALIS_Database",
context.CTX_PGS_COMPTALIS_Database);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTALIS_Login",
context.CTX_PGS_COMPTALIS_Login);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTALIS_Password",
context.CTX_PGS_COMPTALIS_Password);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTALIS_Port",
context.CTX_PGS_COMPTALIS_Port);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTALIS_Schema",
context.CTX_PGS_COMPTALIS_Schema);
parentContextMap_tRunJob_5.put("CTX_PGS_COMPTALIS_Server",
context.CTX_PGS_COMPTALIS_Server);
parentContextMap_tRunJob_5.put("CTX_PGS_CRM_CommitInterval",
context.CTX_PGS_CRM_CommitInterval);
parentContextMap_tRunJob_5.put("CTX_PGS_CRM_Database",
context.CTX_PGS_CRM_Database);
parentContextMap_tRunJob_5.put("CTX_PGS_CRM_Login",
context.CTX_PGS_CRM_Login);
parentContextMap_tRunJob_5.put("CTX_PGS_CRM_Password",
context.CTX_PGS_CRM_Password);
parentContextMap_tRunJob_5.put("CTX_PGS_CRM_Port",
context.CTX_PGS_CRM_Port);
parentContextMap_tRunJob_5.put("CTX_PGS_CRM_Schema",
context.CTX_PGS_CRM_Schema);
parentContextMap_tRunJob_5.put("CTX_PGS_CRM_Server",
context.CTX_PGS_CRM_Server);
parentContextMap_tRunJob_5.put("CTX_PGS_DSA_CommitInterval",
context.CTX_PGS_DSA_CommitInterval);
parentContextMap_tRunJob_5.put("CTX_PGS_DSA_Database",
context.CTX_PGS_DSA_Database);
parentContextMap_tRunJob_5.put("CTX_PGS_DSA_Login",
context.CTX_PGS_DSA_Login);
parentContextMap_tRunJob_5.put("CTX_PGS_DSA_Password",
context.CTX_PGS_DSA_Password);
parentContextMap_tRunJob_5.put("CTX_PGS_DSA_Port",
context.CTX_PGS_DSA_Port);
parentContextMap_tRunJob_5.put("CTX_PGS_DSA_Schema",
context.CTX_PGS_DSA_Schema);
parentContextMap_tRunJob_5.put("CTX_PGS_DSA_Server",
context.CTX_PGS_DSA_Server);
parentContextMap_tRunJob_5.put("CTX_PGS_ODS_CommitInterval",
context.CTX_PGS_ODS_CommitInterval);
parentContextMap_tRunJob_5.put("CTX_PGS_ODS_Database",
context.CTX_PGS_ODS_Database);
parentContextMap_tRunJob_5.put("CTX_PGS_ODS_Login",
context.CTX_PGS_ODS_Login);
parentContextMap_tRunJob_5.put("CTX_PGS_ODS_Password",
context.CTX_PGS_ODS_Password);
parentContextMap_tRunJob_5.put("CTX_PGS_ODS_Port",
context.CTX_PGS_ODS_Port);
parentContextMap_tRunJob_5.put("CTX_PGS_ODS_Schema",
context.CTX_PGS_ODS_Schema);
parentContextMap_tRunJob_5.put("CTX_PGS_ODS_Server",
context.CTX_PGS_ODS_Server);
parentContextMap_tRunJob_5.put("CTX_PRM_ArchiveLogs",
context.CTX_PRM_ArchiveLogs);
parentContextMap_tRunJob_5.put("CTX_PRM_CEV",
context.CTX_PRM_CEV);
parentContextMap_tRunJob_5.put("CTX_PRM_CodeRetour",
context.CTX_PRM_CodeRetour);
parentContextMap_tRunJob_5.put("CTX_PRM_DateDebut",
context.CTX_PRM_DateDebut);
parentContextMap_tRunJob_5.put("CTX_PRM_DateFin",
context.CTX_PRM_DateFin);
parentContextMap_tRunJob_5.put("CTX_PRM_Edeal_ASSO_FIL",
context.CTX_PRM_Edeal_ASSO_FIL);
parentContextMap_tRunJob_5.put("CTX_PRM_Edeal_ASSO_LIS",
context.CTX_PRM_Edeal_ASSO_LIS);
parentContextMap_tRunJob_5.put("CTX_PRM_EdealBascounter",
context.CTX_PRM_EdealBascounter);
parentContextMap_tRunJob_5.put("CTX_PRM_EdealBasid",
context.CTX_PRM_EdealBasid);
parentContextMap_tRunJob_5.put("CTX_PRM_EdealCodeActor",
context.CTX_PRM_EdealCodeActor);
parentContextMap_tRunJob_5.put("CTX_PRM_EdealIdActor",
context.CTX_PRM_EdealIdActor);
parentContextMap_tRunJob_5.put("CTX_PRM_EdealLicence",
context.CTX_PRM_EdealLicence);
parentContextMap_tRunJob_5.put("CTX_PRM_Environnement",
context.CTX_PRM_Environnement);
parentContextMap_tRunJob_5.put("CTX_PRM_EQUALITING",
context.CTX_PRM_EQUALITING);
parentContextMap_tRunJob_5.put("CTX_PRM_Exec_RES",
context.CTX_PRM_Exec_RES);
parentContextMap_tRunJob_5.put("CTX_PRM_FichierConfiguration",
context.CTX_PRM_FichierConfiguration);
parentContextMap_tRunJob_5.put("CTX_PRM_FichierLog",
context.CTX_PRM_FichierLog);
parentContextMap_tRunJob_5.put("CTX_PRM_FichierLogs",
context.CTX_PRM_FichierLogs);
parentContextMap_tRunJob_5.put("CTX_PRM_FichierMetrique",
context.CTX_PRM_FichierMetrique);
parentContextMap_tRunJob_5.put("CTX_PRM_FichierStatistique",
context.CTX_PRM_FichierStatistique);
parentContextMap_tRunJob_5.put("CTX_PRM_fileEncodage",
context.CTX_PRM_fileEncodage);
parentContextMap_tRunJob_5.put("CTX_PRM_fileName",
context.CTX_PRM_fileName);
parentContextMap_tRunJob_5.put("CTX_PRM_IdAudit",
context.CTX_PRM_IdAudit);
parentContextMap_tRunJob_5.put("CTX_PRM_IdEtape",
context.CTX_PRM_IdEtape);
parentContextMap_tRunJob_5.put("CTX_PRM_IdEtapeDebut",
context.CTX_PRM_IdEtapeDebut);
parentContextMap_tRunJob_5.put("CTX_PRM_IdEtapeFin",
context.CTX_PRM_IdEtapeFin);
parentContextMap_tRunJob_5.put(
"CTX_PRM_listOfTableToDisableConstraints",
context.CTX_PRM_listOfTableToDisableConstraints);
parentContextMap_tRunJob_5.put("CTX_PRM_LKPCursorSize",
context.CTX_PRM_LKPCursorSize);
parentContextMap_tRunJob_5.put("CTX_PRM_NomAppliSource",
context.CTX_PRM_NomAppliSource);
parentContextMap_tRunJob_5.put("CTX_PRM_NomSource",
context.CTX_PRM_NomSource);
parentContextMap_tRunJob_5.put("CTX_PRM_OLAKALA_ERROR",
context.CTX_PRM_OLAKALA_ERROR);
parentContextMap_tRunJob_5.put("CTX_PRM_OLAKALA_FINISHED",
context.CTX_PRM_OLAKALA_FINISHED);
parentContextMap_tRunJob_5.put("CTX_PRM_OLAKALA_PROGRESS",
context.CTX_PRM_OLAKALA_PROGRESS);
parentContextMap_tRunJob_5.put(
"CTX_PRM_ProfondeurRetentionLogs",
context.CTX_PRM_ProfondeurRetentionLogs);
parentContextMap_tRunJob_5.put(
"CTX_PRM_ProfondeurRetentionRejets",
context.CTX_PRM_ProfondeurRetentionRejets);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireConf",
context.CTX_PRM_RepertoireConf);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireData",
context.CTX_PRM_RepertoireData);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireDataArchive",
context.CTX_PRM_RepertoireDataArchive);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireDataIn",
context.CTX_PRM_RepertoireDataIn);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireDataOut",
context.CTX_PRM_RepertoireDataOut);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireLog",
context.CTX_PRM_RepertoireLog);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireRacine",
context.CTX_PRM_RepertoireRacine);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireSql",
context.CTX_PRM_RepertoireSql);
parentContextMap_tRunJob_5.put("CTX_PRM_RepertoireTmp",
context.CTX_PRM_RepertoireTmp);
parentContextMap_tRunJob_5.put("CTX_PRM_RESERVIT",
context.CTX_PRM_RESERVIT);
parentContextMap_tRunJob_5.put("CTX_PRM_SRCCursorSize",
context.CTX_PRM_SRCCursorSize);
parentContextMap_tRunJob_5.put("CTX_PRM_TalendRootPackage",
context.CTX_PRM_TalendRootPackage);
parentContextMap_tRunJob_5.put("CTX_PRM_TalendRootPid",
context.CTX_PRM_TalendRootPid);
parentContextMap_tRunJob_5.put("SharedMap_EXE_RES",
context.SharedMap_EXE_RES);
Object obj_tRunJob_5 = null;
fil_galaxie.util__job__post_traitement_0_1.UTIL__JOB__POST_TRAITEMENT childJob_tRunJob_5 = new fil_galaxie.util__job__post_traitement_0_1.UTIL__JOB__POST_TRAITEMENT();
// pass DataSources
java.util.Map talendDataSources_tRunJob_5 = (java.util.Map) globalMap
.get(KEY_DB_DATASOURCES);
if (null != talendDataSources_tRunJob_5) {
java.util.Map dataSources_tRunJob_5 = new java.util.HashMap();
for (java.util.Map.Entry talendDataSourceEntry_tRunJob_5 : talendDataSources_tRunJob_5
.entrySet()) {
dataSources_tRunJob_5.put(
talendDataSourceEntry_tRunJob_5.getKey(),
talendDataSourceEntry_tRunJob_5.getValue()
.getRawDataSource());
}
childJob_tRunJob_5.setDataSources(dataSources_tRunJob_5);
}
childJob_tRunJob_5.parentContextMap = parentContextMap_tRunJob_5;
String[][] childReturn_tRunJob_5 = childJob_tRunJob_5
.runJob((String[]) paraList_tRunJob_5
.toArray(new String[paraList_tRunJob_5.size()]));
errorCode = childJob_tRunJob_5.getErrorCode();
if (childJob_tRunJob_5.getErrorCode() == null) {
globalMap.put(
"tRunJob_5_CHILD_RETURN_CODE",
childJob_tRunJob_5.getStatus() != null
&& ("failure").equals(childJob_tRunJob_5
.getStatus()) ? 1 : 0);
} else {
globalMap.put("tRunJob_5_CHILD_RETURN_CODE",
childJob_tRunJob_5.getErrorCode());
}
if (childJob_tRunJob_5.getExceptionStackTrace() != null) {
globalMap.put("tRunJob_5_CHILD_EXCEPTION_STACKTRACE",
childJob_tRunJob_5.getExceptionStackTrace());
}
if (childJob_tRunJob_5.getErrorCode() != null
|| ("failure").equals(childJob_tRunJob_5.getStatus())) {
throw new RuntimeException("Child job running failed");
}
tos_count_tRunJob_5++;
/**
* [tRunJob_5 main ] stop
*/
/**
* [tRunJob_5 end ] start
*/
currentComponent = "tRunJob_5";
ok_Hash.put("tRunJob_5", true);
end_Hash.put("tRunJob_5", System.currentTimeMillis());
/**
* [tRunJob_5 end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tRunJob_5 finally ] start
*/
currentComponent = "tRunJob_5";
/**
* [tRunJob_5 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tRunJob_5_SUBPROCESS_STATE", 1);
}
public static class OUT__initBddContextesStruct implements
routines.system.IPersistableRow {
final static byte[] commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
static byte[] commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
public String key;
public String getKey() {
return this.key;
}
public String value;
public String getValue() {
return this.value;
}
private String readString(ObjectInputStream dis) throws IOException {
String strReturn = null;
int length = 0;
length = dis.readInt();
if (length == -1) {
strReturn = null;
} else {
if (length > commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length) {
if (length < 1024
&& commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length == 0) {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[1024];
} else {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[2 * length];
}
}
dis.readFully(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length);
strReturn = new String(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length, utf8Charset);
}
return strReturn;
}
private void writeString(String str, ObjectOutputStream dos)
throws IOException {
if (str == null) {
dos.writeInt(-1);
} else {
byte[] byteArray = str.getBytes(utf8Charset);
dos.writeInt(byteArray.length);
dos.write(byteArray);
}
}
public void readData(ObjectInputStream dis) {
synchronized (commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION) {
try {
int length = 0;
this.key = readString(dis);
this.value = readString(dis);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
public void writeData(ObjectOutputStream dos) {
try {
// String
writeString(this.key, dos);
// String
writeString(this.value, dos);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("[");
sb.append("key=" + key);
sb.append(",value=" + value);
sb.append("]");
return sb.toString();
}
/**
* Compare keys
*/
public int compareTo(OUT__initBddContextesStruct other) {
int returnValue = -1;
return returnValue;
}
private int checkNullsAndCompare(Object object1, Object object2) {
int returnValue = 0;
if (object1 instanceof Comparable && object2 instanceof Comparable) {
returnValue = ((Comparable) object1).compareTo(object2);
} else if (object1 != null && object2 != null) {
returnValue = compareStrings(object1.toString(),
object2.toString());
} else if (object1 == null && object2 != null) {
returnValue = 1;
} else if (object1 != null && object2 == null) {
returnValue = -1;
} else {
returnValue = 0;
}
return returnValue;
}
private int compareStrings(String string1, String string2) {
return string1.compareTo(string2);
}
}
public void tRunJob_1Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tRunJob_1_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
OUT__initBddContextesStruct OUT__initBddContextes = new OUT__initBddContextesStruct();
/**
* [tContextLoad_1 begin ] start
*/
ok_Hash.put("tContextLoad_1", false);
start_Hash.put("tContextLoad_1", System.currentTimeMillis());
currentComponent = "tContextLoad_1";
int tos_count_tContextLoad_1 = 0;
java.util.List assignList_tContextLoad_1 = new java.util.ArrayList();
java.util.List newPropertyList_tContextLoad_1 = new java.util.ArrayList();
java.util.List noAssignList_tContextLoad_1 = new java.util.ArrayList();
int nb_line_tContextLoad_1 = 0;
/**
* [tContextLoad_1 begin ] stop
*/
/**
* [tRunJob_1 begin ] start
*/
ok_Hash.put("tRunJob_1", false);
start_Hash.put("tRunJob_1", System.currentTimeMillis());
currentComponent = "tRunJob_1";
int tos_count_tRunJob_1 = 0;
/**
* [tRunJob_1 begin ] stop
*/
/**
* [tRunJob_1 main ] start
*/
currentComponent = "tRunJob_1";
java.util.List paraList_tRunJob_1 = new java.util.ArrayList();
paraList_tRunJob_1.add("--father_pid=" + pid);
paraList_tRunJob_1.add("--root_pid=" + rootPid);
paraList_tRunJob_1.add("--father_node=tRunJob_1");
paraList_tRunJob_1.add("--context=RE7");
// for feature:10589
paraList_tRunJob_1.add("--stat_port=" + portStats);
if (resuming_logs_dir_path != null) {
paraList_tRunJob_1.add("--resuming_logs_dir_path="
+ resuming_logs_dir_path);
}
String childResumePath_tRunJob_1 = ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path);
String tRunJobName_tRunJob_1 = ResumeUtil
.getRighttRunJob(resuming_checkpoint_path);
if ("tRunJob_1".equals(tRunJobName_tRunJob_1)
&& childResumePath_tRunJob_1 != null) {
paraList_tRunJob_1
.add("--resuming_checkpoint_path="
+ ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path));
}
paraList_tRunJob_1.add("--parent_part_launcher=JOB:" + jobName
+ "/NODE:tRunJob_1");
java.util.Map parentContextMap_tRunJob_1 = new java.util.HashMap();
context.synchronizeContext();
java.util.Enumeration> propertyNames_tRunJob_1 = context
.propertyNames();
while (propertyNames_tRunJob_1.hasMoreElements()) {
String key_tRunJob_1 = (String) propertyNames_tRunJob_1
.nextElement();
Object value_tRunJob_1 = (Object) context
.get(key_tRunJob_1);
paraList_tRunJob_1.add("--context_param " + key_tRunJob_1
+ "=" + value_tRunJob_1);
}
parentContextMap_tRunJob_1.put("CTX_EMAIL_Destinataire",
context.CTX_EMAIL_Destinataire);
parentContextMap_tRunJob_1.put("CTX_EMAIL_Destinataire_copie",
context.CTX_EMAIL_Destinataire_copie);
parentContextMap_tRunJob_1.put(
"CTX_EMAIL_Destinataire_copie_cachee",
context.CTX_EMAIL_Destinataire_copie_cachee);
parentContextMap_tRunJob_1.put("CTX_EMAIL_Emetteur",
context.CTX_EMAIL_Emetteur);
parentContextMap_tRunJob_1.put("CTX_EMAIL_Envoi_active",
context.CTX_EMAIL_Envoi_active);
parentContextMap_tRunJob_1.put("CTX_EMAIL_Login",
context.CTX_EMAIL_Login);
parentContextMap_tRunJob_1.put("CTX_EMAIL_Password",
context.CTX_EMAIL_Password);
parentContextMap_tRunJob_1.put("CTX_EMAIL_Serveur_port",
context.CTX_EMAIL_Serveur_port);
parentContextMap_tRunJob_1.put("CTX_EMAIL_Serveur_SMTP",
context.CTX_EMAIL_Serveur_SMTP);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTAFIL_Database",
context.CTX_PGS_COMPTAFIL_Database);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTAFIL_Login",
context.CTX_PGS_COMPTAFIL_Login);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTAFIL_Password",
context.CTX_PGS_COMPTAFIL_Password);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTAFIL_Port",
context.CTX_PGS_COMPTAFIL_Port);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTAFIL_Schema",
context.CTX_PGS_COMPTAFIL_Schema);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTAFIL_Server",
context.CTX_PGS_COMPTAFIL_Server);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTALIS_Database",
context.CTX_PGS_COMPTALIS_Database);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTALIS_Login",
context.CTX_PGS_COMPTALIS_Login);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTALIS_Password",
context.CTX_PGS_COMPTALIS_Password);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTALIS_Port",
context.CTX_PGS_COMPTALIS_Port);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTALIS_Schema",
context.CTX_PGS_COMPTALIS_Schema);
parentContextMap_tRunJob_1.put("CTX_PGS_COMPTALIS_Server",
context.CTX_PGS_COMPTALIS_Server);
parentContextMap_tRunJob_1.put("CTX_PGS_CRM_CommitInterval",
context.CTX_PGS_CRM_CommitInterval);
parentContextMap_tRunJob_1.put("CTX_PGS_CRM_Database",
context.CTX_PGS_CRM_Database);
parentContextMap_tRunJob_1.put("CTX_PGS_CRM_Login",
context.CTX_PGS_CRM_Login);
parentContextMap_tRunJob_1.put("CTX_PGS_CRM_Password",
context.CTX_PGS_CRM_Password);
parentContextMap_tRunJob_1.put("CTX_PGS_CRM_Port",
context.CTX_PGS_CRM_Port);
parentContextMap_tRunJob_1.put("CTX_PGS_CRM_Schema",
context.CTX_PGS_CRM_Schema);
parentContextMap_tRunJob_1.put("CTX_PGS_CRM_Server",
context.CTX_PGS_CRM_Server);
parentContextMap_tRunJob_1.put("CTX_PGS_DSA_CommitInterval",
context.CTX_PGS_DSA_CommitInterval);
parentContextMap_tRunJob_1.put("CTX_PGS_DSA_Database",
context.CTX_PGS_DSA_Database);
parentContextMap_tRunJob_1.put("CTX_PGS_DSA_Login",
context.CTX_PGS_DSA_Login);
parentContextMap_tRunJob_1.put("CTX_PGS_DSA_Password",
context.CTX_PGS_DSA_Password);
parentContextMap_tRunJob_1.put("CTX_PGS_DSA_Port",
context.CTX_PGS_DSA_Port);
parentContextMap_tRunJob_1.put("CTX_PGS_DSA_Schema",
context.CTX_PGS_DSA_Schema);
parentContextMap_tRunJob_1.put("CTX_PGS_DSA_Server",
context.CTX_PGS_DSA_Server);
parentContextMap_tRunJob_1.put("CTX_PGS_ODS_CommitInterval",
context.CTX_PGS_ODS_CommitInterval);
parentContextMap_tRunJob_1.put("CTX_PGS_ODS_Database",
context.CTX_PGS_ODS_Database);
parentContextMap_tRunJob_1.put("CTX_PGS_ODS_Login",
context.CTX_PGS_ODS_Login);
parentContextMap_tRunJob_1.put("CTX_PGS_ODS_Password",
context.CTX_PGS_ODS_Password);
parentContextMap_tRunJob_1.put("CTX_PGS_ODS_Port",
context.CTX_PGS_ODS_Port);
parentContextMap_tRunJob_1.put("CTX_PGS_ODS_Schema",
context.CTX_PGS_ODS_Schema);
parentContextMap_tRunJob_1.put("CTX_PGS_ODS_Server",
context.CTX_PGS_ODS_Server);
parentContextMap_tRunJob_1.put("CTX_PRM_ArchiveLogs",
context.CTX_PRM_ArchiveLogs);
parentContextMap_tRunJob_1.put("CTX_PRM_CEV",
context.CTX_PRM_CEV);
parentContextMap_tRunJob_1.put("CTX_PRM_CodeRetour",
context.CTX_PRM_CodeRetour);
parentContextMap_tRunJob_1.put("CTX_PRM_DateDebut",
context.CTX_PRM_DateDebut);
parentContextMap_tRunJob_1.put("CTX_PRM_DateFin",
context.CTX_PRM_DateFin);
parentContextMap_tRunJob_1.put("CTX_PRM_Edeal_ASSO_FIL",
context.CTX_PRM_Edeal_ASSO_FIL);
parentContextMap_tRunJob_1.put("CTX_PRM_Edeal_ASSO_LIS",
context.CTX_PRM_Edeal_ASSO_LIS);
parentContextMap_tRunJob_1.put("CTX_PRM_EdealBascounter",
context.CTX_PRM_EdealBascounter);
parentContextMap_tRunJob_1.put("CTX_PRM_EdealBasid",
context.CTX_PRM_EdealBasid);
parentContextMap_tRunJob_1.put("CTX_PRM_EdealCodeActor",
context.CTX_PRM_EdealCodeActor);
parentContextMap_tRunJob_1.put("CTX_PRM_EdealIdActor",
context.CTX_PRM_EdealIdActor);
parentContextMap_tRunJob_1.put("CTX_PRM_EdealLicence",
context.CTX_PRM_EdealLicence);
parentContextMap_tRunJob_1.put("CTX_PRM_Environnement",
context.CTX_PRM_Environnement);
parentContextMap_tRunJob_1.put("CTX_PRM_EQUALITING",
context.CTX_PRM_EQUALITING);
parentContextMap_tRunJob_1.put("CTX_PRM_Exec_RES",
context.CTX_PRM_Exec_RES);
parentContextMap_tRunJob_1.put("CTX_PRM_FichierConfiguration",
context.CTX_PRM_FichierConfiguration);
parentContextMap_tRunJob_1.put("CTX_PRM_FichierLog",
context.CTX_PRM_FichierLog);
parentContextMap_tRunJob_1.put("CTX_PRM_FichierLogs",
context.CTX_PRM_FichierLogs);
parentContextMap_tRunJob_1.put("CTX_PRM_FichierMetrique",
context.CTX_PRM_FichierMetrique);
parentContextMap_tRunJob_1.put("CTX_PRM_FichierStatistique",
context.CTX_PRM_FichierStatistique);
parentContextMap_tRunJob_1.put("CTX_PRM_fileEncodage",
context.CTX_PRM_fileEncodage);
parentContextMap_tRunJob_1.put("CTX_PRM_fileName",
context.CTX_PRM_fileName);
parentContextMap_tRunJob_1.put("CTX_PRM_IdAudit",
context.CTX_PRM_IdAudit);
parentContextMap_tRunJob_1.put("CTX_PRM_IdEtape",
context.CTX_PRM_IdEtape);
parentContextMap_tRunJob_1.put("CTX_PRM_IdEtapeDebut",
context.CTX_PRM_IdEtapeDebut);
parentContextMap_tRunJob_1.put("CTX_PRM_IdEtapeFin",
context.CTX_PRM_IdEtapeFin);
parentContextMap_tRunJob_1.put(
"CTX_PRM_listOfTableToDisableConstraints",
context.CTX_PRM_listOfTableToDisableConstraints);
parentContextMap_tRunJob_1.put("CTX_PRM_LKPCursorSize",
context.CTX_PRM_LKPCursorSize);
parentContextMap_tRunJob_1.put("CTX_PRM_NomAppliSource",
context.CTX_PRM_NomAppliSource);
parentContextMap_tRunJob_1.put("CTX_PRM_NomSource",
context.CTX_PRM_NomSource);
parentContextMap_tRunJob_1.put("CTX_PRM_OLAKALA_ERROR",
context.CTX_PRM_OLAKALA_ERROR);
parentContextMap_tRunJob_1.put("CTX_PRM_OLAKALA_FINISHED",
context.CTX_PRM_OLAKALA_FINISHED);
parentContextMap_tRunJob_1.put("CTX_PRM_OLAKALA_PROGRESS",
context.CTX_PRM_OLAKALA_PROGRESS);
parentContextMap_tRunJob_1.put(
"CTX_PRM_ProfondeurRetentionLogs",
context.CTX_PRM_ProfondeurRetentionLogs);
parentContextMap_tRunJob_1.put(
"CTX_PRM_ProfondeurRetentionRejets",
context.CTX_PRM_ProfondeurRetentionRejets);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireConf",
context.CTX_PRM_RepertoireConf);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireData",
context.CTX_PRM_RepertoireData);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireDataArchive",
context.CTX_PRM_RepertoireDataArchive);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireDataIn",
context.CTX_PRM_RepertoireDataIn);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireDataOut",
context.CTX_PRM_RepertoireDataOut);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireLog",
context.CTX_PRM_RepertoireLog);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireRacine",
context.CTX_PRM_RepertoireRacine);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireSql",
context.CTX_PRM_RepertoireSql);
parentContextMap_tRunJob_1.put("CTX_PRM_RepertoireTmp",
context.CTX_PRM_RepertoireTmp);
parentContextMap_tRunJob_1.put("CTX_PRM_RESERVIT",
context.CTX_PRM_RESERVIT);
parentContextMap_tRunJob_1.put("CTX_PRM_SRCCursorSize",
context.CTX_PRM_SRCCursorSize);
parentContextMap_tRunJob_1.put("CTX_PRM_TalendRootPackage",
context.CTX_PRM_TalendRootPackage);
parentContextMap_tRunJob_1.put("CTX_PRM_TalendRootPid",
context.CTX_PRM_TalendRootPid);
parentContextMap_tRunJob_1.put("SharedMap_EXE_RES",
context.SharedMap_EXE_RES);
Object obj_tRunJob_1 = null;
fil_galaxie.util__job__init_bdd_contextes_0_1.UTIL__JOB__INIT_BDD_CONTEXTES childJob_tRunJob_1 = new fil_galaxie.util__job__init_bdd_contextes_0_1.UTIL__JOB__INIT_BDD_CONTEXTES();
// pass DataSources
java.util.Map talendDataSources_tRunJob_1 = (java.util.Map) globalMap
.get(KEY_DB_DATASOURCES);
if (null != talendDataSources_tRunJob_1) {
java.util.Map dataSources_tRunJob_1 = new java.util.HashMap();
for (java.util.Map.Entry talendDataSourceEntry_tRunJob_1 : talendDataSources_tRunJob_1
.entrySet()) {
dataSources_tRunJob_1.put(
talendDataSourceEntry_tRunJob_1.getKey(),
talendDataSourceEntry_tRunJob_1.getValue()
.getRawDataSource());
}
childJob_tRunJob_1.setDataSources(dataSources_tRunJob_1);
}
childJob_tRunJob_1.parentContextMap = parentContextMap_tRunJob_1;
String[][] childReturn_tRunJob_1 = childJob_tRunJob_1
.runJob((String[]) paraList_tRunJob_1
.toArray(new String[paraList_tRunJob_1.size()]));
errorCode = childJob_tRunJob_1.getErrorCode();
if (childJob_tRunJob_1.getErrorCode() == null) {
globalMap.put(
"tRunJob_1_CHILD_RETURN_CODE",
childJob_tRunJob_1.getStatus() != null
&& ("failure").equals(childJob_tRunJob_1
.getStatus()) ? 1 : 0);
} else {
globalMap.put("tRunJob_1_CHILD_RETURN_CODE",
childJob_tRunJob_1.getErrorCode());
}
if (childJob_tRunJob_1.getExceptionStackTrace() != null) {
globalMap.put("tRunJob_1_CHILD_EXCEPTION_STACKTRACE",
childJob_tRunJob_1.getExceptionStackTrace());
}
if (childJob_tRunJob_1.getErrorCode() != null
|| ("failure").equals(childJob_tRunJob_1.getStatus())) {
throw new RuntimeException("Child job running failed");
}
for (String[] item_tRunJob_1 : childReturn_tRunJob_1) {
if (childJob_tRunJob_1.hastBufferOutputComponent() || true) {
if (0 < item_tRunJob_1.length) {
OUT__initBddContextes.key = item_tRunJob_1[0];
} else {
OUT__initBddContextes.key = null;
}
if (1 < item_tRunJob_1.length) {
OUT__initBddContextes.value = item_tRunJob_1[1];
} else {
OUT__initBddContextes.value = null;
}
}
tos_count_tRunJob_1++;
/**
* [tRunJob_1 main ] stop
*/
/**
* [tContextLoad_1 main ] start
*/
currentComponent = "tContextLoad_1";
// ////////////////////////
String tmp_key_tContextLoad_1 = null;
String key_tContextLoad_1 = null;
if (OUT__initBddContextes.key != null) {
tmp_key_tContextLoad_1 = OUT__initBddContextes.key
.trim();
if ((tmp_key_tContextLoad_1.startsWith("#") || tmp_key_tContextLoad_1
.startsWith("!"))) {
tmp_key_tContextLoad_1 = null;
} else {
OUT__initBddContextes.key = tmp_key_tContextLoad_1;
}
}
if (OUT__initBddContextes.key != null) {
key_tContextLoad_1 = OUT__initBddContextes.key;
}
String value_tContextLoad_1 = null;
if (OUT__initBddContextes.value != null) {
value_tContextLoad_1 = OUT__initBddContextes.value;
}
if (tmp_key_tContextLoad_1 != null) {
try {
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Destinataire"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Destinataire = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Destinataire_copie"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Destinataire_copie = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Destinataire_copie_cachee"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Destinataire_copie_cachee = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Emetteur"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Emetteur = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Envoi_active"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Envoi_active = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Login"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Login = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Password"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Password = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Serveur_port"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Serveur_port = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_EMAIL_Serveur_SMTP"
.equals(key_tContextLoad_1)) {
context.CTX_EMAIL_Serveur_SMTP = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTAFIL_Database"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTAFIL_Database = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTAFIL_Login"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTAFIL_Login = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTAFIL_Password"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTAFIL_Password = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTAFIL_Port"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTAFIL_Port = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTAFIL_Schema"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTAFIL_Schema = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTAFIL_Server"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTAFIL_Server = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTALIS_Database"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTALIS_Database = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTALIS_Login"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTALIS_Login = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTALIS_Password"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTALIS_Password = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTALIS_Port"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTALIS_Port = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTALIS_Schema"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTALIS_Schema = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_COMPTALIS_Server"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_COMPTALIS_Server = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_CRM_CommitInterval"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_CRM_CommitInterval = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_CRM_Database"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_CRM_Database = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_CRM_Login"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_CRM_Login = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_CRM_Password"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_CRM_Password = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_CRM_Port"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_CRM_Port = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_CRM_Schema"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_CRM_Schema = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_CRM_Server"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_CRM_Server = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_DSA_CommitInterval"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_DSA_CommitInterval = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_DSA_Database"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_DSA_Database = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_DSA_Login"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_DSA_Login = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_DSA_Password"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_DSA_Password = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_DSA_Port"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_DSA_Port = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_DSA_Schema"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_DSA_Schema = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_DSA_Server"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_DSA_Server = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_ODS_CommitInterval"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_ODS_CommitInterval = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_ODS_Database"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_ODS_Database = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_ODS_Login"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_ODS_Login = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_ODS_Password"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_ODS_Password = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_ODS_Port"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_ODS_Port = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_ODS_Schema"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_ODS_Schema = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PGS_ODS_Server"
.equals(key_tContextLoad_1)) {
context.CTX_PGS_ODS_Server = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_ArchiveLogs"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_ArchiveLogs = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_CEV".equals(key_tContextLoad_1)) {
context.CTX_PRM_CEV = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_CodeRetour"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_CodeRetour = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_DateDebut"
.equals(key_tContextLoad_1)) {
String context_CTX_PRM_DateDebut_value = context
.getProperty("CTX_PRM_DateDebut");
if (context_CTX_PRM_DateDebut_value == null)
context_CTX_PRM_DateDebut_value = "";
int context_CTX_PRM_DateDebut_pos = context_CTX_PRM_DateDebut_value
.indexOf(";");
String context_CTX_PRM_DateDebut_pattern = "yyyy-MM-dd HH:mm:ss";
if (context_CTX_PRM_DateDebut_pos > -1) {
context_CTX_PRM_DateDebut_pattern = context_CTX_PRM_DateDebut_value
.substring(0,
context_CTX_PRM_DateDebut_pos);
}
context.CTX_PRM_DateDebut = (java.util.Date) (new java.text.SimpleDateFormat(
context_CTX_PRM_DateDebut_pattern)
.parse(value_tContextLoad_1));
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_DateFin"
.equals(key_tContextLoad_1)) {
String context_CTX_PRM_DateFin_value = context
.getProperty("CTX_PRM_DateFin");
if (context_CTX_PRM_DateFin_value == null)
context_CTX_PRM_DateFin_value = "";
int context_CTX_PRM_DateFin_pos = context_CTX_PRM_DateFin_value
.indexOf(";");
String context_CTX_PRM_DateFin_pattern = "yyyy-MM-dd HH:mm:ss";
if (context_CTX_PRM_DateFin_pos > -1) {
context_CTX_PRM_DateFin_pattern = context_CTX_PRM_DateFin_value
.substring(0,
context_CTX_PRM_DateFin_pos);
}
context.CTX_PRM_DateFin = (java.util.Date) (new java.text.SimpleDateFormat(
context_CTX_PRM_DateFin_pattern)
.parse(value_tContextLoad_1));
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_Edeal_ASSO_FIL"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_Edeal_ASSO_FIL = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_Edeal_ASSO_LIS"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_Edeal_ASSO_LIS = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_EdealBascounter"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_EdealBascounter = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_EdealBasid"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_EdealBasid = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_EdealCodeActor"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_EdealCodeActor = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_EdealIdActor"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_EdealIdActor = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_EdealLicence"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_EdealLicence = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_Environnement"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_Environnement = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_EQUALITING"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_EQUALITING = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_Exec_RES"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_Exec_RES = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_FichierConfiguration"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_FichierConfiguration = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_FichierLog"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_FichierLog = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_FichierLogs"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_FichierLogs = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_FichierMetrique"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_FichierMetrique = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_FichierStatistique"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_FichierStatistique = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_fileEncodage"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_fileEncodage = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_fileName"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_fileName = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_IdAudit"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_IdAudit = Long
.parseLong(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_IdEtape"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_IdEtape = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_IdEtapeDebut"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_IdEtapeDebut = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_IdEtapeFin"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_IdEtapeFin = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_listOfTableToDisableConstraints"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_listOfTableToDisableConstraints = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_LKPCursorSize"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_LKPCursorSize = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_NomAppliSource"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_NomAppliSource = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_NomSource"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_NomSource = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_OLAKALA_ERROR"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_OLAKALA_ERROR = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_OLAKALA_FINISHED"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_OLAKALA_FINISHED = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_OLAKALA_PROGRESS"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_OLAKALA_PROGRESS = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_ProfondeurRetentionLogs"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_ProfondeurRetentionLogs = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_ProfondeurRetentionRejets"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_ProfondeurRetentionRejets = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireConf"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireConf = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireData"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireData = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireDataArchive"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireDataArchive = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireDataIn"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireDataIn = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireDataOut"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireDataOut = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireLog"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireLog = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireRacine"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireRacine = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireSql"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireSql = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RepertoireTmp"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RepertoireTmp = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_RESERVIT"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_RESERVIT = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_SRCCursorSize"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_SRCCursorSize = Integer
.parseInt(value_tContextLoad_1);
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_TalendRootPackage"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_TalendRootPackage = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "CTX_PRM_TalendRootPid"
.equals(key_tContextLoad_1)) {
context.CTX_PRM_TalendRootPid = value_tContextLoad_1;
}
if (key_tContextLoad_1 != null
&& "SharedMap_EXE_RES"
.equals(key_tContextLoad_1)) {
context.SharedMap_EXE_RES = value_tContextLoad_1;
}
if (context.getProperty(key_tContextLoad_1) != null) {
assignList_tContextLoad_1
.add(key_tContextLoad_1);
} else {
newPropertyList_tContextLoad_1
.add(key_tContextLoad_1);
}
if (value_tContextLoad_1 == null) {
context.setProperty(key_tContextLoad_1, "");
} else {
context.setProperty(key_tContextLoad_1,
value_tContextLoad_1);
}
} catch (java.lang.Exception e) {
System.err.println("Setting a value for the key \""
+ key_tContextLoad_1
+ "\" has failed. Error message: "
+ e.getMessage());
}
nb_line_tContextLoad_1++;
}
// ////////////////////////
tos_count_tContextLoad_1++;
/**
* [tContextLoad_1 main ] stop
*/
} // C_01
/**
* [tRunJob_1 end ] start
*/
currentComponent = "tRunJob_1";
ok_Hash.put("tRunJob_1", true);
end_Hash.put("tRunJob_1", System.currentTimeMillis());
/**
* [tRunJob_1 end ] stop
*/
/**
* [tContextLoad_1 end ] start
*/
currentComponent = "tContextLoad_1";
java.util.Enumeration> enu_tContextLoad_1 = context
.propertyNames();
while (enu_tContextLoad_1.hasMoreElements()) {
String key_tContextLoad_1 = (String) enu_tContextLoad_1
.nextElement();
if (!assignList_tContextLoad_1.contains(key_tContextLoad_1)
&& !newPropertyList_tContextLoad_1
.contains(key_tContextLoad_1)) {
noAssignList_tContextLoad_1.add(key_tContextLoad_1);
}
}
String newPropertyStr_tContextLoad_1 = newPropertyList_tContextLoad_1
.toString();
String newProperty_tContextLoad_1 = newPropertyStr_tContextLoad_1
.substring(1,
newPropertyStr_tContextLoad_1.length() - 1);
String noAssignStr_tContextLoad_1 = noAssignList_tContextLoad_1
.toString();
String noAssign_tContextLoad_1 = noAssignStr_tContextLoad_1
.substring(1, noAssignStr_tContextLoad_1.length() - 1);
globalMap.put("tContextLoad_1_KEY_NOT_INCONTEXT",
newProperty_tContextLoad_1);
globalMap.put("tContextLoad_1_KEY_NOT_LOADED",
noAssign_tContextLoad_1);
globalMap.put("tContextLoad_1_NB_LINE", nb_line_tContextLoad_1);
List parametersToEncrypt_tContextLoad_1 = new java.util.ArrayList();
parametersToEncrypt_tContextLoad_1.add("CTX_EMAIL_Password");
parametersToEncrypt_tContextLoad_1
.add("CTX_PGS_COMPTAFIL_Password");
parametersToEncrypt_tContextLoad_1
.add("CTX_PGS_COMPTALIS_Password");
parametersToEncrypt_tContextLoad_1.add("CTX_PGS_CRM_Password");
parametersToEncrypt_tContextLoad_1.add("CTX_PGS_DSA_Password");
parametersToEncrypt_tContextLoad_1.add("CTX_PGS_ODS_Password");
resumeUtil.addLog("NODE", "NODE:tContextLoad_1", "", Thread
.currentThread().getId() + "", "", "", "", "",
resumeUtil.convertToJsonText(context,
parametersToEncrypt_tContextLoad_1));
ok_Hash.put("tContextLoad_1", true);
end_Hash.put("tContextLoad_1", System.currentTimeMillis());
/**
* [tContextLoad_1 end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tRunJob_1 finally ] start
*/
currentComponent = "tRunJob_1";
/**
* [tRunJob_1 finally ] stop
*/
/**
* [tContextLoad_1 finally ] start
*/
currentComponent = "tContextLoad_1";
/**
* [tContextLoad_1 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tRunJob_1_SUBPROCESS_STATE", 1);
}
public void tRunJob_2Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tRunJob_2_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [tRunJob_2 begin ] start
*/
ok_Hash.put("tRunJob_2", false);
start_Hash.put("tRunJob_2", System.currentTimeMillis());
currentComponent = "tRunJob_2";
int tos_count_tRunJob_2 = 0;
/**
* [tRunJob_2 begin ] stop
*/
/**
* [tRunJob_2 main ] start
*/
currentComponent = "tRunJob_2";
java.util.List paraList_tRunJob_2 = new java.util.ArrayList();
paraList_tRunJob_2.add("--father_pid=" + pid);
paraList_tRunJob_2.add("--root_pid=" + rootPid);
paraList_tRunJob_2.add("--father_node=tRunJob_2");
paraList_tRunJob_2.add("--context=RE7");
// for feature:10589
paraList_tRunJob_2.add("--stat_port=" + portStats);
if (resuming_logs_dir_path != null) {
paraList_tRunJob_2.add("--resuming_logs_dir_path="
+ resuming_logs_dir_path);
}
String childResumePath_tRunJob_2 = ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path);
String tRunJobName_tRunJob_2 = ResumeUtil
.getRighttRunJob(resuming_checkpoint_path);
if ("tRunJob_2".equals(tRunJobName_tRunJob_2)
&& childResumePath_tRunJob_2 != null) {
paraList_tRunJob_2
.add("--resuming_checkpoint_path="
+ ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path));
}
paraList_tRunJob_2.add("--parent_part_launcher=JOB:" + jobName
+ "/NODE:tRunJob_2");
java.util.Map parentContextMap_tRunJob_2 = new java.util.HashMap();
context.synchronizeContext();
java.util.Enumeration> propertyNames_tRunJob_2 = context
.propertyNames();
while (propertyNames_tRunJob_2.hasMoreElements()) {
String key_tRunJob_2 = (String) propertyNames_tRunJob_2
.nextElement();
Object value_tRunJob_2 = (Object) context
.get(key_tRunJob_2);
paraList_tRunJob_2.add("--context_param " + key_tRunJob_2
+ "=" + value_tRunJob_2);
}
parentContextMap_tRunJob_2.put("CTX_EMAIL_Destinataire",
context.CTX_EMAIL_Destinataire);
parentContextMap_tRunJob_2.put("CTX_EMAIL_Destinataire_copie",
context.CTX_EMAIL_Destinataire_copie);
parentContextMap_tRunJob_2.put(
"CTX_EMAIL_Destinataire_copie_cachee",
context.CTX_EMAIL_Destinataire_copie_cachee);
parentContextMap_tRunJob_2.put("CTX_EMAIL_Emetteur",
context.CTX_EMAIL_Emetteur);
parentContextMap_tRunJob_2.put("CTX_EMAIL_Envoi_active",
context.CTX_EMAIL_Envoi_active);
parentContextMap_tRunJob_2.put("CTX_EMAIL_Login",
context.CTX_EMAIL_Login);
parentContextMap_tRunJob_2.put("CTX_EMAIL_Password",
context.CTX_EMAIL_Password);
parentContextMap_tRunJob_2.put("CTX_EMAIL_Serveur_port",
context.CTX_EMAIL_Serveur_port);
parentContextMap_tRunJob_2.put("CTX_EMAIL_Serveur_SMTP",
context.CTX_EMAIL_Serveur_SMTP);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTAFIL_Database",
context.CTX_PGS_COMPTAFIL_Database);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTAFIL_Login",
context.CTX_PGS_COMPTAFIL_Login);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTAFIL_Password",
context.CTX_PGS_COMPTAFIL_Password);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTAFIL_Port",
context.CTX_PGS_COMPTAFIL_Port);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTAFIL_Schema",
context.CTX_PGS_COMPTAFIL_Schema);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTAFIL_Server",
context.CTX_PGS_COMPTAFIL_Server);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTALIS_Database",
context.CTX_PGS_COMPTALIS_Database);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTALIS_Login",
context.CTX_PGS_COMPTALIS_Login);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTALIS_Password",
context.CTX_PGS_COMPTALIS_Password);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTALIS_Port",
context.CTX_PGS_COMPTALIS_Port);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTALIS_Schema",
context.CTX_PGS_COMPTALIS_Schema);
parentContextMap_tRunJob_2.put("CTX_PGS_COMPTALIS_Server",
context.CTX_PGS_COMPTALIS_Server);
parentContextMap_tRunJob_2.put("CTX_PGS_CRM_CommitInterval",
context.CTX_PGS_CRM_CommitInterval);
parentContextMap_tRunJob_2.put("CTX_PGS_CRM_Database",
context.CTX_PGS_CRM_Database);
parentContextMap_tRunJob_2.put("CTX_PGS_CRM_Login",
context.CTX_PGS_CRM_Login);
parentContextMap_tRunJob_2.put("CTX_PGS_CRM_Password",
context.CTX_PGS_CRM_Password);
parentContextMap_tRunJob_2.put("CTX_PGS_CRM_Port",
context.CTX_PGS_CRM_Port);
parentContextMap_tRunJob_2.put("CTX_PGS_CRM_Schema",
context.CTX_PGS_CRM_Schema);
parentContextMap_tRunJob_2.put("CTX_PGS_CRM_Server",
context.CTX_PGS_CRM_Server);
parentContextMap_tRunJob_2.put("CTX_PGS_DSA_CommitInterval",
context.CTX_PGS_DSA_CommitInterval);
parentContextMap_tRunJob_2.put("CTX_PGS_DSA_Database",
context.CTX_PGS_DSA_Database);
parentContextMap_tRunJob_2.put("CTX_PGS_DSA_Login",
context.CTX_PGS_DSA_Login);
parentContextMap_tRunJob_2.put("CTX_PGS_DSA_Password",
context.CTX_PGS_DSA_Password);
parentContextMap_tRunJob_2.put("CTX_PGS_DSA_Port",
context.CTX_PGS_DSA_Port);
parentContextMap_tRunJob_2.put("CTX_PGS_DSA_Schema",
context.CTX_PGS_DSA_Schema);
parentContextMap_tRunJob_2.put("CTX_PGS_DSA_Server",
context.CTX_PGS_DSA_Server);
parentContextMap_tRunJob_2.put("CTX_PGS_ODS_CommitInterval",
context.CTX_PGS_ODS_CommitInterval);
parentContextMap_tRunJob_2.put("CTX_PGS_ODS_Database",
context.CTX_PGS_ODS_Database);
parentContextMap_tRunJob_2.put("CTX_PGS_ODS_Login",
context.CTX_PGS_ODS_Login);
parentContextMap_tRunJob_2.put("CTX_PGS_ODS_Password",
context.CTX_PGS_ODS_Password);
parentContextMap_tRunJob_2.put("CTX_PGS_ODS_Port",
context.CTX_PGS_ODS_Port);
parentContextMap_tRunJob_2.put("CTX_PGS_ODS_Schema",
context.CTX_PGS_ODS_Schema);
parentContextMap_tRunJob_2.put("CTX_PGS_ODS_Server",
context.CTX_PGS_ODS_Server);
parentContextMap_tRunJob_2.put("CTX_PRM_ArchiveLogs",
context.CTX_PRM_ArchiveLogs);
parentContextMap_tRunJob_2.put("CTX_PRM_CEV",
context.CTX_PRM_CEV);
parentContextMap_tRunJob_2.put("CTX_PRM_CodeRetour",
context.CTX_PRM_CodeRetour);
parentContextMap_tRunJob_2.put("CTX_PRM_DateDebut",
context.CTX_PRM_DateDebut);
parentContextMap_tRunJob_2.put("CTX_PRM_DateFin",
context.CTX_PRM_DateFin);
parentContextMap_tRunJob_2.put("CTX_PRM_Edeal_ASSO_FIL",
context.CTX_PRM_Edeal_ASSO_FIL);
parentContextMap_tRunJob_2.put("CTX_PRM_Edeal_ASSO_LIS",
context.CTX_PRM_Edeal_ASSO_LIS);
parentContextMap_tRunJob_2.put("CTX_PRM_EdealBascounter",
context.CTX_PRM_EdealBascounter);
parentContextMap_tRunJob_2.put("CTX_PRM_EdealBasid",
context.CTX_PRM_EdealBasid);
parentContextMap_tRunJob_2.put("CTX_PRM_EdealCodeActor",
context.CTX_PRM_EdealCodeActor);
parentContextMap_tRunJob_2.put("CTX_PRM_EdealIdActor",
context.CTX_PRM_EdealIdActor);
parentContextMap_tRunJob_2.put("CTX_PRM_EdealLicence",
context.CTX_PRM_EdealLicence);
parentContextMap_tRunJob_2.put("CTX_PRM_Environnement",
context.CTX_PRM_Environnement);
parentContextMap_tRunJob_2.put("CTX_PRM_EQUALITING",
context.CTX_PRM_EQUALITING);
parentContextMap_tRunJob_2.put("CTX_PRM_Exec_RES",
context.CTX_PRM_Exec_RES);
parentContextMap_tRunJob_2.put("CTX_PRM_FichierConfiguration",
context.CTX_PRM_FichierConfiguration);
parentContextMap_tRunJob_2.put("CTX_PRM_FichierLog",
context.CTX_PRM_FichierLog);
parentContextMap_tRunJob_2.put("CTX_PRM_FichierLogs",
context.CTX_PRM_FichierLogs);
parentContextMap_tRunJob_2.put("CTX_PRM_FichierMetrique",
context.CTX_PRM_FichierMetrique);
parentContextMap_tRunJob_2.put("CTX_PRM_FichierStatistique",
context.CTX_PRM_FichierStatistique);
parentContextMap_tRunJob_2.put("CTX_PRM_fileEncodage",
context.CTX_PRM_fileEncodage);
parentContextMap_tRunJob_2.put("CTX_PRM_fileName",
context.CTX_PRM_fileName);
parentContextMap_tRunJob_2.put("CTX_PRM_IdAudit",
context.CTX_PRM_IdAudit);
parentContextMap_tRunJob_2.put("CTX_PRM_IdEtape",
context.CTX_PRM_IdEtape);
parentContextMap_tRunJob_2.put("CTX_PRM_IdEtapeDebut",
context.CTX_PRM_IdEtapeDebut);
parentContextMap_tRunJob_2.put("CTX_PRM_IdEtapeFin",
context.CTX_PRM_IdEtapeFin);
parentContextMap_tRunJob_2.put(
"CTX_PRM_listOfTableToDisableConstraints",
context.CTX_PRM_listOfTableToDisableConstraints);
parentContextMap_tRunJob_2.put("CTX_PRM_LKPCursorSize",
context.CTX_PRM_LKPCursorSize);
parentContextMap_tRunJob_2.put("CTX_PRM_NomAppliSource",
context.CTX_PRM_NomAppliSource);
parentContextMap_tRunJob_2.put("CTX_PRM_NomSource",
context.CTX_PRM_NomSource);
parentContextMap_tRunJob_2.put("CTX_PRM_OLAKALA_ERROR",
context.CTX_PRM_OLAKALA_ERROR);
parentContextMap_tRunJob_2.put("CTX_PRM_OLAKALA_FINISHED",
context.CTX_PRM_OLAKALA_FINISHED);
parentContextMap_tRunJob_2.put("CTX_PRM_OLAKALA_PROGRESS",
context.CTX_PRM_OLAKALA_PROGRESS);
parentContextMap_tRunJob_2.put(
"CTX_PRM_ProfondeurRetentionLogs",
context.CTX_PRM_ProfondeurRetentionLogs);
parentContextMap_tRunJob_2.put(
"CTX_PRM_ProfondeurRetentionRejets",
context.CTX_PRM_ProfondeurRetentionRejets);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireConf",
context.CTX_PRM_RepertoireConf);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireData",
context.CTX_PRM_RepertoireData);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireDataArchive",
context.CTX_PRM_RepertoireDataArchive);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireDataIn",
context.CTX_PRM_RepertoireDataIn);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireDataOut",
context.CTX_PRM_RepertoireDataOut);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireLog",
context.CTX_PRM_RepertoireLog);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireRacine",
context.CTX_PRM_RepertoireRacine);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireSql",
context.CTX_PRM_RepertoireSql);
parentContextMap_tRunJob_2.put("CTX_PRM_RepertoireTmp",
context.CTX_PRM_RepertoireTmp);
parentContextMap_tRunJob_2.put("CTX_PRM_RESERVIT",
context.CTX_PRM_RESERVIT);
parentContextMap_tRunJob_2.put("CTX_PRM_SRCCursorSize",
context.CTX_PRM_SRCCursorSize);
parentContextMap_tRunJob_2.put("CTX_PRM_TalendRootPackage",
context.CTX_PRM_TalendRootPackage);
parentContextMap_tRunJob_2.put("CTX_PRM_TalendRootPid",
context.CTX_PRM_TalendRootPid);
parentContextMap_tRunJob_2.put("SharedMap_EXE_RES",
context.SharedMap_EXE_RES);
Object obj_tRunJob_2 = null;
fil_galaxie.util__mrj__pre_traitement_0_1.UTIL__MRJ__PRE_TRAITEMENT childJob_tRunJob_2 = new fil_galaxie.util__mrj__pre_traitement_0_1.UTIL__MRJ__PRE_TRAITEMENT();
// pass DataSources
java.util.Map talendDataSources_tRunJob_2 = (java.util.Map) globalMap
.get(KEY_DB_DATASOURCES);
if (null != talendDataSources_tRunJob_2) {
java.util.Map dataSources_tRunJob_2 = new java.util.HashMap();
for (java.util.Map.Entry talendDataSourceEntry_tRunJob_2 : talendDataSources_tRunJob_2
.entrySet()) {
dataSources_tRunJob_2.put(
talendDataSourceEntry_tRunJob_2.getKey(),
talendDataSourceEntry_tRunJob_2.getValue()
.getRawDataSource());
}
childJob_tRunJob_2.setDataSources(dataSources_tRunJob_2);
}
childJob_tRunJob_2.parentContextMap = parentContextMap_tRunJob_2;
String[][] childReturn_tRunJob_2 = childJob_tRunJob_2
.runJob((String[]) paraList_tRunJob_2
.toArray(new String[paraList_tRunJob_2.size()]));
errorCode = childJob_tRunJob_2.getErrorCode();
if (childJob_tRunJob_2.getErrorCode() == null) {
globalMap.put(
"tRunJob_2_CHILD_RETURN_CODE",
childJob_tRunJob_2.getStatus() != null
&& ("failure").equals(childJob_tRunJob_2
.getStatus()) ? 1 : 0);
} else {
globalMap.put("tRunJob_2_CHILD_RETURN_CODE",
childJob_tRunJob_2.getErrorCode());
}
if (childJob_tRunJob_2.getExceptionStackTrace() != null) {
globalMap.put("tRunJob_2_CHILD_EXCEPTION_STACKTRACE",
childJob_tRunJob_2.getExceptionStackTrace());
}
if (childJob_tRunJob_2.getErrorCode() != null
|| ("failure").equals(childJob_tRunJob_2.getStatus())) {
throw new RuntimeException("Child job running failed");
}
tos_count_tRunJob_2++;
/**
* [tRunJob_2 main ] stop
*/
/**
* [tRunJob_2 end ] start
*/
currentComponent = "tRunJob_2";
ok_Hash.put("tRunJob_2", true);
end_Hash.put("tRunJob_2", System.currentTimeMillis());
/**
* [tRunJob_2 end ] stop
*/
}// end the resume
if (resumeEntryMethodName == null || globalResumeTicket) {
resumeUtil.addLog("CHECKPOINT",
"CONNECTION:SUBJOB_OK:tRunJob_2:OnSubjobOk", "", Thread
.currentThread().getId() + "", "", "", "", "",
"");
}
tJava_1Process(globalMap);
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tRunJob_2 finally ] start
*/
currentComponent = "tRunJob_2";
/**
* [tRunJob_2 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tRunJob_2_SUBPROCESS_STATE", 1);
}
public void tJava_1Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tJava_1_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [tJava_1 begin ] start
*/
ok_Hash.put("tJava_1", false);
start_Hash.put("tJava_1", System.currentTimeMillis());
currentComponent = "tJava_1";
int tos_count_tJava_1 = 0;
globalMap.put("SharedMap_EXE_RES_ODS",
new java.util.concurrent.ConcurrentHashMap());
globalMap.put("SharedMap_EXE_RES_CRM",
new java.util.concurrent.ConcurrentHashMap());
/**
* [tJava_1 begin ] stop
*/
/**
* [tJava_1 main ] start
*/
currentComponent = "tJava_1";
tos_count_tJava_1++;
/**
* [tJava_1 main ] stop
*/
/**
* [tJava_1 end ] start
*/
currentComponent = "tJava_1";
ok_Hash.put("tJava_1", true);
end_Hash.put("tJava_1", System.currentTimeMillis());
if (context.CTX_PRM_IdEtape == null
|| context.CTX_PRM_IdEtape < 100) {
tRunJob_3Process(globalMap);
}
if (context.CTX_PRM_IdEtape != null
&& context.CTX_PRM_IdEtape >= 100
&& context.CTX_PRM_IdEtape < 200) {
tRunJob_4Process(globalMap);
}
/**
* [tJava_1 end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tJava_1 finally ] start
*/
currentComponent = "tJava_1";
/**
* [tJava_1 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tJava_1_SUBPROCESS_STATE", 1);
}
public void tRunJob_3Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tRunJob_3_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [tRunJob_3 begin ] start
*/
ok_Hash.put("tRunJob_3", false);
start_Hash.put("tRunJob_3", System.currentTimeMillis());
currentComponent = "tRunJob_3";
int tos_count_tRunJob_3 = 0;
/**
* [tRunJob_3 begin ] stop
*/
/**
* [tRunJob_3 main ] start
*/
currentComponent = "tRunJob_3";
java.util.List paraList_tRunJob_3 = new java.util.ArrayList();
paraList_tRunJob_3.add("--father_pid=" + pid);
paraList_tRunJob_3.add("--root_pid=" + rootPid);
paraList_tRunJob_3.add("--father_node=tRunJob_3");
paraList_tRunJob_3.add("--context=RE7");
// for feature:10589
paraList_tRunJob_3.add("--stat_port=" + portStats);
if (resuming_logs_dir_path != null) {
paraList_tRunJob_3.add("--resuming_logs_dir_path="
+ resuming_logs_dir_path);
}
String childResumePath_tRunJob_3 = ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path);
String tRunJobName_tRunJob_3 = ResumeUtil
.getRighttRunJob(resuming_checkpoint_path);
if ("tRunJob_3".equals(tRunJobName_tRunJob_3)
&& childResumePath_tRunJob_3 != null) {
paraList_tRunJob_3
.add("--resuming_checkpoint_path="
+ ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path));
}
paraList_tRunJob_3.add("--parent_part_launcher=JOB:" + jobName
+ "/NODE:tRunJob_3");
java.util.Map parentContextMap_tRunJob_3 = new java.util.HashMap();
context.synchronizeContext();
java.util.Enumeration> propertyNames_tRunJob_3 = context
.propertyNames();
while (propertyNames_tRunJob_3.hasMoreElements()) {
String key_tRunJob_3 = (String) propertyNames_tRunJob_3
.nextElement();
Object value_tRunJob_3 = (Object) context
.get(key_tRunJob_3);
paraList_tRunJob_3.add("--context_param " + key_tRunJob_3
+ "=" + value_tRunJob_3);
}
parentContextMap_tRunJob_3.put("CTX_EMAIL_Destinataire",
context.CTX_EMAIL_Destinataire);
parentContextMap_tRunJob_3.put("CTX_EMAIL_Destinataire_copie",
context.CTX_EMAIL_Destinataire_copie);
parentContextMap_tRunJob_3.put(
"CTX_EMAIL_Destinataire_copie_cachee",
context.CTX_EMAIL_Destinataire_copie_cachee);
parentContextMap_tRunJob_3.put("CTX_EMAIL_Emetteur",
context.CTX_EMAIL_Emetteur);
parentContextMap_tRunJob_3.put("CTX_EMAIL_Envoi_active",
context.CTX_EMAIL_Envoi_active);
parentContextMap_tRunJob_3.put("CTX_EMAIL_Login",
context.CTX_EMAIL_Login);
parentContextMap_tRunJob_3.put("CTX_EMAIL_Password",
context.CTX_EMAIL_Password);
parentContextMap_tRunJob_3.put("CTX_EMAIL_Serveur_port",
context.CTX_EMAIL_Serveur_port);
parentContextMap_tRunJob_3.put("CTX_EMAIL_Serveur_SMTP",
context.CTX_EMAIL_Serveur_SMTP);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTAFIL_Database",
context.CTX_PGS_COMPTAFIL_Database);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTAFIL_Login",
context.CTX_PGS_COMPTAFIL_Login);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTAFIL_Password",
context.CTX_PGS_COMPTAFIL_Password);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTAFIL_Port",
context.CTX_PGS_COMPTAFIL_Port);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTAFIL_Schema",
context.CTX_PGS_COMPTAFIL_Schema);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTAFIL_Server",
context.CTX_PGS_COMPTAFIL_Server);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTALIS_Database",
context.CTX_PGS_COMPTALIS_Database);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTALIS_Login",
context.CTX_PGS_COMPTALIS_Login);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTALIS_Password",
context.CTX_PGS_COMPTALIS_Password);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTALIS_Port",
context.CTX_PGS_COMPTALIS_Port);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTALIS_Schema",
context.CTX_PGS_COMPTALIS_Schema);
parentContextMap_tRunJob_3.put("CTX_PGS_COMPTALIS_Server",
context.CTX_PGS_COMPTALIS_Server);
parentContextMap_tRunJob_3.put("CTX_PGS_CRM_CommitInterval",
context.CTX_PGS_CRM_CommitInterval);
parentContextMap_tRunJob_3.put("CTX_PGS_CRM_Database",
context.CTX_PGS_CRM_Database);
parentContextMap_tRunJob_3.put("CTX_PGS_CRM_Login",
context.CTX_PGS_CRM_Login);
parentContextMap_tRunJob_3.put("CTX_PGS_CRM_Password",
context.CTX_PGS_CRM_Password);
parentContextMap_tRunJob_3.put("CTX_PGS_CRM_Port",
context.CTX_PGS_CRM_Port);
parentContextMap_tRunJob_3.put("CTX_PGS_CRM_Schema",
context.CTX_PGS_CRM_Schema);
parentContextMap_tRunJob_3.put("CTX_PGS_CRM_Server",
context.CTX_PGS_CRM_Server);
parentContextMap_tRunJob_3.put("CTX_PGS_DSA_CommitInterval",
context.CTX_PGS_DSA_CommitInterval);
parentContextMap_tRunJob_3.put("CTX_PGS_DSA_Database",
context.CTX_PGS_DSA_Database);
parentContextMap_tRunJob_3.put("CTX_PGS_DSA_Login",
context.CTX_PGS_DSA_Login);
parentContextMap_tRunJob_3.put("CTX_PGS_DSA_Password",
context.CTX_PGS_DSA_Password);
parentContextMap_tRunJob_3.put("CTX_PGS_DSA_Port",
context.CTX_PGS_DSA_Port);
parentContextMap_tRunJob_3.put("CTX_PGS_DSA_Schema",
context.CTX_PGS_DSA_Schema);
parentContextMap_tRunJob_3.put("CTX_PGS_DSA_Server",
context.CTX_PGS_DSA_Server);
parentContextMap_tRunJob_3.put("CTX_PGS_ODS_CommitInterval",
context.CTX_PGS_ODS_CommitInterval);
parentContextMap_tRunJob_3.put("CTX_PGS_ODS_Database",
context.CTX_PGS_ODS_Database);
parentContextMap_tRunJob_3.put("CTX_PGS_ODS_Login",
context.CTX_PGS_ODS_Login);
parentContextMap_tRunJob_3.put("CTX_PGS_ODS_Password",
context.CTX_PGS_ODS_Password);
parentContextMap_tRunJob_3.put("CTX_PGS_ODS_Port",
context.CTX_PGS_ODS_Port);
parentContextMap_tRunJob_3.put("CTX_PGS_ODS_Schema",
context.CTX_PGS_ODS_Schema);
parentContextMap_tRunJob_3.put("CTX_PGS_ODS_Server",
context.CTX_PGS_ODS_Server);
parentContextMap_tRunJob_3.put("CTX_PRM_ArchiveLogs",
context.CTX_PRM_ArchiveLogs);
parentContextMap_tRunJob_3.put("CTX_PRM_CEV",
context.CTX_PRM_CEV);
parentContextMap_tRunJob_3.put("CTX_PRM_CodeRetour",
context.CTX_PRM_CodeRetour);
parentContextMap_tRunJob_3.put("CTX_PRM_DateDebut",
context.CTX_PRM_DateDebut);
parentContextMap_tRunJob_3.put("CTX_PRM_DateFin",
context.CTX_PRM_DateFin);
parentContextMap_tRunJob_3.put("CTX_PRM_Edeal_ASSO_FIL",
context.CTX_PRM_Edeal_ASSO_FIL);
parentContextMap_tRunJob_3.put("CTX_PRM_Edeal_ASSO_LIS",
context.CTX_PRM_Edeal_ASSO_LIS);
parentContextMap_tRunJob_3.put("CTX_PRM_EdealBascounter",
context.CTX_PRM_EdealBascounter);
parentContextMap_tRunJob_3.put("CTX_PRM_EdealBasid",
context.CTX_PRM_EdealBasid);
parentContextMap_tRunJob_3.put("CTX_PRM_EdealCodeActor",
context.CTX_PRM_EdealCodeActor);
parentContextMap_tRunJob_3.put("CTX_PRM_EdealIdActor",
context.CTX_PRM_EdealIdActor);
parentContextMap_tRunJob_3.put("CTX_PRM_EdealLicence",
context.CTX_PRM_EdealLicence);
parentContextMap_tRunJob_3.put("CTX_PRM_Environnement",
context.CTX_PRM_Environnement);
parentContextMap_tRunJob_3.put("CTX_PRM_EQUALITING",
context.CTX_PRM_EQUALITING);
parentContextMap_tRunJob_3.put("CTX_PRM_Exec_RES",
context.CTX_PRM_Exec_RES);
parentContextMap_tRunJob_3.put("CTX_PRM_FichierConfiguration",
context.CTX_PRM_FichierConfiguration);
parentContextMap_tRunJob_3.put("CTX_PRM_FichierLog",
context.CTX_PRM_FichierLog);
parentContextMap_tRunJob_3.put("CTX_PRM_FichierLogs",
context.CTX_PRM_FichierLogs);
parentContextMap_tRunJob_3.put("CTX_PRM_FichierMetrique",
context.CTX_PRM_FichierMetrique);
parentContextMap_tRunJob_3.put("CTX_PRM_FichierStatistique",
context.CTX_PRM_FichierStatistique);
parentContextMap_tRunJob_3.put("CTX_PRM_fileEncodage",
context.CTX_PRM_fileEncodage);
parentContextMap_tRunJob_3.put("CTX_PRM_fileName",
context.CTX_PRM_fileName);
parentContextMap_tRunJob_3.put("CTX_PRM_IdAudit",
context.CTX_PRM_IdAudit);
parentContextMap_tRunJob_3.put("CTX_PRM_IdEtape",
context.CTX_PRM_IdEtape);
parentContextMap_tRunJob_3.put("CTX_PRM_IdEtapeDebut",
context.CTX_PRM_IdEtapeDebut);
parentContextMap_tRunJob_3.put("CTX_PRM_IdEtapeFin",
context.CTX_PRM_IdEtapeFin);
parentContextMap_tRunJob_3.put(
"CTX_PRM_listOfTableToDisableConstraints",
context.CTX_PRM_listOfTableToDisableConstraints);
parentContextMap_tRunJob_3.put("CTX_PRM_LKPCursorSize",
context.CTX_PRM_LKPCursorSize);
parentContextMap_tRunJob_3.put("CTX_PRM_NomAppliSource",
context.CTX_PRM_NomAppliSource);
parentContextMap_tRunJob_3.put("CTX_PRM_NomSource",
context.CTX_PRM_NomSource);
parentContextMap_tRunJob_3.put("CTX_PRM_OLAKALA_ERROR",
context.CTX_PRM_OLAKALA_ERROR);
parentContextMap_tRunJob_3.put("CTX_PRM_OLAKALA_FINISHED",
context.CTX_PRM_OLAKALA_FINISHED);
parentContextMap_tRunJob_3.put("CTX_PRM_OLAKALA_PROGRESS",
context.CTX_PRM_OLAKALA_PROGRESS);
parentContextMap_tRunJob_3.put(
"CTX_PRM_ProfondeurRetentionLogs",
context.CTX_PRM_ProfondeurRetentionLogs);
parentContextMap_tRunJob_3.put(
"CTX_PRM_ProfondeurRetentionRejets",
context.CTX_PRM_ProfondeurRetentionRejets);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireConf",
context.CTX_PRM_RepertoireConf);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireData",
context.CTX_PRM_RepertoireData);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireDataArchive",
context.CTX_PRM_RepertoireDataArchive);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireDataIn",
context.CTX_PRM_RepertoireDataIn);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireDataOut",
context.CTX_PRM_RepertoireDataOut);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireLog",
context.CTX_PRM_RepertoireLog);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireRacine",
context.CTX_PRM_RepertoireRacine);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireSql",
context.CTX_PRM_RepertoireSql);
parentContextMap_tRunJob_3.put("CTX_PRM_RepertoireTmp",
context.CTX_PRM_RepertoireTmp);
parentContextMap_tRunJob_3.put("CTX_PRM_RESERVIT",
context.CTX_PRM_RESERVIT);
parentContextMap_tRunJob_3.put("CTX_PRM_SRCCursorSize",
context.CTX_PRM_SRCCursorSize);
parentContextMap_tRunJob_3.put("CTX_PRM_TalendRootPackage",
context.CTX_PRM_TalendRootPackage);
parentContextMap_tRunJob_3.put("CTX_PRM_TalendRootPid",
context.CTX_PRM_TalendRootPid);
parentContextMap_tRunJob_3.put("SharedMap_EXE_RES",
context.SharedMap_EXE_RES);
Object obj_tRunJob_3 = null;
obj_tRunJob_3 = globalMap.get("SharedMap_EXE_RES_ODS");
paraList_tRunJob_3.add("--context_param SharedMap_EXE_RES_ODS="
+ RuntimeUtils.tRunJobConvertContext(obj_tRunJob_3));
parentContextMap_tRunJob_3.put("SharedMap_EXE_RES_ODS",
obj_tRunJob_3);
fil_galaxie.galaxie__mrj__alimentation__ods_0_1.GALAXIE__MRJ__ALIMENTATION__ODS childJob_tRunJob_3 = new fil_galaxie.galaxie__mrj__alimentation__ods_0_1.GALAXIE__MRJ__ALIMENTATION__ODS();
// pass DataSources
java.util.Map talendDataSources_tRunJob_3 = (java.util.Map) globalMap
.get(KEY_DB_DATASOURCES);
if (null != talendDataSources_tRunJob_3) {
java.util.Map dataSources_tRunJob_3 = new java.util.HashMap();
for (java.util.Map.Entry talendDataSourceEntry_tRunJob_3 : talendDataSources_tRunJob_3
.entrySet()) {
dataSources_tRunJob_3.put(
talendDataSourceEntry_tRunJob_3.getKey(),
talendDataSourceEntry_tRunJob_3.getValue()
.getRawDataSource());
}
childJob_tRunJob_3.setDataSources(dataSources_tRunJob_3);
}
childJob_tRunJob_3.parentContextMap = parentContextMap_tRunJob_3;
String[][] childReturn_tRunJob_3 = childJob_tRunJob_3
.runJob((String[]) paraList_tRunJob_3
.toArray(new String[paraList_tRunJob_3.size()]));
errorCode = childJob_tRunJob_3.getErrorCode();
if (childJob_tRunJob_3.getErrorCode() == null) {
globalMap.put(
"tRunJob_3_CHILD_RETURN_CODE",
childJob_tRunJob_3.getStatus() != null
&& ("failure").equals(childJob_tRunJob_3
.getStatus()) ? 1 : 0);
} else {
globalMap.put("tRunJob_3_CHILD_RETURN_CODE",
childJob_tRunJob_3.getErrorCode());
}
if (childJob_tRunJob_3.getExceptionStackTrace() != null) {
globalMap.put("tRunJob_3_CHILD_EXCEPTION_STACKTRACE",
childJob_tRunJob_3.getExceptionStackTrace());
}
if (childJob_tRunJob_3.getErrorCode() != null
|| ("failure").equals(childJob_tRunJob_3.getStatus())) {
throw new RuntimeException("Child job running failed");
}
tos_count_tRunJob_3++;
/**
* [tRunJob_3 main ] stop
*/
/**
* [tRunJob_3 end ] start
*/
currentComponent = "tRunJob_3";
ok_Hash.put("tRunJob_3", true);
end_Hash.put("tRunJob_3", System.currentTimeMillis());
tJava_3Process(globalMap);
/**
* [tRunJob_3 end ] stop
*/
}// end the resume
if (resumeEntryMethodName == null || globalResumeTicket) {
resumeUtil.addLog("CHECKPOINT",
"CONNECTION:SUBJOB_OK:tRunJob_3:OnSubjobOk", "", Thread
.currentThread().getId() + "", "", "", "", "",
"");
}
tRunJob_4Process(globalMap);
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tRunJob_3 finally ] start
*/
currentComponent = "tRunJob_3";
/**
* [tRunJob_3 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tRunJob_3_SUBPROCESS_STATE", 1);
}
public void tRunJob_4Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tRunJob_4_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [tRunJob_4 begin ] start
*/
ok_Hash.put("tRunJob_4", false);
start_Hash.put("tRunJob_4", System.currentTimeMillis());
currentComponent = "tRunJob_4";
int tos_count_tRunJob_4 = 0;
/**
* [tRunJob_4 begin ] stop
*/
/**
* [tRunJob_4 main ] start
*/
currentComponent = "tRunJob_4";
java.util.List paraList_tRunJob_4 = new java.util.ArrayList();
paraList_tRunJob_4.add("--father_pid=" + pid);
paraList_tRunJob_4.add("--root_pid=" + rootPid);
paraList_tRunJob_4.add("--father_node=tRunJob_4");
paraList_tRunJob_4.add("--context=RE7");
// for feature:10589
paraList_tRunJob_4.add("--stat_port=" + portStats);
if (resuming_logs_dir_path != null) {
paraList_tRunJob_4.add("--resuming_logs_dir_path="
+ resuming_logs_dir_path);
}
String childResumePath_tRunJob_4 = ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path);
String tRunJobName_tRunJob_4 = ResumeUtil
.getRighttRunJob(resuming_checkpoint_path);
if ("tRunJob_4".equals(tRunJobName_tRunJob_4)
&& childResumePath_tRunJob_4 != null) {
paraList_tRunJob_4
.add("--resuming_checkpoint_path="
+ ResumeUtil
.getChildJobCheckPointPath(resuming_checkpoint_path));
}
paraList_tRunJob_4.add("--parent_part_launcher=JOB:" + jobName
+ "/NODE:tRunJob_4");
java.util.Map parentContextMap_tRunJob_4 = new java.util.HashMap();
context.synchronizeContext();
java.util.Enumeration> propertyNames_tRunJob_4 = context
.propertyNames();
while (propertyNames_tRunJob_4.hasMoreElements()) {
String key_tRunJob_4 = (String) propertyNames_tRunJob_4
.nextElement();
Object value_tRunJob_4 = (Object) context
.get(key_tRunJob_4);
paraList_tRunJob_4.add("--context_param " + key_tRunJob_4
+ "=" + value_tRunJob_4);
}
parentContextMap_tRunJob_4.put("CTX_EMAIL_Destinataire",
context.CTX_EMAIL_Destinataire);
parentContextMap_tRunJob_4.put("CTX_EMAIL_Destinataire_copie",
context.CTX_EMAIL_Destinataire_copie);
parentContextMap_tRunJob_4.put(
"CTX_EMAIL_Destinataire_copie_cachee",
context.CTX_EMAIL_Destinataire_copie_cachee);
parentContextMap_tRunJob_4.put("CTX_EMAIL_Emetteur",
context.CTX_EMAIL_Emetteur);
parentContextMap_tRunJob_4.put("CTX_EMAIL_Envoi_active",
context.CTX_EMAIL_Envoi_active);
parentContextMap_tRunJob_4.put("CTX_EMAIL_Login",
context.CTX_EMAIL_Login);
parentContextMap_tRunJob_4.put("CTX_EMAIL_Password",
context.CTX_EMAIL_Password);
parentContextMap_tRunJob_4.put("CTX_EMAIL_Serveur_port",
context.CTX_EMAIL_Serveur_port);
parentContextMap_tRunJob_4.put("CTX_EMAIL_Serveur_SMTP",
context.CTX_EMAIL_Serveur_SMTP);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTAFIL_Database",
context.CTX_PGS_COMPTAFIL_Database);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTAFIL_Login",
context.CTX_PGS_COMPTAFIL_Login);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTAFIL_Password",
context.CTX_PGS_COMPTAFIL_Password);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTAFIL_Port",
context.CTX_PGS_COMPTAFIL_Port);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTAFIL_Schema",
context.CTX_PGS_COMPTAFIL_Schema);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTAFIL_Server",
context.CTX_PGS_COMPTAFIL_Server);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTALIS_Database",
context.CTX_PGS_COMPTALIS_Database);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTALIS_Login",
context.CTX_PGS_COMPTALIS_Login);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTALIS_Password",
context.CTX_PGS_COMPTALIS_Password);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTALIS_Port",
context.CTX_PGS_COMPTALIS_Port);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTALIS_Schema",
context.CTX_PGS_COMPTALIS_Schema);
parentContextMap_tRunJob_4.put("CTX_PGS_COMPTALIS_Server",
context.CTX_PGS_COMPTALIS_Server);
parentContextMap_tRunJob_4.put("CTX_PGS_CRM_CommitInterval",
context.CTX_PGS_CRM_CommitInterval);
parentContextMap_tRunJob_4.put("CTX_PGS_CRM_Database",
context.CTX_PGS_CRM_Database);
parentContextMap_tRunJob_4.put("CTX_PGS_CRM_Login",
context.CTX_PGS_CRM_Login);
parentContextMap_tRunJob_4.put("CTX_PGS_CRM_Password",
context.CTX_PGS_CRM_Password);
parentContextMap_tRunJob_4.put("CTX_PGS_CRM_Port",
context.CTX_PGS_CRM_Port);
parentContextMap_tRunJob_4.put("CTX_PGS_CRM_Schema",
context.CTX_PGS_CRM_Schema);
parentContextMap_tRunJob_4.put("CTX_PGS_CRM_Server",
context.CTX_PGS_CRM_Server);
parentContextMap_tRunJob_4.put("CTX_PGS_DSA_CommitInterval",
context.CTX_PGS_DSA_CommitInterval);
parentContextMap_tRunJob_4.put("CTX_PGS_DSA_Database",
context.CTX_PGS_DSA_Database);
parentContextMap_tRunJob_4.put("CTX_PGS_DSA_Login",
context.CTX_PGS_DSA_Login);
parentContextMap_tRunJob_4.put("CTX_PGS_DSA_Password",
context.CTX_PGS_DSA_Password);
parentContextMap_tRunJob_4.put("CTX_PGS_DSA_Port",
context.CTX_PGS_DSA_Port);
parentContextMap_tRunJob_4.put("CTX_PGS_DSA_Schema",
context.CTX_PGS_DSA_Schema);
parentContextMap_tRunJob_4.put("CTX_PGS_DSA_Server",
context.CTX_PGS_DSA_Server);
parentContextMap_tRunJob_4.put("CTX_PGS_ODS_CommitInterval",
context.CTX_PGS_ODS_CommitInterval);
parentContextMap_tRunJob_4.put("CTX_PGS_ODS_Database",
context.CTX_PGS_ODS_Database);
parentContextMap_tRunJob_4.put("CTX_PGS_ODS_Login",
context.CTX_PGS_ODS_Login);
parentContextMap_tRunJob_4.put("CTX_PGS_ODS_Password",
context.CTX_PGS_ODS_Password);
parentContextMap_tRunJob_4.put("CTX_PGS_ODS_Port",
context.CTX_PGS_ODS_Port);
parentContextMap_tRunJob_4.put("CTX_PGS_ODS_Schema",
context.CTX_PGS_ODS_Schema);
parentContextMap_tRunJob_4.put("CTX_PGS_ODS_Server",
context.CTX_PGS_ODS_Server);
parentContextMap_tRunJob_4.put("CTX_PRM_ArchiveLogs",
context.CTX_PRM_ArchiveLogs);
parentContextMap_tRunJob_4.put("CTX_PRM_CEV",
context.CTX_PRM_CEV);
parentContextMap_tRunJob_4.put("CTX_PRM_CodeRetour",
context.CTX_PRM_CodeRetour);
parentContextMap_tRunJob_4.put("CTX_PRM_DateDebut",
context.CTX_PRM_DateDebut);
parentContextMap_tRunJob_4.put("CTX_PRM_DateFin",
context.CTX_PRM_DateFin);
parentContextMap_tRunJob_4.put("CTX_PRM_Edeal_ASSO_FIL",
context.CTX_PRM_Edeal_ASSO_FIL);
parentContextMap_tRunJob_4.put("CTX_PRM_Edeal_ASSO_LIS",
context.CTX_PRM_Edeal_ASSO_LIS);
parentContextMap_tRunJob_4.put("CTX_PRM_EdealBascounter",
context.CTX_PRM_EdealBascounter);
parentContextMap_tRunJob_4.put("CTX_PRM_EdealBasid",
context.CTX_PRM_EdealBasid);
parentContextMap_tRunJob_4.put("CTX_PRM_EdealCodeActor",
context.CTX_PRM_EdealCodeActor);
parentContextMap_tRunJob_4.put("CTX_PRM_EdealIdActor",
context.CTX_PRM_EdealIdActor);
parentContextMap_tRunJob_4.put("CTX_PRM_EdealLicence",
context.CTX_PRM_EdealLicence);
parentContextMap_tRunJob_4.put("CTX_PRM_Environnement",
context.CTX_PRM_Environnement);
parentContextMap_tRunJob_4.put("CTX_PRM_EQUALITING",
context.CTX_PRM_EQUALITING);
parentContextMap_tRunJob_4.put("CTX_PRM_Exec_RES",
context.CTX_PRM_Exec_RES);
parentContextMap_tRunJob_4.put("CTX_PRM_FichierConfiguration",
context.CTX_PRM_FichierConfiguration);
parentContextMap_tRunJob_4.put("CTX_PRM_FichierLog",
context.CTX_PRM_FichierLog);
parentContextMap_tRunJob_4.put("CTX_PRM_FichierLogs",
context.CTX_PRM_FichierLogs);
parentContextMap_tRunJob_4.put("CTX_PRM_FichierMetrique",
context.CTX_PRM_FichierMetrique);
parentContextMap_tRunJob_4.put("CTX_PRM_FichierStatistique",
context.CTX_PRM_FichierStatistique);
parentContextMap_tRunJob_4.put("CTX_PRM_fileEncodage",
context.CTX_PRM_fileEncodage);
parentContextMap_tRunJob_4.put("CTX_PRM_fileName",
context.CTX_PRM_fileName);
parentContextMap_tRunJob_4.put("CTX_PRM_IdAudit",
context.CTX_PRM_IdAudit);
parentContextMap_tRunJob_4.put("CTX_PRM_IdEtape",
context.CTX_PRM_IdEtape);
parentContextMap_tRunJob_4.put("CTX_PRM_IdEtapeDebut",
context.CTX_PRM_IdEtapeDebut);
parentContextMap_tRunJob_4.put("CTX_PRM_IdEtapeFin",
context.CTX_PRM_IdEtapeFin);
parentContextMap_tRunJob_4.put(
"CTX_PRM_listOfTableToDisableConstraints",
context.CTX_PRM_listOfTableToDisableConstraints);
parentContextMap_tRunJob_4.put("CTX_PRM_LKPCursorSize",
context.CTX_PRM_LKPCursorSize);
parentContextMap_tRunJob_4.put("CTX_PRM_NomAppliSource",
context.CTX_PRM_NomAppliSource);
parentContextMap_tRunJob_4.put("CTX_PRM_NomSource",
context.CTX_PRM_NomSource);
parentContextMap_tRunJob_4.put("CTX_PRM_OLAKALA_ERROR",
context.CTX_PRM_OLAKALA_ERROR);
parentContextMap_tRunJob_4.put("CTX_PRM_OLAKALA_FINISHED",
context.CTX_PRM_OLAKALA_FINISHED);
parentContextMap_tRunJob_4.put("CTX_PRM_OLAKALA_PROGRESS",
context.CTX_PRM_OLAKALA_PROGRESS);
parentContextMap_tRunJob_4.put(
"CTX_PRM_ProfondeurRetentionLogs",
context.CTX_PRM_ProfondeurRetentionLogs);
parentContextMap_tRunJob_4.put(
"CTX_PRM_ProfondeurRetentionRejets",
context.CTX_PRM_ProfondeurRetentionRejets);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireConf",
context.CTX_PRM_RepertoireConf);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireData",
context.CTX_PRM_RepertoireData);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireDataArchive",
context.CTX_PRM_RepertoireDataArchive);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireDataIn",
context.CTX_PRM_RepertoireDataIn);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireDataOut",
context.CTX_PRM_RepertoireDataOut);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireLog",
context.CTX_PRM_RepertoireLog);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireRacine",
context.CTX_PRM_RepertoireRacine);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireSql",
context.CTX_PRM_RepertoireSql);
parentContextMap_tRunJob_4.put("CTX_PRM_RepertoireTmp",
context.CTX_PRM_RepertoireTmp);
parentContextMap_tRunJob_4.put("CTX_PRM_RESERVIT",
context.CTX_PRM_RESERVIT);
parentContextMap_tRunJob_4.put("CTX_PRM_SRCCursorSize",
context.CTX_PRM_SRCCursorSize);
parentContextMap_tRunJob_4.put("CTX_PRM_TalendRootPackage",
context.CTX_PRM_TalendRootPackage);
parentContextMap_tRunJob_4.put("CTX_PRM_TalendRootPid",
context.CTX_PRM_TalendRootPid);
parentContextMap_tRunJob_4.put("SharedMap_EXE_RES",
context.SharedMap_EXE_RES);
Object obj_tRunJob_4 = null;
obj_tRunJob_4 = globalMap.get("SharedMap_EXE_RES_CRM");
paraList_tRunJob_4.add("--context_param SharedMap_EXE_RES_CRM="
+ RuntimeUtils.tRunJobConvertContext(obj_tRunJob_4));
parentContextMap_tRunJob_4.put("SharedMap_EXE_RES_CRM",
obj_tRunJob_4);
fil_galaxie.galaxie__mrj__alimentation__crm_0_1.GALAXIE__MRJ__ALIMENTATION__CRM childJob_tRunJob_4 = new fil_galaxie.galaxie__mrj__alimentation__crm_0_1.GALAXIE__MRJ__ALIMENTATION__CRM();
// pass DataSources
java.util.Map talendDataSources_tRunJob_4 = (java.util.Map) globalMap
.get(KEY_DB_DATASOURCES);
if (null != talendDataSources_tRunJob_4) {
java.util.Map dataSources_tRunJob_4 = new java.util.HashMap();
for (java.util.Map.Entry talendDataSourceEntry_tRunJob_4 : talendDataSources_tRunJob_4
.entrySet()) {
dataSources_tRunJob_4.put(
talendDataSourceEntry_tRunJob_4.getKey(),
talendDataSourceEntry_tRunJob_4.getValue()
.getRawDataSource());
}
childJob_tRunJob_4.setDataSources(dataSources_tRunJob_4);
}
childJob_tRunJob_4.parentContextMap = parentContextMap_tRunJob_4;
String[][] childReturn_tRunJob_4 = childJob_tRunJob_4
.runJob((String[]) paraList_tRunJob_4
.toArray(new String[paraList_tRunJob_4.size()]));
errorCode = childJob_tRunJob_4.getErrorCode();
if (childJob_tRunJob_4.getErrorCode() == null) {
globalMap.put(
"tRunJob_4_CHILD_RETURN_CODE",
childJob_tRunJob_4.getStatus() != null
&& ("failure").equals(childJob_tRunJob_4
.getStatus()) ? 1 : 0);
} else {
globalMap.put("tRunJob_4_CHILD_RETURN_CODE",
childJob_tRunJob_4.getErrorCode());
}
if (childJob_tRunJob_4.getExceptionStackTrace() != null) {
globalMap.put("tRunJob_4_CHILD_EXCEPTION_STACKTRACE",
childJob_tRunJob_4.getExceptionStackTrace());
}
if (childJob_tRunJob_4.getErrorCode() != null
|| ("failure").equals(childJob_tRunJob_4.getStatus())) {
throw new RuntimeException("Child job running failed");
}
tos_count_tRunJob_4++;
/**
* [tRunJob_4 main ] stop
*/
/**
* [tRunJob_4 end ] start
*/
currentComponent = "tRunJob_4";
ok_Hash.put("tRunJob_4", true);
end_Hash.put("tRunJob_4", System.currentTimeMillis());
tJava_4Process(globalMap);
/**
* [tRunJob_4 end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tRunJob_4 finally ] start
*/
currentComponent = "tRunJob_4";
/**
* [tRunJob_4 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tRunJob_4_SUBPROCESS_STATE", 1);
}
public void tJava_4Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tJava_4_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [tJava_4 begin ] start
*/
ok_Hash.put("tJava_4", false);
start_Hash.put("tJava_4", System.currentTimeMillis());
currentComponent = "tJava_4";
int tos_count_tJava_4 = 0;
String cev_clients_ods = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_ODS")).get("CEV_CLIENTS");
String cev_clients_crm = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_CRM")).get("CEV_CLIENTS");
((java.util.Map) context.SharedMap_EXE_RES).put("CEV_CLIENTS",
"OK");
if (cev_clients_ods.equals("KO")
|| cev_clients_crm.equals("KO")) {
((java.util.Map) context.SharedMap_EXE_RES).put(
"CEV_CLIENTS", "KO");
}
String cev_cheque_ods = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_ODS")).get("CEV_CHEQUE_FID");
String cev_cheque_crm = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_CRM")).get("CEV_CHEQUE_FID");
((java.util.Map) context.SharedMap_EXE_RES).put(
"CEV_CHEQUE_FID", "OK");
if (cev_cheque_ods.equals("KO") || cev_cheque_crm.equals("KO")) {
((java.util.Map) context.SharedMap_EXE_RES).put(
"CEV_CHEQUE_FID", "KO");
}
String cev_transaction_ods = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_ODS"))
.get("CEV_TRANSACTION_FID");
String cev_transaction_crm = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_CRM"))
.get("CEV_TRANSACTION_FID");
((java.util.Map) context.SharedMap_EXE_RES).put(
"CEV_TRANSACTION_FID", "OK");
if (cev_transaction_ods.equals("KO")
|| cev_transaction_crm.equals("KO")) {
((java.util.Map) context.SharedMap_EXE_RES).put(
"CEV_TRANSACTION_FID", "KO");
}
String reservit_clients_ods = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_ODS")).get("RESERVIT_CLIENTS");
String reservit_clients__crm = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_CRM")).get("RESERVIT_CLIENTS");
((java.util.Map) context.SharedMap_EXE_RES).put(
"RESERVIT_CLIENTS", "OK");
if (reservit_clients_ods.equals("KO")
|| reservit_clients__crm.equals("KO")) {
((java.util.Map) context.SharedMap_EXE_RES).put(
"RESERVIT_CLIENTS", "KO");
}
String reservit_resa_ods = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_ODS")).get("RESERVIT_RESA");
String reservit_resa_crm = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_CRM")).get("RESERVIT_RESA");
((java.util.Map) context.SharedMap_EXE_RES).put(
"RESERVIT_RESA", "OK");
if (reservit_resa_ods.equals("KO")
|| reservit_resa_crm.equals("KO")) {
((java.util.Map) context.SharedMap_EXE_RES).put(
"RESERVIT_RESA", "KO");
}
String mkg_olakala_ods = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_ODS")).get("MKG_OLAKALA");
String mkg_olakala_crm = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_CRM")).get("MKG_OLAKALA");
((java.util.Map) context.SharedMap_EXE_RES).put("MKG_OLAKALA",
"OK");
if (mkg_olakala_ods.equals("KO")
|| mkg_olakala_crm.equals("KO")) {
((java.util.Map) context.SharedMap_EXE_RES).put(
"MKG_OLAKALA", "KO");
}
String reservit_dossier_ods = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_ODS")).get("RESERVIT_DOSSIER");
String reservit_dossier_crm = (String) ((java.util.Map) globalMap
.get("SharedMap_EXE_RES_CRM")).get("RESERVIT_DOSSIER");
((java.util.Map) context.SharedMap_EXE_RES).put(
"RESERVIT_DOSSIER", "OK");
if (reservit_dossier_ods.equals("KO")
|| reservit_dossier_crm.equals("KO")) {
((java.util.Map) context.SharedMap_EXE_RES).put(
"RESERVIT_DOSSIER", "KO");
}
/**
* [tJava_4 begin ] stop
*/
/**
* [tJava_4 main ] start
*/
currentComponent = "tJava_4";
tos_count_tJava_4++;
/**
* [tJava_4 main ] stop
*/
/**
* [tJava_4 end ] start
*/
currentComponent = "tJava_4";
ok_Hash.put("tJava_4", true);
end_Hash.put("tJava_4", System.currentTimeMillis());
/**
* [tJava_4 end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tJava_4 finally ] start
*/
currentComponent = "tJava_4";
/**
* [tJava_4 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tJava_4_SUBPROCESS_STATE", 1);
}
public void tJava_3Process(final java.util.Map globalMap)
throws TalendException {
globalMap.put("tJava_3_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [tJava_3 begin ] start
*/
ok_Hash.put("tJava_3", false);
start_Hash.put("tJava_3", System.currentTimeMillis());
currentComponent = "tJava_3";
int tos_count_tJava_3 = 0;
/**
* [tJava_3 begin ] stop
*/
/**
* [tJava_3 main ] start
*/
currentComponent = "tJava_3";
tos_count_tJava_3++;
/**
* [tJava_3 main ] stop
*/
/**
* [tJava_3 end ] start
*/
currentComponent = "tJava_3";
ok_Hash.put("tJava_3", true);
end_Hash.put("tJava_3", System.currentTimeMillis());
/**
* [tJava_3 end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [tJava_3 finally ] start
*/
currentComponent = "tJava_3";
/**
* [tJava_3 finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("tJava_3_SUBPROCESS_STATE", 1);
}
public void connectionStatsLogs_CommitProcess(
final java.util.Map globalMap)
throws TalendException {
globalMap.put("connectionStatsLogs_Commit_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [connectionStatsLogs_Commit begin ] start
*/
ok_Hash.put("connectionStatsLogs_Commit", false);
start_Hash.put("connectionStatsLogs_Commit",
System.currentTimeMillis());
currentComponent = "connectionStatsLogs_Commit";
int tos_count_connectionStatsLogs_Commit = 0;
/**
* [connectionStatsLogs_Commit begin ] stop
*/
/**
* [connectionStatsLogs_Commit main ] start
*/
currentComponent = "connectionStatsLogs_Commit";
java.sql.Connection conn_connectionStatsLogs_Commit = (java.sql.Connection) globalMap
.get("conn_connectionStatsLogs");
if (conn_connectionStatsLogs_Commit != null
&& !conn_connectionStatsLogs_Commit.isClosed()) {
conn_connectionStatsLogs_Commit.commit();
}
tos_count_connectionStatsLogs_Commit++;
/**
* [connectionStatsLogs_Commit main ] stop
*/
/**
* [connectionStatsLogs_Commit end ] start
*/
currentComponent = "connectionStatsLogs_Commit";
ok_Hash.put("connectionStatsLogs_Commit", true);
end_Hash.put("connectionStatsLogs_Commit",
System.currentTimeMillis());
/**
* [connectionStatsLogs_Commit end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [connectionStatsLogs_Commit finally ] start
*/
currentComponent = "connectionStatsLogs_Commit";
/**
* [connectionStatsLogs_Commit finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("connectionStatsLogs_Commit_SUBPROCESS_STATE", 1);
}
public void connectionStatsLogsProcess(
final java.util.Map globalMap)
throws TalendException {
globalMap.put("connectionStatsLogs_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
/**
* [connectionStatsLogs begin ] start
*/
ok_Hash.put("connectionStatsLogs", false);
start_Hash.put("connectionStatsLogs",
System.currentTimeMillis());
currentComponent = "connectionStatsLogs";
int tos_count_connectionStatsLogs = 0;
String url_connectionStatsLogs = "jdbc:postgresql://"
+ context.CTX_PGS_CRM_Server + ":"
+ context.CTX_PGS_CRM_Port + "/"
+ context.CTX_PGS_CRM_Database;
String dbUser_connectionStatsLogs = context.CTX_PGS_CRM_Login;
final String decryptedPassword_connectionStatsLogs = context.CTX_PGS_CRM_Password;
String dbPwd_connectionStatsLogs = decryptedPassword_connectionStatsLogs;
java.sql.Connection conn_connectionStatsLogs = null;
String sharedConnectionName_connectionStatsLogs = "StatsAndLog_Shared_Connection";
conn_connectionStatsLogs = SharedDBConnection.getDBConnection(
"org.postgresql.Driver", url_connectionStatsLogs,
dbUser_connectionStatsLogs, dbPwd_connectionStatsLogs,
sharedConnectionName_connectionStatsLogs);
if (null != conn_connectionStatsLogs) {
conn_connectionStatsLogs.setAutoCommit(false);
}
globalMap.put("schema_" + "connectionStatsLogs",
context.CTX_PGS_CRM_Schema);
globalMap.put("conn_" + "connectionStatsLogs",
conn_connectionStatsLogs);
/**
* [connectionStatsLogs begin ] stop
*/
/**
* [connectionStatsLogs main ] start
*/
currentComponent = "connectionStatsLogs";
tos_count_connectionStatsLogs++;
/**
* [connectionStatsLogs main ] stop
*/
/**
* [connectionStatsLogs end ] start
*/
currentComponent = "connectionStatsLogs";
ok_Hash.put("connectionStatsLogs", true);
end_Hash.put("connectionStatsLogs", System.currentTimeMillis());
/**
* [connectionStatsLogs end ] stop
*/
}// end the resume
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [connectionStatsLogs finally ] start
*/
currentComponent = "connectionStatsLogs";
/**
* [connectionStatsLogs finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("connectionStatsLogs_SUBPROCESS_STATE", 1);
}
public static class row_talendLogs_FILEStruct implements
routines.system.IPersistableRow {
final static byte[] commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
static byte[] commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
public java.util.Date moment;
public java.util.Date getMoment() {
return this.moment;
}
public String pid;
public String getPid() {
return this.pid;
}
public String root_pid;
public String getRoot_pid() {
return this.root_pid;
}
public String father_pid;
public String getFather_pid() {
return this.father_pid;
}
public String project;
public String getProject() {
return this.project;
}
public String job;
public String getJob() {
return this.job;
}
public String context;
public String getContext() {
return this.context;
}
public Integer priority;
public Integer getPriority() {
return this.priority;
}
public String type;
public String getType() {
return this.type;
}
public String origin;
public String getOrigin() {
return this.origin;
}
public String message;
public String getMessage() {
return this.message;
}
public Integer code;
public Integer getCode() {
return this.code;
}
private java.util.Date readDate(ObjectInputStream dis)
throws IOException {
java.util.Date dateReturn = null;
int length = 0;
length = dis.readByte();
if (length == -1) {
dateReturn = null;
} else {
dateReturn = new Date(dis.readLong());
}
return dateReturn;
}
private void writeDate(java.util.Date date1, ObjectOutputStream dos)
throws IOException {
if (date1 == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(date1.getTime());
}
}
private String readString(ObjectInputStream dis) throws IOException {
String strReturn = null;
int length = 0;
length = dis.readInt();
if (length == -1) {
strReturn = null;
} else {
if (length > commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length) {
if (length < 1024
&& commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length == 0) {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[1024];
} else {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[2 * length];
}
}
dis.readFully(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length);
strReturn = new String(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length, utf8Charset);
}
return strReturn;
}
private void writeString(String str, ObjectOutputStream dos)
throws IOException {
if (str == null) {
dos.writeInt(-1);
} else {
byte[] byteArray = str.getBytes(utf8Charset);
dos.writeInt(byteArray.length);
dos.write(byteArray);
}
}
private Integer readInteger(ObjectInputStream dis) throws IOException {
Integer intReturn;
int length = 0;
length = dis.readByte();
if (length == -1) {
intReturn = null;
} else {
intReturn = dis.readInt();
}
return intReturn;
}
private void writeInteger(Integer intNum, ObjectOutputStream dos)
throws IOException {
if (intNum == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeInt(intNum);
}
}
public void readData(ObjectInputStream dis) {
synchronized (commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION) {
try {
int length = 0;
this.moment = readDate(dis);
this.pid = readString(dis);
this.root_pid = readString(dis);
this.father_pid = readString(dis);
this.project = readString(dis);
this.job = readString(dis);
this.context = readString(dis);
this.priority = readInteger(dis);
this.type = readString(dis);
this.origin = readString(dis);
this.message = readString(dis);
this.code = readInteger(dis);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
public void writeData(ObjectOutputStream dos) {
try {
// java.util.Date
writeDate(this.moment, dos);
// String
writeString(this.pid, dos);
// String
writeString(this.root_pid, dos);
// String
writeString(this.father_pid, dos);
// String
writeString(this.project, dos);
// String
writeString(this.job, dos);
// String
writeString(this.context, dos);
// Integer
writeInteger(this.priority, dos);
// String
writeString(this.type, dos);
// String
writeString(this.origin, dos);
// String
writeString(this.message, dos);
// Integer
writeInteger(this.code, dos);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("[");
sb.append("moment=" + String.valueOf(moment));
sb.append(",pid=" + pid);
sb.append(",root_pid=" + root_pid);
sb.append(",father_pid=" + father_pid);
sb.append(",project=" + project);
sb.append(",job=" + job);
sb.append(",context=" + context);
sb.append(",priority=" + String.valueOf(priority));
sb.append(",type=" + type);
sb.append(",origin=" + origin);
sb.append(",message=" + message);
sb.append(",code=" + String.valueOf(code));
sb.append("]");
return sb.toString();
}
/**
* Compare keys
*/
public int compareTo(row_talendLogs_FILEStruct other) {
int returnValue = -1;
return returnValue;
}
private int checkNullsAndCompare(Object object1, Object object2) {
int returnValue = 0;
if (object1 instanceof Comparable && object2 instanceof Comparable) {
returnValue = ((Comparable) object1).compareTo(object2);
} else if (object1 != null && object2 != null) {
returnValue = compareStrings(object1.toString(),
object2.toString());
} else if (object1 == null && object2 != null) {
returnValue = 1;
} else if (object1 != null && object2 == null) {
returnValue = -1;
} else {
returnValue = 0;
}
return returnValue;
}
private int compareStrings(String string1, String string2) {
return string1.compareTo(string2);
}
}
public static class row_talendLogs_LOGSStruct implements
routines.system.IPersistableRow {
final static byte[] commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
static byte[] commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
public java.util.Date moment;
public java.util.Date getMoment() {
return this.moment;
}
public String pid;
public String getPid() {
return this.pid;
}
public String root_pid;
public String getRoot_pid() {
return this.root_pid;
}
public String father_pid;
public String getFather_pid() {
return this.father_pid;
}
public String project;
public String getProject() {
return this.project;
}
public String job;
public String getJob() {
return this.job;
}
public String context;
public String getContext() {
return this.context;
}
public Integer priority;
public Integer getPriority() {
return this.priority;
}
public String type;
public String getType() {
return this.type;
}
public String origin;
public String getOrigin() {
return this.origin;
}
public String message;
public String getMessage() {
return this.message;
}
public Integer code;
public Integer getCode() {
return this.code;
}
private java.util.Date readDate(ObjectInputStream dis)
throws IOException {
java.util.Date dateReturn = null;
int length = 0;
length = dis.readByte();
if (length == -1) {
dateReturn = null;
} else {
dateReturn = new Date(dis.readLong());
}
return dateReturn;
}
private void writeDate(java.util.Date date1, ObjectOutputStream dos)
throws IOException {
if (date1 == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(date1.getTime());
}
}
private String readString(ObjectInputStream dis) throws IOException {
String strReturn = null;
int length = 0;
length = dis.readInt();
if (length == -1) {
strReturn = null;
} else {
if (length > commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length) {
if (length < 1024
&& commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length == 0) {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[1024];
} else {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[2 * length];
}
}
dis.readFully(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length);
strReturn = new String(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length, utf8Charset);
}
return strReturn;
}
private void writeString(String str, ObjectOutputStream dos)
throws IOException {
if (str == null) {
dos.writeInt(-1);
} else {
byte[] byteArray = str.getBytes(utf8Charset);
dos.writeInt(byteArray.length);
dos.write(byteArray);
}
}
private Integer readInteger(ObjectInputStream dis) throws IOException {
Integer intReturn;
int length = 0;
length = dis.readByte();
if (length == -1) {
intReturn = null;
} else {
intReturn = dis.readInt();
}
return intReturn;
}
private void writeInteger(Integer intNum, ObjectOutputStream dos)
throws IOException {
if (intNum == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeInt(intNum);
}
}
public void readData(ObjectInputStream dis) {
synchronized (commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION) {
try {
int length = 0;
this.moment = readDate(dis);
this.pid = readString(dis);
this.root_pid = readString(dis);
this.father_pid = readString(dis);
this.project = readString(dis);
this.job = readString(dis);
this.context = readString(dis);
this.priority = readInteger(dis);
this.type = readString(dis);
this.origin = readString(dis);
this.message = readString(dis);
this.code = readInteger(dis);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
public void writeData(ObjectOutputStream dos) {
try {
// java.util.Date
writeDate(this.moment, dos);
// String
writeString(this.pid, dos);
// String
writeString(this.root_pid, dos);
// String
writeString(this.father_pid, dos);
// String
writeString(this.project, dos);
// String
writeString(this.job, dos);
// String
writeString(this.context, dos);
// Integer
writeInteger(this.priority, dos);
// String
writeString(this.type, dos);
// String
writeString(this.origin, dos);
// String
writeString(this.message, dos);
// Integer
writeInteger(this.code, dos);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("[");
sb.append("moment=" + String.valueOf(moment));
sb.append(",pid=" + pid);
sb.append(",root_pid=" + root_pid);
sb.append(",father_pid=" + father_pid);
sb.append(",project=" + project);
sb.append(",job=" + job);
sb.append(",context=" + context);
sb.append(",priority=" + String.valueOf(priority));
sb.append(",type=" + type);
sb.append(",origin=" + origin);
sb.append(",message=" + message);
sb.append(",code=" + String.valueOf(code));
sb.append("]");
return sb.toString();
}
/**
* Compare keys
*/
public int compareTo(row_talendLogs_LOGSStruct other) {
int returnValue = -1;
return returnValue;
}
private int checkNullsAndCompare(Object object1, Object object2) {
int returnValue = 0;
if (object1 instanceof Comparable && object2 instanceof Comparable) {
returnValue = ((Comparable) object1).compareTo(object2);
} else if (object1 != null && object2 != null) {
returnValue = compareStrings(object1.toString(),
object2.toString());
} else if (object1 == null && object2 != null) {
returnValue = 1;
} else if (object1 != null && object2 == null) {
returnValue = -1;
} else {
returnValue = 0;
}
return returnValue;
}
private int compareStrings(String string1, String string2) {
return string1.compareTo(string2);
}
}
public void talendLogs_LOGSProcess(
final java.util.Map globalMap)
throws TalendException {
globalMap.put("talendLogs_LOGS_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String currentVirtualComponent = null;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
row_talendLogs_LOGSStruct row_talendLogs_LOGS = new row_talendLogs_LOGSStruct();
row_talendLogs_LOGSStruct row_talendLogs_FILE = row_talendLogs_LOGS;
/**
* [talendLogs_DB begin ] start
*/
ok_Hash.put("talendLogs_DB", false);
start_Hash.put("talendLogs_DB", System.currentTimeMillis());
currentVirtualComponent = "talendLogs_DB";
currentComponent = "talendLogs_DB";
int tos_count_talendLogs_DB = 0;
String dbschema_talendLogs_DB = null;
dbschema_talendLogs_DB = (String) globalMap.get("schema_"
+ "connectionStatsLogs");
String tableName_talendLogs_DB = null;
if (dbschema_talendLogs_DB == null
|| dbschema_talendLogs_DB.trim().length() == 0) {
tableName_talendLogs_DB = "talend_logcatcher";
} else {
tableName_talendLogs_DB = dbschema_talendLogs_DB + "\".\""
+ "talend_logcatcher";
}
int nb_line_talendLogs_DB = 0;
int nb_line_update_talendLogs_DB = 0;
int nb_line_inserted_talendLogs_DB = 0;
int nb_line_deleted_talendLogs_DB = 0;
int nb_line_rejected_talendLogs_DB = 0;
int deletedCount_talendLogs_DB = 0;
int updatedCount_talendLogs_DB = 0;
int insertedCount_talendLogs_DB = 0;
int rejectedCount_talendLogs_DB = 0;
boolean whetherReject_talendLogs_DB = false;
java.sql.Connection conn_talendLogs_DB = null;
String dbUser_talendLogs_DB = null;
conn_talendLogs_DB = (java.sql.Connection) globalMap
.get("conn_connectionStatsLogs");
int batchSize_talendLogs_DB = 10000;
int batchSizeCounter_talendLogs_DB = 0;
int count_talendLogs_DB = 0;
// [%connection%][checktable][tableName]
String keyCheckTable_talendLogs_DB = conn_talendLogs_DB
+ "[checktable]" + "[" + "talend_logcatcher" + "]";
if (GlobalResource.resourceMap.get(keyCheckTable_talendLogs_DB) == null) {// }
synchronized (GlobalResource.resourceLockMap
.get(keyCheckTable_talendLogs_DB)) {// }
if (GlobalResource.resourceMap
.get(keyCheckTable_talendLogs_DB) == null) {// }
java.sql.DatabaseMetaData dbMetaData_talendLogs_DB = conn_talendLogs_DB
.getMetaData();
java.sql.ResultSet rsTable_talendLogs_DB = dbMetaData_talendLogs_DB
.getTables(null, null, null,
new String[] { "TABLE" });
boolean whetherExist_talendLogs_DB = false;
String defaultSchema_talendLogs_DB = "public";
if (dbschema_talendLogs_DB == null
|| dbschema_talendLogs_DB.trim().length() == 0) {
java.sql.Statement stmtSchema_talendLogs_DB = conn_talendLogs_DB
.createStatement();
java.sql.ResultSet rsSchema_talendLogs_DB = stmtSchema_talendLogs_DB
.executeQuery("select current_schema() ");
while (rsSchema_talendLogs_DB.next()) {
defaultSchema_talendLogs_DB = rsSchema_talendLogs_DB
.getString("current_schema");
}
rsSchema_talendLogs_DB.close();
stmtSchema_talendLogs_DB.close();
}
while (rsTable_talendLogs_DB.next()) {
String table_talendLogs_DB = rsTable_talendLogs_DB
.getString("TABLE_NAME");
String schema_talendLogs_DB = rsTable_talendLogs_DB
.getString("TABLE_SCHEM");
if (table_talendLogs_DB
.equals("talend_logcatcher")
&& (schema_talendLogs_DB
.equals(dbschema_talendLogs_DB) || ((dbschema_talendLogs_DB == null || dbschema_talendLogs_DB
.trim().length() == 0) && defaultSchema_talendLogs_DB
.equals(schema_talendLogs_DB)))) {
whetherExist_talendLogs_DB = true;
break;
}
}
rsTable_talendLogs_DB.close();
if (!whetherExist_talendLogs_DB) {
java.sql.Statement stmtCreate_talendLogs_DB = conn_talendLogs_DB
.createStatement();
stmtCreate_talendLogs_DB
.execute("CREATE TABLE \""
+ tableName_talendLogs_DB
+ "\"(\"moment\" TIMESTAMP(0) ,\"pid\" VARCHAR(20) ,\"root_pid\" VARCHAR(20) ,\"father_pid\" VARCHAR(20) ,\"project\" VARCHAR(50) ,\"job\" VARCHAR(255) ,\"context\" VARCHAR(50) ,\"priority\" INT4 ,\"type\" VARCHAR(255) ,\"origin\" VARCHAR(255) ,\"message\" VARCHAR(255) ,\"code\" INT4 )");
stmtCreate_talendLogs_DB.close();
}
GlobalResource.resourceMap.put(
keyCheckTable_talendLogs_DB, true);
// {{{
} // end of if
} // end synchronized
}
String insert_talendLogs_DB = "INSERT INTO \""
+ tableName_talendLogs_DB
+ "\" (\"moment\",\"pid\",\"root_pid\",\"father_pid\",\"project\",\"job\",\"context\",\"priority\",\"type\",\"origin\",\"message\",\"code\") VALUES (?,?,?,?,?,?,?,?,?,?,?,?)";
java.sql.PreparedStatement pstmt_talendLogs_DB = conn_talendLogs_DB
.prepareStatement(insert_talendLogs_DB);
/**
* [talendLogs_DB begin ] stop
*/
/**
* [talendLogs_FILE begin ] start
*/
ok_Hash.put("talendLogs_FILE", false);
start_Hash.put("talendLogs_FILE", System.currentTimeMillis());
currentVirtualComponent = "talendLogs_FILE";
currentComponent = "talendLogs_FILE";
int tos_count_talendLogs_FILE = 0;
String fileName_talendLogs_FILE = "";
fileName_talendLogs_FILE = (new java.io.File(
context.CTX_PRM_RepertoireLog + "/"
+ context.CTX_PRM_FichierLog))
.getAbsolutePath().replace("\\", "/");
String fullName_talendLogs_FILE = null;
String extension_talendLogs_FILE = null;
String directory_talendLogs_FILE = null;
if ((fileName_talendLogs_FILE.indexOf("/") != -1)) {
if (fileName_talendLogs_FILE.lastIndexOf(".") < fileName_talendLogs_FILE
.lastIndexOf("/")) {
fullName_talendLogs_FILE = fileName_talendLogs_FILE;
extension_talendLogs_FILE = "";
} else {
fullName_talendLogs_FILE = fileName_talendLogs_FILE
.substring(0, fileName_talendLogs_FILE
.lastIndexOf("."));
extension_talendLogs_FILE = fileName_talendLogs_FILE
.substring(fileName_talendLogs_FILE
.lastIndexOf("."));
}
directory_talendLogs_FILE = fileName_talendLogs_FILE
.substring(0,
fileName_talendLogs_FILE.lastIndexOf("/"));
} else {
if (fileName_talendLogs_FILE.lastIndexOf(".") != -1) {
fullName_talendLogs_FILE = fileName_talendLogs_FILE
.substring(0, fileName_talendLogs_FILE
.lastIndexOf("."));
extension_talendLogs_FILE = fileName_talendLogs_FILE
.substring(fileName_talendLogs_FILE
.lastIndexOf("."));
} else {
fullName_talendLogs_FILE = fileName_talendLogs_FILE;
extension_talendLogs_FILE = "";
}
directory_talendLogs_FILE = "";
}
boolean isFileGenerated_talendLogs_FILE = true;
java.io.File filetalendLogs_FILE = new java.io.File(
fileName_talendLogs_FILE);
globalMap.put("talendLogs_FILE_FILE_NAME",
fileName_talendLogs_FILE);
if (filetalendLogs_FILE.exists()) {
isFileGenerated_talendLogs_FILE = false;
}
int nb_line_talendLogs_FILE = 0;
int splitEvery_talendLogs_FILE = 1000;
int splitedFileNo_talendLogs_FILE = 0;
int currentRow_talendLogs_FILE = 0;
final String OUT_DELIM_talendLogs_FILE = /**
* Start field
* talendLogs_FILE:FIELDSEPARATOR
*/
";"/** End field talendLogs_FILE:FIELDSEPARATOR */
;
final String OUT_DELIM_ROWSEP_talendLogs_FILE = /**
* Start field
* talendLogs_FILE:ROWSEPARATOR
*/
"\n"/** End field talendLogs_FILE:ROWSEPARATOR */
;
// create directory only if not exists
if (directory_talendLogs_FILE != null
&& directory_talendLogs_FILE.trim().length() != 0) {
java.io.File dir_talendLogs_FILE = new java.io.File(
directory_talendLogs_FILE);
if (!dir_talendLogs_FILE.exists()) {
dir_talendLogs_FILE.mkdirs();
}
}
// routines.system.Row
java.io.Writer outtalendLogs_FILE = null;
outtalendLogs_FILE = new java.io.BufferedWriter(
new java.io.OutputStreamWriter(
new java.io.FileOutputStream(
fileName_talendLogs_FILE, true),
"ISO-8859-15"));
resourceMap.put("out_talendLogs_FILE", outtalendLogs_FILE);
resourceMap.put("nb_line_talendLogs_FILE",
nb_line_talendLogs_FILE);
/**
* [talendLogs_FILE begin ] stop
*/
/**
* [talendLogs_LOGS begin ] start
*/
ok_Hash.put("talendLogs_LOGS", false);
start_Hash.put("talendLogs_LOGS", System.currentTimeMillis());
currentVirtualComponent = "talendLogs_LOGS";
currentComponent = "talendLogs_LOGS";
int tos_count_talendLogs_LOGS = 0;
for (LogCatcherUtils.LogCatcherMessage lcm : talendLogs_LOGS
.getMessages()) {
row_talendLogs_LOGS.type = lcm.getType();
row_talendLogs_LOGS.origin = (lcm.getOrigin() == null
|| lcm.getOrigin().length() < 1 ? null : lcm
.getOrigin());
row_talendLogs_LOGS.priority = lcm.getPriority();
row_talendLogs_LOGS.message = lcm.getMessage();
row_talendLogs_LOGS.code = lcm.getCode();
row_talendLogs_LOGS.moment = java.util.Calendar
.getInstance().getTime();
row_talendLogs_LOGS.pid = pid;
row_talendLogs_LOGS.root_pid = rootPid;
row_talendLogs_LOGS.father_pid = fatherPid;
row_talendLogs_LOGS.project = projectName;
row_talendLogs_LOGS.job = jobName;
row_talendLogs_LOGS.context = contextStr;
/**
* [talendLogs_LOGS begin ] stop
*/
/**
* [talendLogs_LOGS main ] start
*/
currentVirtualComponent = "talendLogs_LOGS";
currentComponent = "talendLogs_LOGS";
tos_count_talendLogs_LOGS++;
/**
* [talendLogs_LOGS main ] stop
*/
/**
* [talendLogs_FILE main ] start
*/
currentVirtualComponent = "talendLogs_FILE";
currentComponent = "talendLogs_FILE";
StringBuilder sb_talendLogs_FILE = new StringBuilder();
if (row_talendLogs_LOGS.moment != null) {
sb_talendLogs_FILE.append(FormatterUtils.format_Date(
row_talendLogs_LOGS.moment,
"yyyy-MM-dd HH:mm:ss"));
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.pid != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.pid);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.root_pid != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.root_pid);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.father_pid != null) {
sb_talendLogs_FILE
.append(row_talendLogs_LOGS.father_pid);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.project != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.project);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.job != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.job);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.context != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.context);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.priority != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.priority);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.type != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.type);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.origin != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.origin);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.message != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.message);
}
sb_talendLogs_FILE.append(OUT_DELIM_talendLogs_FILE);
if (row_talendLogs_LOGS.code != null) {
sb_talendLogs_FILE.append(row_talendLogs_LOGS.code);
}
sb_talendLogs_FILE.append(OUT_DELIM_ROWSEP_talendLogs_FILE);
nb_line_talendLogs_FILE++;
resourceMap.put("nb_line_talendLogs_FILE",
nb_line_talendLogs_FILE);
outtalendLogs_FILE.write(sb_talendLogs_FILE.toString());
row_talendLogs_FILE = row_talendLogs_LOGS;
tos_count_talendLogs_FILE++;
/**
* [talendLogs_FILE main ] stop
*/
/**
* [talendLogs_DB main ] start
*/
currentVirtualComponent = "talendLogs_DB";
currentComponent = "talendLogs_DB";
whetherReject_talendLogs_DB = false;
if (row_talendLogs_FILE.moment != null) {
pstmt_talendLogs_DB.setTimestamp(1,
new java.sql.Timestamp(
row_talendLogs_FILE.moment.getTime()));
} else {
pstmt_talendLogs_DB
.setNull(1, java.sql.Types.TIMESTAMP);
}
if (row_talendLogs_FILE.pid == null) {
pstmt_talendLogs_DB.setNull(2, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(2,
row_talendLogs_FILE.pid);
}
if (row_talendLogs_FILE.root_pid == null) {
pstmt_talendLogs_DB.setNull(3, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(3,
row_talendLogs_FILE.root_pid);
}
if (row_talendLogs_FILE.father_pid == null) {
pstmt_talendLogs_DB.setNull(4, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(4,
row_talendLogs_FILE.father_pid);
}
if (row_talendLogs_FILE.project == null) {
pstmt_talendLogs_DB.setNull(5, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(5,
row_talendLogs_FILE.project);
}
if (row_talendLogs_FILE.job == null) {
pstmt_talendLogs_DB.setNull(6, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(6,
row_talendLogs_FILE.job);
}
if (row_talendLogs_FILE.context == null) {
pstmt_talendLogs_DB.setNull(7, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(7,
row_talendLogs_FILE.context);
}
if (row_talendLogs_FILE.priority == null) {
pstmt_talendLogs_DB.setNull(8, java.sql.Types.INTEGER);
} else {
pstmt_talendLogs_DB.setInt(8,
row_talendLogs_FILE.priority);
}
if (row_talendLogs_FILE.type == null) {
pstmt_talendLogs_DB.setNull(9, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(9,
row_talendLogs_FILE.type);
}
if (row_talendLogs_FILE.origin == null) {
pstmt_talendLogs_DB.setNull(10, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(10,
row_talendLogs_FILE.origin);
}
if (row_talendLogs_FILE.message == null) {
pstmt_talendLogs_DB.setNull(11, java.sql.Types.VARCHAR);
} else {
pstmt_talendLogs_DB.setString(11,
row_talendLogs_FILE.message);
}
if (row_talendLogs_FILE.code == null) {
pstmt_talendLogs_DB.setNull(12, java.sql.Types.INTEGER);
} else {
pstmt_talendLogs_DB
.setInt(12, row_talendLogs_FILE.code);
}
pstmt_talendLogs_DB.addBatch();
nb_line_talendLogs_DB++;
batchSizeCounter_talendLogs_DB++;
if ((batchSize_talendLogs_DB > 0)
&& (batchSize_talendLogs_DB <= batchSizeCounter_talendLogs_DB)) {
try {
int countSum_talendLogs_DB = 0;
for (int countEach_talendLogs_DB : pstmt_talendLogs_DB
.executeBatch()) {
countSum_talendLogs_DB += (countEach_talendLogs_DB < 0 ? 0
: countEach_talendLogs_DB);
}
insertedCount_talendLogs_DB += countSum_talendLogs_DB;
batchSizeCounter_talendLogs_DB = 0;
} catch (java.sql.BatchUpdateException e) {
int countSum_talendLogs_DB = 0;
for (int countEach_talendLogs_DB : e
.getUpdateCounts()) {
countSum_talendLogs_DB += (countEach_talendLogs_DB < 0 ? 0
: countEach_talendLogs_DB);
}
insertedCount_talendLogs_DB += countSum_talendLogs_DB;
System.err.println(e.getMessage());
}
}
tos_count_talendLogs_DB++;
/**
* [talendLogs_DB main ] stop
*/
/**
* [talendLogs_LOGS end ] start
*/
currentVirtualComponent = "talendLogs_LOGS";
currentComponent = "talendLogs_LOGS";
}
ok_Hash.put("talendLogs_LOGS", true);
end_Hash.put("talendLogs_LOGS", System.currentTimeMillis());
/**
* [talendLogs_LOGS end ] stop
*/
/**
* [talendLogs_FILE end ] start
*/
currentVirtualComponent = "talendLogs_FILE";
currentComponent = "talendLogs_FILE";
if (outtalendLogs_FILE != null) {
outtalendLogs_FILE.flush();
outtalendLogs_FILE.close();
}
globalMap.put("talendLogs_FILE_NB_LINE",
nb_line_talendLogs_FILE);
globalMap.put("talendLogs_FILE_FILE_NAME",
fileName_talendLogs_FILE);
resourceMap.put("finish_talendLogs_FILE", true);
ok_Hash.put("talendLogs_FILE", true);
end_Hash.put("talendLogs_FILE", System.currentTimeMillis());
/**
* [talendLogs_FILE end ] stop
*/
/**
* [talendLogs_DB end ] start
*/
currentVirtualComponent = "talendLogs_DB";
currentComponent = "talendLogs_DB";
try {
int countSum_talendLogs_DB = 0;
if (pstmt_talendLogs_DB != null
&& batchSizeCounter_talendLogs_DB > 0) {
for (int countEach_talendLogs_DB : pstmt_talendLogs_DB
.executeBatch()) {
countSum_talendLogs_DB += (countEach_talendLogs_DB < 0 ? 0
: countEach_talendLogs_DB);
}
}
insertedCount_talendLogs_DB += countSum_talendLogs_DB;
} catch (java.sql.BatchUpdateException e) {
int countSum_talendLogs_DB = 0;
for (int countEach_talendLogs_DB : e.getUpdateCounts()) {
countSum_talendLogs_DB += (countEach_talendLogs_DB < 0 ? 0
: countEach_talendLogs_DB);
}
insertedCount_talendLogs_DB += countSum_talendLogs_DB;
System.err.println(e.getMessage());
}
if (pstmt_talendLogs_DB != null) {
pstmt_talendLogs_DB.close();
}
nb_line_deleted_talendLogs_DB = nb_line_deleted_talendLogs_DB
+ deletedCount_talendLogs_DB;
nb_line_update_talendLogs_DB = nb_line_update_talendLogs_DB
+ updatedCount_talendLogs_DB;
nb_line_inserted_talendLogs_DB = nb_line_inserted_talendLogs_DB
+ insertedCount_talendLogs_DB;
nb_line_rejected_talendLogs_DB = nb_line_rejected_talendLogs_DB
+ rejectedCount_talendLogs_DB;
globalMap.put("talendLogs_DB_NB_LINE", nb_line_talendLogs_DB);
globalMap.put("talendLogs_DB_NB_LINE_UPDATED",
nb_line_update_talendLogs_DB);
globalMap.put("talendLogs_DB_NB_LINE_INSERTED",
nb_line_inserted_talendLogs_DB);
globalMap.put("talendLogs_DB_NB_LINE_DELETED",
nb_line_deleted_talendLogs_DB);
globalMap.put("talendLogs_DB_NB_LINE_REJECTED",
nb_line_rejected_talendLogs_DB);
ok_Hash.put("talendLogs_DB", true);
end_Hash.put("talendLogs_DB", System.currentTimeMillis());
/**
* [talendLogs_DB end ] stop
*/
}// end the resume
if (resumeEntryMethodName == null || globalResumeTicket) {
resumeUtil
.addLog("CHECKPOINT",
"CONNECTION:SUBJOB_OK:talendLogs_LOGS:sub_ok_talendLogs_connectionStatsLogs_Commit",
"", Thread.currentThread().getId() + "", "",
"", "", "", "");
}
connectionStatsLogs_CommitProcess(globalMap);
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
te.setVirtualComponentName(currentVirtualComponent);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [talendLogs_LOGS finally ] start
*/
currentVirtualComponent = "talendLogs_LOGS";
currentComponent = "talendLogs_LOGS";
/**
* [talendLogs_LOGS finally ] stop
*/
/**
* [talendLogs_FILE finally ] start
*/
currentVirtualComponent = "talendLogs_FILE";
currentComponent = "talendLogs_FILE";
if (resourceMap.get("finish_talendLogs_FILE") == null) {
java.io.Writer outtalendLogs_FILE = (java.io.Writer) resourceMap
.get("out_talendLogs_FILE");
if (outtalendLogs_FILE != null) {
outtalendLogs_FILE.flush();
outtalendLogs_FILE.close();
}
}
/**
* [talendLogs_FILE finally ] stop
*/
/**
* [talendLogs_DB finally ] start
*/
currentVirtualComponent = "talendLogs_DB";
currentComponent = "talendLogs_DB";
/**
* [talendLogs_DB finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("talendLogs_LOGS_SUBPROCESS_STATE", 1);
}
public static class row_talendStats_FILEStruct implements
routines.system.IPersistableRow {
final static byte[] commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
static byte[] commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
public java.util.Date moment;
public java.util.Date getMoment() {
return this.moment;
}
public String pid;
public String getPid() {
return this.pid;
}
public String father_pid;
public String getFather_pid() {
return this.father_pid;
}
public String root_pid;
public String getRoot_pid() {
return this.root_pid;
}
public Long system_pid;
public Long getSystem_pid() {
return this.system_pid;
}
public String project;
public String getProject() {
return this.project;
}
public String job;
public String getJob() {
return this.job;
}
public String job_repository_id;
public String getJob_repository_id() {
return this.job_repository_id;
}
public String job_version;
public String getJob_version() {
return this.job_version;
}
public String context;
public String getContext() {
return this.context;
}
public String origin;
public String getOrigin() {
return this.origin;
}
public String message_type;
public String getMessage_type() {
return this.message_type;
}
public String message;
public String getMessage() {
return this.message;
}
public Long duration;
public Long getDuration() {
return this.duration;
}
private java.util.Date readDate(ObjectInputStream dis)
throws IOException {
java.util.Date dateReturn = null;
int length = 0;
length = dis.readByte();
if (length == -1) {
dateReturn = null;
} else {
dateReturn = new Date(dis.readLong());
}
return dateReturn;
}
private void writeDate(java.util.Date date1, ObjectOutputStream dos)
throws IOException {
if (date1 == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(date1.getTime());
}
}
private String readString(ObjectInputStream dis) throws IOException {
String strReturn = null;
int length = 0;
length = dis.readInt();
if (length == -1) {
strReturn = null;
} else {
if (length > commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length) {
if (length < 1024
&& commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length == 0) {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[1024];
} else {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[2 * length];
}
}
dis.readFully(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length);
strReturn = new String(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length, utf8Charset);
}
return strReturn;
}
private void writeString(String str, ObjectOutputStream dos)
throws IOException {
if (str == null) {
dos.writeInt(-1);
} else {
byte[] byteArray = str.getBytes(utf8Charset);
dos.writeInt(byteArray.length);
dos.write(byteArray);
}
}
public void readData(ObjectInputStream dis) {
synchronized (commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION) {
try {
int length = 0;
this.moment = readDate(dis);
this.pid = readString(dis);
this.father_pid = readString(dis);
this.root_pid = readString(dis);
length = dis.readByte();
if (length == -1) {
this.system_pid = null;
} else {
this.system_pid = dis.readLong();
}
this.project = readString(dis);
this.job = readString(dis);
this.job_repository_id = readString(dis);
this.job_version = readString(dis);
this.context = readString(dis);
this.origin = readString(dis);
this.message_type = readString(dis);
this.message = readString(dis);
length = dis.readByte();
if (length == -1) {
this.duration = null;
} else {
this.duration = dis.readLong();
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
public void writeData(ObjectOutputStream dos) {
try {
// java.util.Date
writeDate(this.moment, dos);
// String
writeString(this.pid, dos);
// String
writeString(this.father_pid, dos);
// String
writeString(this.root_pid, dos);
// Long
if (this.system_pid == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(this.system_pid);
}
// String
writeString(this.project, dos);
// String
writeString(this.job, dos);
// String
writeString(this.job_repository_id, dos);
// String
writeString(this.job_version, dos);
// String
writeString(this.context, dos);
// String
writeString(this.origin, dos);
// String
writeString(this.message_type, dos);
// String
writeString(this.message, dos);
// Long
if (this.duration == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(this.duration);
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("[");
sb.append("moment=" + String.valueOf(moment));
sb.append(",pid=" + pid);
sb.append(",father_pid=" + father_pid);
sb.append(",root_pid=" + root_pid);
sb.append(",system_pid=" + String.valueOf(system_pid));
sb.append(",project=" + project);
sb.append(",job=" + job);
sb.append(",job_repository_id=" + job_repository_id);
sb.append(",job_version=" + job_version);
sb.append(",context=" + context);
sb.append(",origin=" + origin);
sb.append(",message_type=" + message_type);
sb.append(",message=" + message);
sb.append(",duration=" + String.valueOf(duration));
sb.append("]");
return sb.toString();
}
/**
* Compare keys
*/
public int compareTo(row_talendStats_FILEStruct other) {
int returnValue = -1;
return returnValue;
}
private int checkNullsAndCompare(Object object1, Object object2) {
int returnValue = 0;
if (object1 instanceof Comparable && object2 instanceof Comparable) {
returnValue = ((Comparable) object1).compareTo(object2);
} else if (object1 != null && object2 != null) {
returnValue = compareStrings(object1.toString(),
object2.toString());
} else if (object1 == null && object2 != null) {
returnValue = 1;
} else if (object1 != null && object2 == null) {
returnValue = -1;
} else {
returnValue = 0;
}
return returnValue;
}
private int compareStrings(String string1, String string2) {
return string1.compareTo(string2);
}
}
public static class row_talendStats_STATSStruct implements
routines.system.IPersistableRow {
final static byte[] commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
static byte[] commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
public java.util.Date moment;
public java.util.Date getMoment() {
return this.moment;
}
public String pid;
public String getPid() {
return this.pid;
}
public String father_pid;
public String getFather_pid() {
return this.father_pid;
}
public String root_pid;
public String getRoot_pid() {
return this.root_pid;
}
public Long system_pid;
public Long getSystem_pid() {
return this.system_pid;
}
public String project;
public String getProject() {
return this.project;
}
public String job;
public String getJob() {
return this.job;
}
public String job_repository_id;
public String getJob_repository_id() {
return this.job_repository_id;
}
public String job_version;
public String getJob_version() {
return this.job_version;
}
public String context;
public String getContext() {
return this.context;
}
public String origin;
public String getOrigin() {
return this.origin;
}
public String message_type;
public String getMessage_type() {
return this.message_type;
}
public String message;
public String getMessage() {
return this.message;
}
public Long duration;
public Long getDuration() {
return this.duration;
}
private java.util.Date readDate(ObjectInputStream dis)
throws IOException {
java.util.Date dateReturn = null;
int length = 0;
length = dis.readByte();
if (length == -1) {
dateReturn = null;
} else {
dateReturn = new Date(dis.readLong());
}
return dateReturn;
}
private void writeDate(java.util.Date date1, ObjectOutputStream dos)
throws IOException {
if (date1 == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(date1.getTime());
}
}
private String readString(ObjectInputStream dis) throws IOException {
String strReturn = null;
int length = 0;
length = dis.readInt();
if (length == -1) {
strReturn = null;
} else {
if (length > commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length) {
if (length < 1024
&& commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length == 0) {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[1024];
} else {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[2 * length];
}
}
dis.readFully(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length);
strReturn = new String(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length, utf8Charset);
}
return strReturn;
}
private void writeString(String str, ObjectOutputStream dos)
throws IOException {
if (str == null) {
dos.writeInt(-1);
} else {
byte[] byteArray = str.getBytes(utf8Charset);
dos.writeInt(byteArray.length);
dos.write(byteArray);
}
}
public void readData(ObjectInputStream dis) {
synchronized (commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION) {
try {
int length = 0;
this.moment = readDate(dis);
this.pid = readString(dis);
this.father_pid = readString(dis);
this.root_pid = readString(dis);
length = dis.readByte();
if (length == -1) {
this.system_pid = null;
} else {
this.system_pid = dis.readLong();
}
this.project = readString(dis);
this.job = readString(dis);
this.job_repository_id = readString(dis);
this.job_version = readString(dis);
this.context = readString(dis);
this.origin = readString(dis);
this.message_type = readString(dis);
this.message = readString(dis);
length = dis.readByte();
if (length == -1) {
this.duration = null;
} else {
this.duration = dis.readLong();
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
public void writeData(ObjectOutputStream dos) {
try {
// java.util.Date
writeDate(this.moment, dos);
// String
writeString(this.pid, dos);
// String
writeString(this.father_pid, dos);
// String
writeString(this.root_pid, dos);
// Long
if (this.system_pid == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(this.system_pid);
}
// String
writeString(this.project, dos);
// String
writeString(this.job, dos);
// String
writeString(this.job_repository_id, dos);
// String
writeString(this.job_version, dos);
// String
writeString(this.context, dos);
// String
writeString(this.origin, dos);
// String
writeString(this.message_type, dos);
// String
writeString(this.message, dos);
// Long
if (this.duration == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(this.duration);
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("[");
sb.append("moment=" + String.valueOf(moment));
sb.append(",pid=" + pid);
sb.append(",father_pid=" + father_pid);
sb.append(",root_pid=" + root_pid);
sb.append(",system_pid=" + String.valueOf(system_pid));
sb.append(",project=" + project);
sb.append(",job=" + job);
sb.append(",job_repository_id=" + job_repository_id);
sb.append(",job_version=" + job_version);
sb.append(",context=" + context);
sb.append(",origin=" + origin);
sb.append(",message_type=" + message_type);
sb.append(",message=" + message);
sb.append(",duration=" + String.valueOf(duration));
sb.append("]");
return sb.toString();
}
/**
* Compare keys
*/
public int compareTo(row_talendStats_STATSStruct other) {
int returnValue = -1;
return returnValue;
}
private int checkNullsAndCompare(Object object1, Object object2) {
int returnValue = 0;
if (object1 instanceof Comparable && object2 instanceof Comparable) {
returnValue = ((Comparable) object1).compareTo(object2);
} else if (object1 != null && object2 != null) {
returnValue = compareStrings(object1.toString(),
object2.toString());
} else if (object1 == null && object2 != null) {
returnValue = 1;
} else if (object1 != null && object2 == null) {
returnValue = -1;
} else {
returnValue = 0;
}
return returnValue;
}
private int compareStrings(String string1, String string2) {
return string1.compareTo(string2);
}
}
public void talendStats_STATSProcess(
final java.util.Map globalMap)
throws TalendException {
globalMap.put("talendStats_STATS_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String currentVirtualComponent = null;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
row_talendStats_STATSStruct row_talendStats_STATS = new row_talendStats_STATSStruct();
row_talendStats_STATSStruct row_talendStats_FILE = row_talendStats_STATS;
/**
* [talendStats_DB begin ] start
*/
ok_Hash.put("talendStats_DB", false);
start_Hash.put("talendStats_DB", System.currentTimeMillis());
currentVirtualComponent = "talendStats_DB";
currentComponent = "talendStats_DB";
int tos_count_talendStats_DB = 0;
String dbschema_talendStats_DB = null;
dbschema_talendStats_DB = (String) globalMap.get("schema_"
+ "connectionStatsLogs");
String tableName_talendStats_DB = null;
if (dbschema_talendStats_DB == null
|| dbschema_talendStats_DB.trim().length() == 0) {
tableName_talendStats_DB = "talend_statcatcher";
} else {
tableName_talendStats_DB = dbschema_talendStats_DB
+ "\".\"" + "talend_statcatcher";
}
int nb_line_talendStats_DB = 0;
int nb_line_update_talendStats_DB = 0;
int nb_line_inserted_talendStats_DB = 0;
int nb_line_deleted_talendStats_DB = 0;
int nb_line_rejected_talendStats_DB = 0;
int deletedCount_talendStats_DB = 0;
int updatedCount_talendStats_DB = 0;
int insertedCount_talendStats_DB = 0;
int rejectedCount_talendStats_DB = 0;
boolean whetherReject_talendStats_DB = false;
java.sql.Connection conn_talendStats_DB = null;
String dbUser_talendStats_DB = null;
conn_talendStats_DB = (java.sql.Connection) globalMap
.get("conn_connectionStatsLogs");
int batchSize_talendStats_DB = 10000;
int batchSizeCounter_talendStats_DB = 0;
int count_talendStats_DB = 0;
// [%connection%][checktable][tableName]
String keyCheckTable_talendStats_DB = conn_talendStats_DB
+ "[checktable]" + "[" + "talend_statcatcher" + "]";
if (GlobalResource.resourceMap
.get(keyCheckTable_talendStats_DB) == null) {// }
synchronized (GlobalResource.resourceLockMap
.get(keyCheckTable_talendStats_DB)) {// }
if (GlobalResource.resourceMap
.get(keyCheckTable_talendStats_DB) == null) {// }
java.sql.DatabaseMetaData dbMetaData_talendStats_DB = conn_talendStats_DB
.getMetaData();
java.sql.ResultSet rsTable_talendStats_DB = dbMetaData_talendStats_DB
.getTables(null, null, null,
new String[] { "TABLE" });
boolean whetherExist_talendStats_DB = false;
String defaultSchema_talendStats_DB = "public";
if (dbschema_talendStats_DB == null
|| dbschema_talendStats_DB.trim().length() == 0) {
java.sql.Statement stmtSchema_talendStats_DB = conn_talendStats_DB
.createStatement();
java.sql.ResultSet rsSchema_talendStats_DB = stmtSchema_talendStats_DB
.executeQuery("select current_schema() ");
while (rsSchema_talendStats_DB.next()) {
defaultSchema_talendStats_DB = rsSchema_talendStats_DB
.getString("current_schema");
}
rsSchema_talendStats_DB.close();
stmtSchema_talendStats_DB.close();
}
while (rsTable_talendStats_DB.next()) {
String table_talendStats_DB = rsTable_talendStats_DB
.getString("TABLE_NAME");
String schema_talendStats_DB = rsTable_talendStats_DB
.getString("TABLE_SCHEM");
if (table_talendStats_DB
.equals("talend_statcatcher")
&& (schema_talendStats_DB
.equals(dbschema_talendStats_DB) || ((dbschema_talendStats_DB == null || dbschema_talendStats_DB
.trim().length() == 0) && defaultSchema_talendStats_DB
.equals(schema_talendStats_DB)))) {
whetherExist_talendStats_DB = true;
break;
}
}
rsTable_talendStats_DB.close();
if (!whetherExist_talendStats_DB) {
java.sql.Statement stmtCreate_talendStats_DB = conn_talendStats_DB
.createStatement();
stmtCreate_talendStats_DB
.execute("CREATE TABLE \""
+ tableName_talendStats_DB
+ "\"(\"moment\" TIMESTAMP(0) ,\"pid\" VARCHAR(20) ,\"father_pid\" VARCHAR(20) ,\"root_pid\" VARCHAR(20) ,\"system_pid\" INT8 ,\"project\" VARCHAR(50) ,\"job\" VARCHAR(255) ,\"job_repository_id\" VARCHAR(255) ,\"job_version\" VARCHAR(255) ,\"context\" VARCHAR(50) ,\"origin\" VARCHAR(255) ,\"message_type\" VARCHAR(255) ,\"message\" VARCHAR(255) ,\"duration\" INT8 )");
stmtCreate_talendStats_DB.close();
}
GlobalResource.resourceMap.put(
keyCheckTable_talendStats_DB, true);
// {{{
} // end of if
} // end synchronized
}
String insert_talendStats_DB = "INSERT INTO \""
+ tableName_talendStats_DB
+ "\" (\"moment\",\"pid\",\"father_pid\",\"root_pid\",\"system_pid\",\"project\",\"job\",\"job_repository_id\",\"job_version\",\"context\",\"origin\",\"message_type\",\"message\",\"duration\") VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
java.sql.PreparedStatement pstmt_talendStats_DB = conn_talendStats_DB
.prepareStatement(insert_talendStats_DB);
/**
* [talendStats_DB begin ] stop
*/
/**
* [talendStats_FILE begin ] start
*/
ok_Hash.put("talendStats_FILE", false);
start_Hash.put("talendStats_FILE", System.currentTimeMillis());
currentVirtualComponent = "talendStats_FILE";
currentComponent = "talendStats_FILE";
int tos_count_talendStats_FILE = 0;
String fileName_talendStats_FILE = "";
fileName_talendStats_FILE = (new java.io.File(
context.CTX_PRM_RepertoireLog + "/"
+ context.CTX_PRM_FichierStatistique))
.getAbsolutePath().replace("\\", "/");
String fullName_talendStats_FILE = null;
String extension_talendStats_FILE = null;
String directory_talendStats_FILE = null;
if ((fileName_talendStats_FILE.indexOf("/") != -1)) {
if (fileName_talendStats_FILE.lastIndexOf(".") < fileName_talendStats_FILE
.lastIndexOf("/")) {
fullName_talendStats_FILE = fileName_talendStats_FILE;
extension_talendStats_FILE = "";
} else {
fullName_talendStats_FILE = fileName_talendStats_FILE
.substring(0, fileName_talendStats_FILE
.lastIndexOf("."));
extension_talendStats_FILE = fileName_talendStats_FILE
.substring(fileName_talendStats_FILE
.lastIndexOf("."));
}
directory_talendStats_FILE = fileName_talendStats_FILE
.substring(0,
fileName_talendStats_FILE.lastIndexOf("/"));
} else {
if (fileName_talendStats_FILE.lastIndexOf(".") != -1) {
fullName_talendStats_FILE = fileName_talendStats_FILE
.substring(0, fileName_talendStats_FILE
.lastIndexOf("."));
extension_talendStats_FILE = fileName_talendStats_FILE
.substring(fileName_talendStats_FILE
.lastIndexOf("."));
} else {
fullName_talendStats_FILE = fileName_talendStats_FILE;
extension_talendStats_FILE = "";
}
directory_talendStats_FILE = "";
}
boolean isFileGenerated_talendStats_FILE = true;
java.io.File filetalendStats_FILE = new java.io.File(
fileName_talendStats_FILE);
globalMap.put("talendStats_FILE_FILE_NAME",
fileName_talendStats_FILE);
if (filetalendStats_FILE.exists()) {
isFileGenerated_talendStats_FILE = false;
}
int nb_line_talendStats_FILE = 0;
int splitEvery_talendStats_FILE = 1000;
int splitedFileNo_talendStats_FILE = 0;
int currentRow_talendStats_FILE = 0;
final String OUT_DELIM_talendStats_FILE = /**
* Start field
* talendStats_FILE:FIELDSEPARATOR
*/
";"/** End field talendStats_FILE:FIELDSEPARATOR */
;
final String OUT_DELIM_ROWSEP_talendStats_FILE = /**
* Start field
* talendStats_FILE:ROWSEPARATOR
*/
"\n"/** End field talendStats_FILE:ROWSEPARATOR */
;
// create directory only if not exists
if (directory_talendStats_FILE != null
&& directory_talendStats_FILE.trim().length() != 0) {
java.io.File dir_talendStats_FILE = new java.io.File(
directory_talendStats_FILE);
if (!dir_talendStats_FILE.exists()) {
dir_talendStats_FILE.mkdirs();
}
}
// routines.system.Row
java.io.Writer outtalendStats_FILE = null;
outtalendStats_FILE = new java.io.BufferedWriter(
new java.io.OutputStreamWriter(
new java.io.FileOutputStream(
fileName_talendStats_FILE, true),
"ISO-8859-15"));
resourceMap.put("out_talendStats_FILE", outtalendStats_FILE);
resourceMap.put("nb_line_talendStats_FILE",
nb_line_talendStats_FILE);
/**
* [talendStats_FILE begin ] stop
*/
/**
* [talendStats_STATS begin ] start
*/
ok_Hash.put("talendStats_STATS", false);
start_Hash.put("talendStats_STATS", System.currentTimeMillis());
currentVirtualComponent = "talendStats_STATS";
currentComponent = "talendStats_STATS";
int tos_count_talendStats_STATS = 0;
for (StatCatcherUtils.StatCatcherMessage scm : talendStats_STATS
.getMessages()) {
row_talendStats_STATS.pid = pid;
row_talendStats_STATS.root_pid = rootPid;
row_talendStats_STATS.father_pid = fatherPid;
row_talendStats_STATS.project = projectName;
row_talendStats_STATS.job = jobName;
row_talendStats_STATS.context = contextStr;
row_talendStats_STATS.origin = (scm.getOrigin() == null
|| scm.getOrigin().length() < 1 ? null : scm
.getOrigin());
row_talendStats_STATS.message = scm.getMessage();
row_talendStats_STATS.duration = scm.getDuration();
row_talendStats_STATS.moment = scm.getMoment();
row_talendStats_STATS.message_type = scm.getMessageType();
row_talendStats_STATS.job_version = scm.getJobVersion();
row_talendStats_STATS.job_repository_id = scm.getJobId();
row_talendStats_STATS.system_pid = scm.getSystemPid();
/**
* [talendStats_STATS begin ] stop
*/
/**
* [talendStats_STATS main ] start
*/
currentVirtualComponent = "talendStats_STATS";
currentComponent = "talendStats_STATS";
tos_count_talendStats_STATS++;
/**
* [talendStats_STATS main ] stop
*/
/**
* [talendStats_FILE main ] start
*/
currentVirtualComponent = "talendStats_FILE";
currentComponent = "talendStats_FILE";
StringBuilder sb_talendStats_FILE = new StringBuilder();
if (row_talendStats_STATS.moment != null) {
sb_talendStats_FILE.append(FormatterUtils.format_Date(
row_talendStats_STATS.moment,
"yyyy-MM-dd HH:mm:ss"));
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.pid != null) {
sb_talendStats_FILE.append(row_talendStats_STATS.pid);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.father_pid != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.father_pid);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.root_pid != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.root_pid);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.system_pid != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.system_pid);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.project != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.project);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.job != null) {
sb_talendStats_FILE.append(row_talendStats_STATS.job);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.job_repository_id != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.job_repository_id);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.job_version != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.job_version);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.context != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.context);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.origin != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.origin);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.message_type != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.message_type);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.message != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.message);
}
sb_talendStats_FILE.append(OUT_DELIM_talendStats_FILE);
if (row_talendStats_STATS.duration != null) {
sb_talendStats_FILE
.append(row_talendStats_STATS.duration);
}
sb_talendStats_FILE
.append(OUT_DELIM_ROWSEP_talendStats_FILE);
nb_line_talendStats_FILE++;
resourceMap.put("nb_line_talendStats_FILE",
nb_line_talendStats_FILE);
outtalendStats_FILE.write(sb_talendStats_FILE.toString());
row_talendStats_FILE = row_talendStats_STATS;
tos_count_talendStats_FILE++;
/**
* [talendStats_FILE main ] stop
*/
/**
* [talendStats_DB main ] start
*/
currentVirtualComponent = "talendStats_DB";
currentComponent = "talendStats_DB";
whetherReject_talendStats_DB = false;
if (row_talendStats_FILE.moment != null) {
pstmt_talendStats_DB.setTimestamp(1,
new java.sql.Timestamp(
row_talendStats_FILE.moment.getTime()));
} else {
pstmt_talendStats_DB.setNull(1,
java.sql.Types.TIMESTAMP);
}
if (row_talendStats_FILE.pid == null) {
pstmt_talendStats_DB.setNull(2, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(2,
row_talendStats_FILE.pid);
}
if (row_talendStats_FILE.father_pid == null) {
pstmt_talendStats_DB.setNull(3, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(3,
row_talendStats_FILE.father_pid);
}
if (row_talendStats_FILE.root_pid == null) {
pstmt_talendStats_DB.setNull(4, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(4,
row_talendStats_FILE.root_pid);
}
if (row_talendStats_FILE.system_pid == null) {
pstmt_talendStats_DB.setNull(5, java.sql.Types.INTEGER);
} else {
pstmt_talendStats_DB.setLong(5,
row_talendStats_FILE.system_pid);
}
if (row_talendStats_FILE.project == null) {
pstmt_talendStats_DB.setNull(6, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(6,
row_talendStats_FILE.project);
}
if (row_talendStats_FILE.job == null) {
pstmt_talendStats_DB.setNull(7, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(7,
row_talendStats_FILE.job);
}
if (row_talendStats_FILE.job_repository_id == null) {
pstmt_talendStats_DB.setNull(8, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(8,
row_talendStats_FILE.job_repository_id);
}
if (row_talendStats_FILE.job_version == null) {
pstmt_talendStats_DB.setNull(9, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(9,
row_talendStats_FILE.job_version);
}
if (row_talendStats_FILE.context == null) {
pstmt_talendStats_DB
.setNull(10, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(10,
row_talendStats_FILE.context);
}
if (row_talendStats_FILE.origin == null) {
pstmt_talendStats_DB
.setNull(11, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(11,
row_talendStats_FILE.origin);
}
if (row_talendStats_FILE.message_type == null) {
pstmt_talendStats_DB
.setNull(12, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(12,
row_talendStats_FILE.message_type);
}
if (row_talendStats_FILE.message == null) {
pstmt_talendStats_DB
.setNull(13, java.sql.Types.VARCHAR);
} else {
pstmt_talendStats_DB.setString(13,
row_talendStats_FILE.message);
}
if (row_talendStats_FILE.duration == null) {
pstmt_talendStats_DB
.setNull(14, java.sql.Types.INTEGER);
} else {
pstmt_talendStats_DB.setLong(14,
row_talendStats_FILE.duration);
}
pstmt_talendStats_DB.addBatch();
nb_line_talendStats_DB++;
batchSizeCounter_talendStats_DB++;
if ((batchSize_talendStats_DB > 0)
&& (batchSize_talendStats_DB <= batchSizeCounter_talendStats_DB)) {
try {
int countSum_talendStats_DB = 0;
for (int countEach_talendStats_DB : pstmt_talendStats_DB
.executeBatch()) {
countSum_talendStats_DB += (countEach_talendStats_DB < 0 ? 0
: countEach_talendStats_DB);
}
insertedCount_talendStats_DB += countSum_talendStats_DB;
batchSizeCounter_talendStats_DB = 0;
} catch (java.sql.BatchUpdateException e) {
int countSum_talendStats_DB = 0;
for (int countEach_talendStats_DB : e
.getUpdateCounts()) {
countSum_talendStats_DB += (countEach_talendStats_DB < 0 ? 0
: countEach_talendStats_DB);
}
insertedCount_talendStats_DB += countSum_talendStats_DB;
System.err.println(e.getMessage());
}
}
tos_count_talendStats_DB++;
/**
* [talendStats_DB main ] stop
*/
/**
* [talendStats_STATS end ] start
*/
currentVirtualComponent = "talendStats_STATS";
currentComponent = "talendStats_STATS";
}
ok_Hash.put("talendStats_STATS", true);
end_Hash.put("talendStats_STATS", System.currentTimeMillis());
/**
* [talendStats_STATS end ] stop
*/
/**
* [talendStats_FILE end ] start
*/
currentVirtualComponent = "talendStats_FILE";
currentComponent = "talendStats_FILE";
if (outtalendStats_FILE != null) {
outtalendStats_FILE.flush();
outtalendStats_FILE.close();
}
globalMap.put("talendStats_FILE_NB_LINE",
nb_line_talendStats_FILE);
globalMap.put("talendStats_FILE_FILE_NAME",
fileName_talendStats_FILE);
resourceMap.put("finish_talendStats_FILE", true);
ok_Hash.put("talendStats_FILE", true);
end_Hash.put("talendStats_FILE", System.currentTimeMillis());
/**
* [talendStats_FILE end ] stop
*/
/**
* [talendStats_DB end ] start
*/
currentVirtualComponent = "talendStats_DB";
currentComponent = "talendStats_DB";
try {
int countSum_talendStats_DB = 0;
if (pstmt_talendStats_DB != null
&& batchSizeCounter_talendStats_DB > 0) {
for (int countEach_talendStats_DB : pstmt_talendStats_DB
.executeBatch()) {
countSum_talendStats_DB += (countEach_talendStats_DB < 0 ? 0
: countEach_talendStats_DB);
}
}
insertedCount_talendStats_DB += countSum_talendStats_DB;
} catch (java.sql.BatchUpdateException e) {
int countSum_talendStats_DB = 0;
for (int countEach_talendStats_DB : e.getUpdateCounts()) {
countSum_talendStats_DB += (countEach_talendStats_DB < 0 ? 0
: countEach_talendStats_DB);
}
insertedCount_talendStats_DB += countSum_talendStats_DB;
System.err.println(e.getMessage());
}
if (pstmt_talendStats_DB != null) {
pstmt_talendStats_DB.close();
}
nb_line_deleted_talendStats_DB = nb_line_deleted_talendStats_DB
+ deletedCount_talendStats_DB;
nb_line_update_talendStats_DB = nb_line_update_talendStats_DB
+ updatedCount_talendStats_DB;
nb_line_inserted_talendStats_DB = nb_line_inserted_talendStats_DB
+ insertedCount_talendStats_DB;
nb_line_rejected_talendStats_DB = nb_line_rejected_talendStats_DB
+ rejectedCount_talendStats_DB;
globalMap.put("talendStats_DB_NB_LINE", nb_line_talendStats_DB);
globalMap.put("talendStats_DB_NB_LINE_UPDATED",
nb_line_update_talendStats_DB);
globalMap.put("talendStats_DB_NB_LINE_INSERTED",
nb_line_inserted_talendStats_DB);
globalMap.put("talendStats_DB_NB_LINE_DELETED",
nb_line_deleted_talendStats_DB);
globalMap.put("talendStats_DB_NB_LINE_REJECTED",
nb_line_rejected_talendStats_DB);
ok_Hash.put("talendStats_DB", true);
end_Hash.put("talendStats_DB", System.currentTimeMillis());
/**
* [talendStats_DB end ] stop
*/
}// end the resume
if (resumeEntryMethodName == null || globalResumeTicket) {
resumeUtil
.addLog("CHECKPOINT",
"CONNECTION:SUBJOB_OK:talendStats_STATS:sub_ok_talendStats_connectionStatsLogs_Commit",
"", Thread.currentThread().getId() + "", "",
"", "", "", "");
}
connectionStatsLogs_CommitProcess(globalMap);
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
te.setVirtualComponentName(currentVirtualComponent);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [talendStats_STATS finally ] start
*/
currentVirtualComponent = "talendStats_STATS";
currentComponent = "talendStats_STATS";
/**
* [talendStats_STATS finally ] stop
*/
/**
* [talendStats_FILE finally ] start
*/
currentVirtualComponent = "talendStats_FILE";
currentComponent = "talendStats_FILE";
if (resourceMap.get("finish_talendStats_FILE") == null) {
java.io.Writer outtalendStats_FILE = (java.io.Writer) resourceMap
.get("out_talendStats_FILE");
if (outtalendStats_FILE != null) {
outtalendStats_FILE.flush();
outtalendStats_FILE.close();
}
}
/**
* [talendStats_FILE finally ] stop
*/
/**
* [talendStats_DB finally ] start
*/
currentVirtualComponent = "talendStats_DB";
currentComponent = "talendStats_DB";
/**
* [talendStats_DB finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("talendStats_STATS_SUBPROCESS_STATE", 1);
}
public static class row_talendMeter_FILEStruct implements
routines.system.IPersistableRow {
final static byte[] commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
static byte[] commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
public java.util.Date moment;
public java.util.Date getMoment() {
return this.moment;
}
public String pid;
public String getPid() {
return this.pid;
}
public String father_pid;
public String getFather_pid() {
return this.father_pid;
}
public String root_pid;
public String getRoot_pid() {
return this.root_pid;
}
public Long system_pid;
public Long getSystem_pid() {
return this.system_pid;
}
public String project;
public String getProject() {
return this.project;
}
public String job;
public String getJob() {
return this.job;
}
public String job_repository_id;
public String getJob_repository_id() {
return this.job_repository_id;
}
public String job_version;
public String getJob_version() {
return this.job_version;
}
public String context;
public String getContext() {
return this.context;
}
public String origin;
public String getOrigin() {
return this.origin;
}
public String label;
public String getLabel() {
return this.label;
}
public Integer count;
public Integer getCount() {
return this.count;
}
public Integer reference;
public Integer getReference() {
return this.reference;
}
public String thresholds;
public String getThresholds() {
return this.thresholds;
}
private java.util.Date readDate(ObjectInputStream dis)
throws IOException {
java.util.Date dateReturn = null;
int length = 0;
length = dis.readByte();
if (length == -1) {
dateReturn = null;
} else {
dateReturn = new Date(dis.readLong());
}
return dateReturn;
}
private void writeDate(java.util.Date date1, ObjectOutputStream dos)
throws IOException {
if (date1 == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(date1.getTime());
}
}
private String readString(ObjectInputStream dis) throws IOException {
String strReturn = null;
int length = 0;
length = dis.readInt();
if (length == -1) {
strReturn = null;
} else {
if (length > commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length) {
if (length < 1024
&& commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length == 0) {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[1024];
} else {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[2 * length];
}
}
dis.readFully(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length);
strReturn = new String(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length, utf8Charset);
}
return strReturn;
}
private void writeString(String str, ObjectOutputStream dos)
throws IOException {
if (str == null) {
dos.writeInt(-1);
} else {
byte[] byteArray = str.getBytes(utf8Charset);
dos.writeInt(byteArray.length);
dos.write(byteArray);
}
}
private Integer readInteger(ObjectInputStream dis) throws IOException {
Integer intReturn;
int length = 0;
length = dis.readByte();
if (length == -1) {
intReturn = null;
} else {
intReturn = dis.readInt();
}
return intReturn;
}
private void writeInteger(Integer intNum, ObjectOutputStream dos)
throws IOException {
if (intNum == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeInt(intNum);
}
}
public void readData(ObjectInputStream dis) {
synchronized (commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION) {
try {
int length = 0;
this.moment = readDate(dis);
this.pid = readString(dis);
this.father_pid = readString(dis);
this.root_pid = readString(dis);
length = dis.readByte();
if (length == -1) {
this.system_pid = null;
} else {
this.system_pid = dis.readLong();
}
this.project = readString(dis);
this.job = readString(dis);
this.job_repository_id = readString(dis);
this.job_version = readString(dis);
this.context = readString(dis);
this.origin = readString(dis);
this.label = readString(dis);
this.count = readInteger(dis);
this.reference = readInteger(dis);
this.thresholds = readString(dis);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
public void writeData(ObjectOutputStream dos) {
try {
// java.util.Date
writeDate(this.moment, dos);
// String
writeString(this.pid, dos);
// String
writeString(this.father_pid, dos);
// String
writeString(this.root_pid, dos);
// Long
if (this.system_pid == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(this.system_pid);
}
// String
writeString(this.project, dos);
// String
writeString(this.job, dos);
// String
writeString(this.job_repository_id, dos);
// String
writeString(this.job_version, dos);
// String
writeString(this.context, dos);
// String
writeString(this.origin, dos);
// String
writeString(this.label, dos);
// Integer
writeInteger(this.count, dos);
// Integer
writeInteger(this.reference, dos);
// String
writeString(this.thresholds, dos);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("[");
sb.append("moment=" + String.valueOf(moment));
sb.append(",pid=" + pid);
sb.append(",father_pid=" + father_pid);
sb.append(",root_pid=" + root_pid);
sb.append(",system_pid=" + String.valueOf(system_pid));
sb.append(",project=" + project);
sb.append(",job=" + job);
sb.append(",job_repository_id=" + job_repository_id);
sb.append(",job_version=" + job_version);
sb.append(",context=" + context);
sb.append(",origin=" + origin);
sb.append(",label=" + label);
sb.append(",count=" + String.valueOf(count));
sb.append(",reference=" + String.valueOf(reference));
sb.append(",thresholds=" + thresholds);
sb.append("]");
return sb.toString();
}
/**
* Compare keys
*/
public int compareTo(row_talendMeter_FILEStruct other) {
int returnValue = -1;
return returnValue;
}
private int checkNullsAndCompare(Object object1, Object object2) {
int returnValue = 0;
if (object1 instanceof Comparable && object2 instanceof Comparable) {
returnValue = ((Comparable) object1).compareTo(object2);
} else if (object1 != null && object2 != null) {
returnValue = compareStrings(object1.toString(),
object2.toString());
} else if (object1 == null && object2 != null) {
returnValue = 1;
} else if (object1 != null && object2 == null) {
returnValue = -1;
} else {
returnValue = 0;
}
return returnValue;
}
private int compareStrings(String string1, String string2) {
return string1.compareTo(string2);
}
}
public static class row_talendMeter_METTERStruct implements
routines.system.IPersistableRow {
final static byte[] commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
static byte[] commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[0];
public java.util.Date moment;
public java.util.Date getMoment() {
return this.moment;
}
public String pid;
public String getPid() {
return this.pid;
}
public String father_pid;
public String getFather_pid() {
return this.father_pid;
}
public String root_pid;
public String getRoot_pid() {
return this.root_pid;
}
public Long system_pid;
public Long getSystem_pid() {
return this.system_pid;
}
public String project;
public String getProject() {
return this.project;
}
public String job;
public String getJob() {
return this.job;
}
public String job_repository_id;
public String getJob_repository_id() {
return this.job_repository_id;
}
public String job_version;
public String getJob_version() {
return this.job_version;
}
public String context;
public String getContext() {
return this.context;
}
public String origin;
public String getOrigin() {
return this.origin;
}
public String label;
public String getLabel() {
return this.label;
}
public Integer count;
public Integer getCount() {
return this.count;
}
public Integer reference;
public Integer getReference() {
return this.reference;
}
public String thresholds;
public String getThresholds() {
return this.thresholds;
}
private java.util.Date readDate(ObjectInputStream dis)
throws IOException {
java.util.Date dateReturn = null;
int length = 0;
length = dis.readByte();
if (length == -1) {
dateReturn = null;
} else {
dateReturn = new Date(dis.readLong());
}
return dateReturn;
}
private void writeDate(java.util.Date date1, ObjectOutputStream dos)
throws IOException {
if (date1 == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(date1.getTime());
}
}
private String readString(ObjectInputStream dis) throws IOException {
String strReturn = null;
int length = 0;
length = dis.readInt();
if (length == -1) {
strReturn = null;
} else {
if (length > commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length) {
if (length < 1024
&& commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION.length == 0) {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[1024];
} else {
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION = new byte[2 * length];
}
}
dis.readFully(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length);
strReturn = new String(
commonByteArray_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION,
0, length, utf8Charset);
}
return strReturn;
}
private void writeString(String str, ObjectOutputStream dos)
throws IOException {
if (str == null) {
dos.writeInt(-1);
} else {
byte[] byteArray = str.getBytes(utf8Charset);
dos.writeInt(byteArray.length);
dos.write(byteArray);
}
}
private Integer readInteger(ObjectInputStream dis) throws IOException {
Integer intReturn;
int length = 0;
length = dis.readByte();
if (length == -1) {
intReturn = null;
} else {
intReturn = dis.readInt();
}
return intReturn;
}
private void writeInteger(Integer intNum, ObjectOutputStream dos)
throws IOException {
if (intNum == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeInt(intNum);
}
}
public void readData(ObjectInputStream dis) {
synchronized (commonByteArrayLock_FIL_GALAXIE_GALAXIE__MRJ__ALIMENTATION) {
try {
int length = 0;
this.moment = readDate(dis);
this.pid = readString(dis);
this.father_pid = readString(dis);
this.root_pid = readString(dis);
length = dis.readByte();
if (length == -1) {
this.system_pid = null;
} else {
this.system_pid = dis.readLong();
}
this.project = readString(dis);
this.job = readString(dis);
this.job_repository_id = readString(dis);
this.job_version = readString(dis);
this.context = readString(dis);
this.origin = readString(dis);
this.label = readString(dis);
this.count = readInteger(dis);
this.reference = readInteger(dis);
this.thresholds = readString(dis);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
public void writeData(ObjectOutputStream dos) {
try {
// java.util.Date
writeDate(this.moment, dos);
// String
writeString(this.pid, dos);
// String
writeString(this.father_pid, dos);
// String
writeString(this.root_pid, dos);
// Long
if (this.system_pid == null) {
dos.writeByte(-1);
} else {
dos.writeByte(0);
dos.writeLong(this.system_pid);
}
// String
writeString(this.project, dos);
// String
writeString(this.job, dos);
// String
writeString(this.job_repository_id, dos);
// String
writeString(this.job_version, dos);
// String
writeString(this.context, dos);
// String
writeString(this.origin, dos);
// String
writeString(this.label, dos);
// Integer
writeInteger(this.count, dos);
// Integer
writeInteger(this.reference, dos);
// String
writeString(this.thresholds, dos);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("[");
sb.append("moment=" + String.valueOf(moment));
sb.append(",pid=" + pid);
sb.append(",father_pid=" + father_pid);
sb.append(",root_pid=" + root_pid);
sb.append(",system_pid=" + String.valueOf(system_pid));
sb.append(",project=" + project);
sb.append(",job=" + job);
sb.append(",job_repository_id=" + job_repository_id);
sb.append(",job_version=" + job_version);
sb.append(",context=" + context);
sb.append(",origin=" + origin);
sb.append(",label=" + label);
sb.append(",count=" + String.valueOf(count));
sb.append(",reference=" + String.valueOf(reference));
sb.append(",thresholds=" + thresholds);
sb.append("]");
return sb.toString();
}
/**
* Compare keys
*/
public int compareTo(row_talendMeter_METTERStruct other) {
int returnValue = -1;
return returnValue;
}
private int checkNullsAndCompare(Object object1, Object object2) {
int returnValue = 0;
if (object1 instanceof Comparable && object2 instanceof Comparable) {
returnValue = ((Comparable) object1).compareTo(object2);
} else if (object1 != null && object2 != null) {
returnValue = compareStrings(object1.toString(),
object2.toString());
} else if (object1 == null && object2 != null) {
returnValue = 1;
} else if (object1 != null && object2 == null) {
returnValue = -1;
} else {
returnValue = 0;
}
return returnValue;
}
private int compareStrings(String string1, String string2) {
return string1.compareTo(string2);
}
}
public void talendMeter_METTERProcess(
final java.util.Map globalMap)
throws TalendException {
globalMap.put("talendMeter_METTER_SUBPROCESS_STATE", 0);
final boolean execStat = this.execStat;
String currentVirtualComponent = null;
String iterateId = "";
String currentComponent = "";
java.util.Map resourceMap = new java.util.HashMap();
try {
String currentMethodName = new java.lang.Exception()
.getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if (resumeEntryMethodName == null || resumeIt || globalResumeTicket) {// start
// the
// resume
globalResumeTicket = true;
row_talendMeter_METTERStruct row_talendMeter_METTER = new row_talendMeter_METTERStruct();
row_talendMeter_METTERStruct row_talendMeter_FILE = row_talendMeter_METTER;
/**
* [talendMeter_DB begin ] start
*/
ok_Hash.put("talendMeter_DB", false);
start_Hash.put("talendMeter_DB", System.currentTimeMillis());
currentVirtualComponent = "talendMeter_DB";
currentComponent = "talendMeter_DB";
int tos_count_talendMeter_DB = 0;
String dbschema_talendMeter_DB = null;
dbschema_talendMeter_DB = (String) globalMap.get("schema_"
+ "connectionStatsLogs");
String tableName_talendMeter_DB = null;
if (dbschema_talendMeter_DB == null
|| dbschema_talendMeter_DB.trim().length() == 0) {
tableName_talendMeter_DB = "talend_flowcatcher";
} else {
tableName_talendMeter_DB = dbschema_talendMeter_DB
+ "\".\"" + "talend_flowcatcher";
}
int nb_line_talendMeter_DB = 0;
int nb_line_update_talendMeter_DB = 0;
int nb_line_inserted_talendMeter_DB = 0;
int nb_line_deleted_talendMeter_DB = 0;
int nb_line_rejected_talendMeter_DB = 0;
int deletedCount_talendMeter_DB = 0;
int updatedCount_talendMeter_DB = 0;
int insertedCount_talendMeter_DB = 0;
int rejectedCount_talendMeter_DB = 0;
boolean whetherReject_talendMeter_DB = false;
java.sql.Connection conn_talendMeter_DB = null;
String dbUser_talendMeter_DB = null;
conn_talendMeter_DB = (java.sql.Connection) globalMap
.get("conn_connectionStatsLogs");
int batchSize_talendMeter_DB = 10000;
int batchSizeCounter_talendMeter_DB = 0;
int count_talendMeter_DB = 0;
// [%connection%][checktable][tableName]
String keyCheckTable_talendMeter_DB = conn_talendMeter_DB
+ "[checktable]" + "[" + "talend_flowcatcher" + "]";
if (GlobalResource.resourceMap
.get(keyCheckTable_talendMeter_DB) == null) {// }
synchronized (GlobalResource.resourceLockMap
.get(keyCheckTable_talendMeter_DB)) {// }
if (GlobalResource.resourceMap
.get(keyCheckTable_talendMeter_DB) == null) {// }
java.sql.DatabaseMetaData dbMetaData_talendMeter_DB = conn_talendMeter_DB
.getMetaData();
java.sql.ResultSet rsTable_talendMeter_DB = dbMetaData_talendMeter_DB
.getTables(null, null, null,
new String[] { "TABLE" });
boolean whetherExist_talendMeter_DB = false;
String defaultSchema_talendMeter_DB = "public";
if (dbschema_talendMeter_DB == null
|| dbschema_talendMeter_DB.trim().length() == 0) {
java.sql.Statement stmtSchema_talendMeter_DB = conn_talendMeter_DB
.createStatement();
java.sql.ResultSet rsSchema_talendMeter_DB = stmtSchema_talendMeter_DB
.executeQuery("select current_schema() ");
while (rsSchema_talendMeter_DB.next()) {
defaultSchema_talendMeter_DB = rsSchema_talendMeter_DB
.getString("current_schema");
}
rsSchema_talendMeter_DB.close();
stmtSchema_talendMeter_DB.close();
}
while (rsTable_talendMeter_DB.next()) {
String table_talendMeter_DB = rsTable_talendMeter_DB
.getString("TABLE_NAME");
String schema_talendMeter_DB = rsTable_talendMeter_DB
.getString("TABLE_SCHEM");
if (table_talendMeter_DB
.equals("talend_flowcatcher")
&& (schema_talendMeter_DB
.equals(dbschema_talendMeter_DB) || ((dbschema_talendMeter_DB == null || dbschema_talendMeter_DB
.trim().length() == 0) && defaultSchema_talendMeter_DB
.equals(schema_talendMeter_DB)))) {
whetherExist_talendMeter_DB = true;
break;
}
}
rsTable_talendMeter_DB.close();
if (!whetherExist_talendMeter_DB) {
java.sql.Statement stmtCreate_talendMeter_DB = conn_talendMeter_DB
.createStatement();
stmtCreate_talendMeter_DB
.execute("CREATE TABLE \""
+ tableName_talendMeter_DB
+ "\"(\"moment\" TIMESTAMP(0) ,\"pid\" VARCHAR(20) ,\"father_pid\" VARCHAR(20) ,\"root_pid\" VARCHAR(20) ,\"system_pid\" INT8 ,\"project\" VARCHAR(50) ,\"job\" VARCHAR(255) ,\"job_repository_id\" VARCHAR(255) ,\"job_version\" VARCHAR(255) ,\"context\" VARCHAR(50) ,\"origin\" VARCHAR(255) ,\"label\" VARCHAR(255) ,\"count\" INT4 ,\"reference\" INT4 ,\"thresholds\" VARCHAR(255) )");
stmtCreate_talendMeter_DB.close();
}
GlobalResource.resourceMap.put(
keyCheckTable_talendMeter_DB, true);
// {{{
} // end of if
} // end synchronized
}
String insert_talendMeter_DB = "INSERT INTO \""
+ tableName_talendMeter_DB
+ "\" (\"moment\",\"pid\",\"father_pid\",\"root_pid\",\"system_pid\",\"project\",\"job\",\"job_repository_id\",\"job_version\",\"context\",\"origin\",\"label\",\"count\",\"reference\",\"thresholds\") VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
java.sql.PreparedStatement pstmt_talendMeter_DB = conn_talendMeter_DB
.prepareStatement(insert_talendMeter_DB);
/**
* [talendMeter_DB begin ] stop
*/
/**
* [talendMeter_FILE begin ] start
*/
ok_Hash.put("talendMeter_FILE", false);
start_Hash.put("talendMeter_FILE", System.currentTimeMillis());
currentVirtualComponent = "talendMeter_FILE";
currentComponent = "talendMeter_FILE";
int tos_count_talendMeter_FILE = 0;
String fileName_talendMeter_FILE = "";
fileName_talendMeter_FILE = (new java.io.File(
context.CTX_PRM_RepertoireLog + "/"
+ context.CTX_PRM_FichierMetrique))
.getAbsolutePath().replace("\\", "/");
String fullName_talendMeter_FILE = null;
String extension_talendMeter_FILE = null;
String directory_talendMeter_FILE = null;
if ((fileName_talendMeter_FILE.indexOf("/") != -1)) {
if (fileName_talendMeter_FILE.lastIndexOf(".") < fileName_talendMeter_FILE
.lastIndexOf("/")) {
fullName_talendMeter_FILE = fileName_talendMeter_FILE;
extension_talendMeter_FILE = "";
} else {
fullName_talendMeter_FILE = fileName_talendMeter_FILE
.substring(0, fileName_talendMeter_FILE
.lastIndexOf("."));
extension_talendMeter_FILE = fileName_talendMeter_FILE
.substring(fileName_talendMeter_FILE
.lastIndexOf("."));
}
directory_talendMeter_FILE = fileName_talendMeter_FILE
.substring(0,
fileName_talendMeter_FILE.lastIndexOf("/"));
} else {
if (fileName_talendMeter_FILE.lastIndexOf(".") != -1) {
fullName_talendMeter_FILE = fileName_talendMeter_FILE
.substring(0, fileName_talendMeter_FILE
.lastIndexOf("."));
extension_talendMeter_FILE = fileName_talendMeter_FILE
.substring(fileName_talendMeter_FILE
.lastIndexOf("."));
} else {
fullName_talendMeter_FILE = fileName_talendMeter_FILE;
extension_talendMeter_FILE = "";
}
directory_talendMeter_FILE = "";
}
boolean isFileGenerated_talendMeter_FILE = true;
java.io.File filetalendMeter_FILE = new java.io.File(
fileName_talendMeter_FILE);
globalMap.put("talendMeter_FILE_FILE_NAME",
fileName_talendMeter_FILE);
if (filetalendMeter_FILE.exists()) {
isFileGenerated_talendMeter_FILE = false;
}
int nb_line_talendMeter_FILE = 0;
int splitEvery_talendMeter_FILE = 1000;
int splitedFileNo_talendMeter_FILE = 0;
int currentRow_talendMeter_FILE = 0;
final String OUT_DELIM_talendMeter_FILE = /**
* Start field
* talendMeter_FILE:FIELDSEPARATOR
*/
";"/** End field talendMeter_FILE:FIELDSEPARATOR */
;
final String OUT_DELIM_ROWSEP_talendMeter_FILE = /**
* Start field
* talendMeter_FILE:ROWSEPARATOR
*/
"\n"/** End field talendMeter_FILE:ROWSEPARATOR */
;
// create directory only if not exists
if (directory_talendMeter_FILE != null
&& directory_talendMeter_FILE.trim().length() != 0) {
java.io.File dir_talendMeter_FILE = new java.io.File(
directory_talendMeter_FILE);
if (!dir_talendMeter_FILE.exists()) {
dir_talendMeter_FILE.mkdirs();
}
}
// routines.system.Row
java.io.Writer outtalendMeter_FILE = null;
outtalendMeter_FILE = new java.io.BufferedWriter(
new java.io.OutputStreamWriter(
new java.io.FileOutputStream(
fileName_talendMeter_FILE, true),
"ISO-8859-15"));
resourceMap.put("out_talendMeter_FILE", outtalendMeter_FILE);
resourceMap.put("nb_line_talendMeter_FILE",
nb_line_talendMeter_FILE);
/**
* [talendMeter_FILE begin ] stop
*/
/**
* [talendMeter_METTER begin ] start
*/
ok_Hash.put("talendMeter_METTER", false);
start_Hash
.put("talendMeter_METTER", System.currentTimeMillis());
currentVirtualComponent = "talendMeter_METTER";
currentComponent = "talendMeter_METTER";
int tos_count_talendMeter_METTER = 0;
for (MetterCatcherUtils.MetterCatcherMessage mcm : talendMeter_METTER
.getMessages()) {
row_talendMeter_METTER.pid = pid;
row_talendMeter_METTER.root_pid = rootPid;
row_talendMeter_METTER.father_pid = fatherPid;
row_talendMeter_METTER.project = projectName;
row_talendMeter_METTER.job = jobName;
row_talendMeter_METTER.context = contextStr;
row_talendMeter_METTER.origin = (mcm.getOrigin() == null
|| mcm.getOrigin().length() < 1 ? null : mcm
.getOrigin());
row_talendMeter_METTER.moment = mcm.getMoment();
row_talendMeter_METTER.job_version = mcm.getJobVersion();
row_talendMeter_METTER.job_repository_id = mcm.getJobId();
row_talendMeter_METTER.system_pid = mcm.getSystemPid();
row_talendMeter_METTER.label = mcm.getLabel();
row_talendMeter_METTER.count = mcm.getCount();
row_talendMeter_METTER.reference = talendMeter_METTER
.getConnLinesCount(mcm.getReferense() + "_count");
row_talendMeter_METTER.thresholds = mcm.getThresholds();
/**
* [talendMeter_METTER begin ] stop
*/
/**
* [talendMeter_METTER main ] start
*/
currentVirtualComponent = "talendMeter_METTER";
currentComponent = "talendMeter_METTER";
tos_count_talendMeter_METTER++;
/**
* [talendMeter_METTER main ] stop
*/
/**
* [talendMeter_FILE main ] start
*/
currentVirtualComponent = "talendMeter_FILE";
currentComponent = "talendMeter_FILE";
StringBuilder sb_talendMeter_FILE = new StringBuilder();
if (row_talendMeter_METTER.moment != null) {
sb_talendMeter_FILE.append(FormatterUtils.format_Date(
row_talendMeter_METTER.moment,
"yyyy-MM-dd HH:mm:ss"));
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.pid != null) {
sb_talendMeter_FILE.append(row_talendMeter_METTER.pid);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.father_pid != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.father_pid);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.root_pid != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.root_pid);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.system_pid != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.system_pid);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.project != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.project);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.job != null) {
sb_talendMeter_FILE.append(row_talendMeter_METTER.job);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.job_repository_id != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.job_repository_id);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.job_version != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.job_version);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.context != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.context);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.origin != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.origin);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.label != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.label);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.count != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.count);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.reference != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.reference);
}
sb_talendMeter_FILE.append(OUT_DELIM_talendMeter_FILE);
if (row_talendMeter_METTER.thresholds != null) {
sb_talendMeter_FILE
.append(row_talendMeter_METTER.thresholds);
}
sb_talendMeter_FILE
.append(OUT_DELIM_ROWSEP_talendMeter_FILE);
nb_line_talendMeter_FILE++;
resourceMap.put("nb_line_talendMeter_FILE",
nb_line_talendMeter_FILE);
outtalendMeter_FILE.write(sb_talendMeter_FILE.toString());
row_talendMeter_FILE = row_talendMeter_METTER;
tos_count_talendMeter_FILE++;
/**
* [talendMeter_FILE main ] stop
*/
/**
* [talendMeter_DB main ] start
*/
currentVirtualComponent = "talendMeter_DB";
currentComponent = "talendMeter_DB";
whetherReject_talendMeter_DB = false;
if (row_talendMeter_FILE.moment != null) {
pstmt_talendMeter_DB.setTimestamp(1,
new java.sql.Timestamp(
row_talendMeter_FILE.moment.getTime()));
} else {
pstmt_talendMeter_DB.setNull(1,
java.sql.Types.TIMESTAMP);
}
if (row_talendMeter_FILE.pid == null) {
pstmt_talendMeter_DB.setNull(2, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(2,
row_talendMeter_FILE.pid);
}
if (row_talendMeter_FILE.father_pid == null) {
pstmt_talendMeter_DB.setNull(3, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(3,
row_talendMeter_FILE.father_pid);
}
if (row_talendMeter_FILE.root_pid == null) {
pstmt_talendMeter_DB.setNull(4, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(4,
row_talendMeter_FILE.root_pid);
}
if (row_talendMeter_FILE.system_pid == null) {
pstmt_talendMeter_DB.setNull(5, java.sql.Types.INTEGER);
} else {
pstmt_talendMeter_DB.setLong(5,
row_talendMeter_FILE.system_pid);
}
if (row_talendMeter_FILE.project == null) {
pstmt_talendMeter_DB.setNull(6, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(6,
row_talendMeter_FILE.project);
}
if (row_talendMeter_FILE.job == null) {
pstmt_talendMeter_DB.setNull(7, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(7,
row_talendMeter_FILE.job);
}
if (row_talendMeter_FILE.job_repository_id == null) {
pstmt_talendMeter_DB.setNull(8, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(8,
row_talendMeter_FILE.job_repository_id);
}
if (row_talendMeter_FILE.job_version == null) {
pstmt_talendMeter_DB.setNull(9, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(9,
row_talendMeter_FILE.job_version);
}
if (row_talendMeter_FILE.context == null) {
pstmt_talendMeter_DB
.setNull(10, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(10,
row_talendMeter_FILE.context);
}
if (row_talendMeter_FILE.origin == null) {
pstmt_talendMeter_DB
.setNull(11, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(11,
row_talendMeter_FILE.origin);
}
if (row_talendMeter_FILE.label == null) {
pstmt_talendMeter_DB
.setNull(12, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(12,
row_talendMeter_FILE.label);
}
if (row_talendMeter_FILE.count == null) {
pstmt_talendMeter_DB
.setNull(13, java.sql.Types.INTEGER);
} else {
pstmt_talendMeter_DB.setInt(13,
row_talendMeter_FILE.count);
}
if (row_talendMeter_FILE.reference == null) {
pstmt_talendMeter_DB
.setNull(14, java.sql.Types.INTEGER);
} else {
pstmt_talendMeter_DB.setInt(14,
row_talendMeter_FILE.reference);
}
if (row_talendMeter_FILE.thresholds == null) {
pstmt_talendMeter_DB
.setNull(15, java.sql.Types.VARCHAR);
} else {
pstmt_talendMeter_DB.setString(15,
row_talendMeter_FILE.thresholds);
}
pstmt_talendMeter_DB.addBatch();
nb_line_talendMeter_DB++;
batchSizeCounter_talendMeter_DB++;
if ((batchSize_talendMeter_DB > 0)
&& (batchSize_talendMeter_DB <= batchSizeCounter_talendMeter_DB)) {
try {
int countSum_talendMeter_DB = 0;
for (int countEach_talendMeter_DB : pstmt_talendMeter_DB
.executeBatch()) {
countSum_talendMeter_DB += (countEach_talendMeter_DB < 0 ? 0
: countEach_talendMeter_DB);
}
insertedCount_talendMeter_DB += countSum_talendMeter_DB;
batchSizeCounter_talendMeter_DB = 0;
} catch (java.sql.BatchUpdateException e) {
int countSum_talendMeter_DB = 0;
for (int countEach_talendMeter_DB : e
.getUpdateCounts()) {
countSum_talendMeter_DB += (countEach_talendMeter_DB < 0 ? 0
: countEach_talendMeter_DB);
}
insertedCount_talendMeter_DB += countSum_talendMeter_DB;
System.err.println(e.getMessage());
}
}
tos_count_talendMeter_DB++;
/**
* [talendMeter_DB main ] stop
*/
/**
* [talendMeter_METTER end ] start
*/
currentVirtualComponent = "talendMeter_METTER";
currentComponent = "talendMeter_METTER";
}
ok_Hash.put("talendMeter_METTER", true);
end_Hash.put("talendMeter_METTER", System.currentTimeMillis());
/**
* [talendMeter_METTER end ] stop
*/
/**
* [talendMeter_FILE end ] start
*/
currentVirtualComponent = "talendMeter_FILE";
currentComponent = "talendMeter_FILE";
if (outtalendMeter_FILE != null) {
outtalendMeter_FILE.flush();
outtalendMeter_FILE.close();
}
globalMap.put("talendMeter_FILE_NB_LINE",
nb_line_talendMeter_FILE);
globalMap.put("talendMeter_FILE_FILE_NAME",
fileName_talendMeter_FILE);
resourceMap.put("finish_talendMeter_FILE", true);
ok_Hash.put("talendMeter_FILE", true);
end_Hash.put("talendMeter_FILE", System.currentTimeMillis());
/**
* [talendMeter_FILE end ] stop
*/
/**
* [talendMeter_DB end ] start
*/
currentVirtualComponent = "talendMeter_DB";
currentComponent = "talendMeter_DB";
try {
int countSum_talendMeter_DB = 0;
if (pstmt_talendMeter_DB != null
&& batchSizeCounter_talendMeter_DB > 0) {
for (int countEach_talendMeter_DB : pstmt_talendMeter_DB
.executeBatch()) {
countSum_talendMeter_DB += (countEach_talendMeter_DB < 0 ? 0
: countEach_talendMeter_DB);
}
}
insertedCount_talendMeter_DB += countSum_talendMeter_DB;
} catch (java.sql.BatchUpdateException e) {
int countSum_talendMeter_DB = 0;
for (int countEach_talendMeter_DB : e.getUpdateCounts()) {
countSum_talendMeter_DB += (countEach_talendMeter_DB < 0 ? 0
: countEach_talendMeter_DB);
}
insertedCount_talendMeter_DB += countSum_talendMeter_DB;
System.err.println(e.getMessage());
}
if (pstmt_talendMeter_DB != null) {
pstmt_talendMeter_DB.close();
}
nb_line_deleted_talendMeter_DB = nb_line_deleted_talendMeter_DB
+ deletedCount_talendMeter_DB;
nb_line_update_talendMeter_DB = nb_line_update_talendMeter_DB
+ updatedCount_talendMeter_DB;
nb_line_inserted_talendMeter_DB = nb_line_inserted_talendMeter_DB
+ insertedCount_talendMeter_DB;
nb_line_rejected_talendMeter_DB = nb_line_rejected_talendMeter_DB
+ rejectedCount_talendMeter_DB;
globalMap.put("talendMeter_DB_NB_LINE", nb_line_talendMeter_DB);
globalMap.put("talendMeter_DB_NB_LINE_UPDATED",
nb_line_update_talendMeter_DB);
globalMap.put("talendMeter_DB_NB_LINE_INSERTED",
nb_line_inserted_talendMeter_DB);
globalMap.put("talendMeter_DB_NB_LINE_DELETED",
nb_line_deleted_talendMeter_DB);
globalMap.put("talendMeter_DB_NB_LINE_REJECTED",
nb_line_rejected_talendMeter_DB);
ok_Hash.put("talendMeter_DB", true);
end_Hash.put("talendMeter_DB", System.currentTimeMillis());
/**
* [talendMeter_DB end ] stop
*/
}// end the resume
if (resumeEntryMethodName == null || globalResumeTicket) {
resumeUtil
.addLog("CHECKPOINT",
"CONNECTION:SUBJOB_OK:talendMeter_METTER:sub_ok_talendMeter_connectionStatsLogs_Commit",
"", Thread.currentThread().getId() + "", "",
"", "", "", "");
}
connectionStatsLogs_CommitProcess(globalMap);
} catch (java.lang.Exception e) {
TalendException te = new TalendException(e, currentComponent,
globalMap);
te.setVirtualComponentName(currentVirtualComponent);
throw te;
} catch (java.lang.Error error) {
throw error;
} finally {
try {
/**
* [talendMeter_METTER finally ] start
*/
currentVirtualComponent = "talendMeter_METTER";
currentComponent = "talendMeter_METTER";
/**
* [talendMeter_METTER finally ] stop
*/
/**
* [talendMeter_FILE finally ] start
*/
currentVirtualComponent = "talendMeter_FILE";
currentComponent = "talendMeter_FILE";
if (resourceMap.get("finish_talendMeter_FILE") == null) {
java.io.Writer outtalendMeter_FILE = (java.io.Writer) resourceMap
.get("out_talendMeter_FILE");
if (outtalendMeter_FILE != null) {
outtalendMeter_FILE.flush();
outtalendMeter_FILE.close();
}
}
/**
* [talendMeter_FILE finally ] stop
*/
/**
* [talendMeter_DB finally ] start
*/
currentVirtualComponent = "talendMeter_DB";
currentComponent = "talendMeter_DB";
/**
* [talendMeter_DB finally ] stop
*/
} catch (java.lang.Exception e) {
// ignore
} catch (java.lang.Error error) {
// ignore
}
resourceMap = null;
}
globalMap.put("talendMeter_METTER_SUBPROCESS_STATE", 1);
}
public String resuming_logs_dir_path = null;
public String resuming_checkpoint_path = null;
public String parent_part_launcher = null;
private String resumeEntryMethodName = null;
private boolean globalResumeTicket = false;
public boolean watch = false;
// portStats is null, it means don't execute the statistics
public Integer portStats = null;
public int portTraces = 4334;
public String clientHost;
public String defaultClientHost = "localhost";
public String contextStr = "RE7";
public boolean isDefaultContext = true;
public String pid = "0";
public String rootPid = null;
public String fatherPid = null;
public String fatherNode = null;
public long startTime = 0;
public boolean isChildJob = false;
public String log4jLevel = "";
private boolean execStat = true;
private ThreadLocal> threadLocal = new ThreadLocal>() {
protected java.util.Map initialValue() {
java.util.Map threadRunResultMap = new java.util.HashMap();
threadRunResultMap.put("errorCode", null);
threadRunResultMap.put("status", "");
return threadRunResultMap;
};
};
private java.util.Properties context_param = new java.util.Properties();
public java.util.Map parentContextMap = new java.util.HashMap();
public String status = "";
public static void main(String[] args) {
final GALAXIE__MRJ__ALIMENTATION GALAXIE__MRJ__ALIMENTATIONClass = new GALAXIE__MRJ__ALIMENTATION();
int exitCode = GALAXIE__MRJ__ALIMENTATIONClass.runJobInTOS(args);
System.exit(exitCode);
}
public String[][] runJob(String[] args) {
int exitCode = runJobInTOS(args);
String[][] bufferValue = new String[][] { { Integer.toString(exitCode) } };
return bufferValue;
}
public boolean hastBufferOutputComponent() {
boolean hastBufferOutput = false;
return hastBufferOutput;
}
public int runJobInTOS(String[] args) {
// reset status
status = "";
String lastStr = "";
for (String arg : args) {
if (arg.equalsIgnoreCase("--context_param")) {
lastStr = arg;
} else if (lastStr.equals("")) {
evalParam(arg);
} else {
evalParam(lastStr + " " + arg);
lastStr = "";
}
}
if (clientHost == null) {
clientHost = defaultClientHost;
}
if (pid == null || "0".equals(pid)) {
pid = TalendString.getAsciiRandomString(6);
}
if (rootPid == null) {
rootPid = pid;
}
if (fatherPid == null) {
fatherPid = pid;
} else {
isChildJob = true;
}
try {
// call job/subjob with an existing context, like:
// --context=production. if without this parameter, there will use
// the default context instead.
java.io.InputStream inContext = GALAXIE__MRJ__ALIMENTATION.class
.getClassLoader().getResourceAsStream(
"fil_galaxie/galaxie__mrj__alimentation_0_1/contexts/"
+ contextStr + ".properties");
if (isDefaultContext && inContext == null) {
} else {
if (inContext != null) {
// defaultProps is in order to keep the original context
// value
defaultProps.load(inContext);
inContext.close();
context = new ContextProperties(defaultProps);
} else {
// print info and job continue to run, for case:
// context_param is not empty.
System.err.println("Could not find the context "
+ contextStr);
}
}
if (!context_param.isEmpty()) {
context.putAll(context_param);
}
context.CTX_EMAIL_Destinataire = (String) context
.getProperty("CTX_EMAIL_Destinataire");
context.CTX_EMAIL_Destinataire_copie = (String) context
.getProperty("CTX_EMAIL_Destinataire_copie");
context.CTX_EMAIL_Destinataire_copie_cachee = (String) context
.getProperty("CTX_EMAIL_Destinataire_copie_cachee");
context.CTX_EMAIL_Emetteur = (String) context
.getProperty("CTX_EMAIL_Emetteur");
try {
context.CTX_EMAIL_Envoi_active = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_EMAIL_Envoi_active"));
} catch (NumberFormatException e) {
context.CTX_EMAIL_Envoi_active = null;
}
context.CTX_EMAIL_Login = (String) context
.getProperty("CTX_EMAIL_Login");
String pwd_CTX_EMAIL_Password_value = context
.getProperty("CTX_EMAIL_Password");
context.CTX_EMAIL_Password = null;
if (pwd_CTX_EMAIL_Password_value != null) {
if (context_param.containsKey("CTX_EMAIL_Password")) {// no need
// to
// decrypt
// if it
// come
// from
// program
// argument
// or
// parent
// job
// runtime
context.CTX_EMAIL_Password = pwd_CTX_EMAIL_Password_value;
} else if (!pwd_CTX_EMAIL_Password_value.isEmpty()) {
try {
context.CTX_EMAIL_Password = routines.system.PasswordEncryptUtil
.decryptPassword(pwd_CTX_EMAIL_Password_value);
context.put("CTX_EMAIL_Password",
context.CTX_EMAIL_Password);
} catch (java.lang.RuntimeException e) {
// do nothing
}
}
}
context.CTX_EMAIL_Serveur_port = (String) context
.getProperty("CTX_EMAIL_Serveur_port");
context.CTX_EMAIL_Serveur_SMTP = (String) context
.getProperty("CTX_EMAIL_Serveur_SMTP");
context.CTX_PGS_COMPTAFIL_Database = (String) context
.getProperty("CTX_PGS_COMPTAFIL_Database");
context.CTX_PGS_COMPTAFIL_Login = (String) context
.getProperty("CTX_PGS_COMPTAFIL_Login");
String pwd_CTX_PGS_COMPTAFIL_Password_value = context
.getProperty("CTX_PGS_COMPTAFIL_Password");
context.CTX_PGS_COMPTAFIL_Password = null;
if (pwd_CTX_PGS_COMPTAFIL_Password_value != null) {
if (context_param.containsKey("CTX_PGS_COMPTAFIL_Password")) {// no
// need
// to
// decrypt
// if
// it
// come
// from
// program
// argument
// or
// parent
// job
// runtime
context.CTX_PGS_COMPTAFIL_Password = pwd_CTX_PGS_COMPTAFIL_Password_value;
} else if (!pwd_CTX_PGS_COMPTAFIL_Password_value.isEmpty()) {
try {
context.CTX_PGS_COMPTAFIL_Password = routines.system.PasswordEncryptUtil
.decryptPassword(pwd_CTX_PGS_COMPTAFIL_Password_value);
context.put("CTX_PGS_COMPTAFIL_Password",
context.CTX_PGS_COMPTAFIL_Password);
} catch (java.lang.RuntimeException e) {
// do nothing
}
}
}
context.CTX_PGS_COMPTAFIL_Port = (String) context
.getProperty("CTX_PGS_COMPTAFIL_Port");
context.CTX_PGS_COMPTAFIL_Schema = (String) context
.getProperty("CTX_PGS_COMPTAFIL_Schema");
context.CTX_PGS_COMPTAFIL_Server = (String) context
.getProperty("CTX_PGS_COMPTAFIL_Server");
context.CTX_PGS_COMPTALIS_Database = (String) context
.getProperty("CTX_PGS_COMPTALIS_Database");
context.CTX_PGS_COMPTALIS_Login = (String) context
.getProperty("CTX_PGS_COMPTALIS_Login");
String pwd_CTX_PGS_COMPTALIS_Password_value = context
.getProperty("CTX_PGS_COMPTALIS_Password");
context.CTX_PGS_COMPTALIS_Password = null;
if (pwd_CTX_PGS_COMPTALIS_Password_value != null) {
if (context_param.containsKey("CTX_PGS_COMPTALIS_Password")) {// no
// need
// to
// decrypt
// if
// it
// come
// from
// program
// argument
// or
// parent
// job
// runtime
context.CTX_PGS_COMPTALIS_Password = pwd_CTX_PGS_COMPTALIS_Password_value;
} else if (!pwd_CTX_PGS_COMPTALIS_Password_value.isEmpty()) {
try {
context.CTX_PGS_COMPTALIS_Password = routines.system.PasswordEncryptUtil
.decryptPassword(pwd_CTX_PGS_COMPTALIS_Password_value);
context.put("CTX_PGS_COMPTALIS_Password",
context.CTX_PGS_COMPTALIS_Password);
} catch (java.lang.RuntimeException e) {
// do nothing
}
}
}
context.CTX_PGS_COMPTALIS_Port = (String) context
.getProperty("CTX_PGS_COMPTALIS_Port");
context.CTX_PGS_COMPTALIS_Schema = (String) context
.getProperty("CTX_PGS_COMPTALIS_Schema");
context.CTX_PGS_COMPTALIS_Server = (String) context
.getProperty("CTX_PGS_COMPTALIS_Server");
try {
context.CTX_PGS_CRM_CommitInterval = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PGS_CRM_CommitInterval"));
} catch (NumberFormatException e) {
context.CTX_PGS_CRM_CommitInterval = null;
}
context.CTX_PGS_CRM_Database = (String) context
.getProperty("CTX_PGS_CRM_Database");
context.CTX_PGS_CRM_Login = (String) context
.getProperty("CTX_PGS_CRM_Login");
String pwd_CTX_PGS_CRM_Password_value = context
.getProperty("CTX_PGS_CRM_Password");
context.CTX_PGS_CRM_Password = null;
if (pwd_CTX_PGS_CRM_Password_value != null) {
if (context_param.containsKey("CTX_PGS_CRM_Password")) {// no
// need
// to
// decrypt
// if it
// come
// from
// program
// argument
// or
// parent
// job
// runtime
context.CTX_PGS_CRM_Password = pwd_CTX_PGS_CRM_Password_value;
} else if (!pwd_CTX_PGS_CRM_Password_value.isEmpty()) {
try {
context.CTX_PGS_CRM_Password = routines.system.PasswordEncryptUtil
.decryptPassword(pwd_CTX_PGS_CRM_Password_value);
context.put("CTX_PGS_CRM_Password",
context.CTX_PGS_CRM_Password);
} catch (java.lang.RuntimeException e) {
// do nothing
}
}
}
context.CTX_PGS_CRM_Port = (String) context
.getProperty("CTX_PGS_CRM_Port");
context.CTX_PGS_CRM_Schema = (String) context
.getProperty("CTX_PGS_CRM_Schema");
context.CTX_PGS_CRM_Server = (String) context
.getProperty("CTX_PGS_CRM_Server");
try {
context.CTX_PGS_DSA_CommitInterval = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PGS_DSA_CommitInterval"));
} catch (NumberFormatException e) {
context.CTX_PGS_DSA_CommitInterval = null;
}
context.CTX_PGS_DSA_Database = (String) context
.getProperty("CTX_PGS_DSA_Database");
context.CTX_PGS_DSA_Login = (String) context
.getProperty("CTX_PGS_DSA_Login");
String pwd_CTX_PGS_DSA_Password_value = context
.getProperty("CTX_PGS_DSA_Password");
context.CTX_PGS_DSA_Password = null;
if (pwd_CTX_PGS_DSA_Password_value != null) {
if (context_param.containsKey("CTX_PGS_DSA_Password")) {// no
// need
// to
// decrypt
// if it
// come
// from
// program
// argument
// or
// parent
// job
// runtime
context.CTX_PGS_DSA_Password = pwd_CTX_PGS_DSA_Password_value;
} else if (!pwd_CTX_PGS_DSA_Password_value.isEmpty()) {
try {
context.CTX_PGS_DSA_Password = routines.system.PasswordEncryptUtil
.decryptPassword(pwd_CTX_PGS_DSA_Password_value);
context.put("CTX_PGS_DSA_Password",
context.CTX_PGS_DSA_Password);
} catch (java.lang.RuntimeException e) {
// do nothing
}
}
}
context.CTX_PGS_DSA_Port = (String) context
.getProperty("CTX_PGS_DSA_Port");
context.CTX_PGS_DSA_Schema = (String) context
.getProperty("CTX_PGS_DSA_Schema");
context.CTX_PGS_DSA_Server = (String) context
.getProperty("CTX_PGS_DSA_Server");
try {
context.CTX_PGS_ODS_CommitInterval = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PGS_ODS_CommitInterval"));
} catch (NumberFormatException e) {
context.CTX_PGS_ODS_CommitInterval = null;
}
context.CTX_PGS_ODS_Database = (String) context
.getProperty("CTX_PGS_ODS_Database");
context.CTX_PGS_ODS_Login = (String) context
.getProperty("CTX_PGS_ODS_Login");
String pwd_CTX_PGS_ODS_Password_value = context
.getProperty("CTX_PGS_ODS_Password");
context.CTX_PGS_ODS_Password = null;
if (pwd_CTX_PGS_ODS_Password_value != null) {
if (context_param.containsKey("CTX_PGS_ODS_Password")) {// no
// need
// to
// decrypt
// if it
// come
// from
// program
// argument
// or
// parent
// job
// runtime
context.CTX_PGS_ODS_Password = pwd_CTX_PGS_ODS_Password_value;
} else if (!pwd_CTX_PGS_ODS_Password_value.isEmpty()) {
try {
context.CTX_PGS_ODS_Password = routines.system.PasswordEncryptUtil
.decryptPassword(pwd_CTX_PGS_ODS_Password_value);
context.put("CTX_PGS_ODS_Password",
context.CTX_PGS_ODS_Password);
} catch (java.lang.RuntimeException e) {
// do nothing
}
}
}
context.CTX_PGS_ODS_Port = (String) context
.getProperty("CTX_PGS_ODS_Port");
context.CTX_PGS_ODS_Schema = (String) context
.getProperty("CTX_PGS_ODS_Schema");
context.CTX_PGS_ODS_Server = (String) context
.getProperty("CTX_PGS_ODS_Server");
context.CTX_PRM_ArchiveLogs = (String) context
.getProperty("CTX_PRM_ArchiveLogs");
context.CTX_PRM_CEV = (String) context.getProperty("CTX_PRM_CEV");
try {
context.CTX_PRM_CodeRetour = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PRM_CodeRetour"));
} catch (NumberFormatException e) {
context.CTX_PRM_CodeRetour = null;
}
try {
String context_CTX_PRM_DateDebut_value = context
.getProperty("CTX_PRM_DateDebut");
if (context_CTX_PRM_DateDebut_value == null) {
context_CTX_PRM_DateDebut_value = "";
}
int context_CTX_PRM_DateDebut_pos = context_CTX_PRM_DateDebut_value
.indexOf(";");
String context_CTX_PRM_DateDebut_pattern = "yyyy-MM-dd HH:mm:ss";
if (context_CTX_PRM_DateDebut_pos > -1) {
context_CTX_PRM_DateDebut_pattern = context_CTX_PRM_DateDebut_value
.substring(0, context_CTX_PRM_DateDebut_pos);
context_CTX_PRM_DateDebut_value = context_CTX_PRM_DateDebut_value
.substring(context_CTX_PRM_DateDebut_pos + 1);
}
context.CTX_PRM_DateDebut = (java.util.Date) (new java.text.SimpleDateFormat(
context_CTX_PRM_DateDebut_pattern)
.parse(context_CTX_PRM_DateDebut_value));
} catch (ParseException e) {
context.CTX_PRM_DateDebut = null;
}
try {
String context_CTX_PRM_DateFin_value = context
.getProperty("CTX_PRM_DateFin");
if (context_CTX_PRM_DateFin_value == null) {
context_CTX_PRM_DateFin_value = "";
}
int context_CTX_PRM_DateFin_pos = context_CTX_PRM_DateFin_value
.indexOf(";");
String context_CTX_PRM_DateFin_pattern = "yyyy-MM-dd HH:mm:ss";
if (context_CTX_PRM_DateFin_pos > -1) {
context_CTX_PRM_DateFin_pattern = context_CTX_PRM_DateFin_value
.substring(0, context_CTX_PRM_DateFin_pos);
context_CTX_PRM_DateFin_value = context_CTX_PRM_DateFin_value
.substring(context_CTX_PRM_DateFin_pos + 1);
}
context.CTX_PRM_DateFin = (java.util.Date) (new java.text.SimpleDateFormat(
context_CTX_PRM_DateFin_pattern)
.parse(context_CTX_PRM_DateFin_value));
} catch (ParseException e) {
context.CTX_PRM_DateFin = null;
}
context.CTX_PRM_Edeal_ASSO_FIL = (String) context
.getProperty("CTX_PRM_Edeal_ASSO_FIL");
context.CTX_PRM_Edeal_ASSO_LIS = (String) context
.getProperty("CTX_PRM_Edeal_ASSO_LIS");
context.CTX_PRM_EdealBascounter = (String) context
.getProperty("CTX_PRM_EdealBascounter");
context.CTX_PRM_EdealBasid = (String) context
.getProperty("CTX_PRM_EdealBasid");
context.CTX_PRM_EdealCodeActor = (String) context
.getProperty("CTX_PRM_EdealCodeActor");
context.CTX_PRM_EdealIdActor = (String) context
.getProperty("CTX_PRM_EdealIdActor");
context.CTX_PRM_EdealLicence = (String) context
.getProperty("CTX_PRM_EdealLicence");
context.CTX_PRM_Environnement = (String) context
.getProperty("CTX_PRM_Environnement");
context.CTX_PRM_EQUALITING = (String) context
.getProperty("CTX_PRM_EQUALITING");
context.CTX_PRM_Exec_RES = (Object) context
.getProperty("CTX_PRM_Exec_RES");
context.CTX_PRM_FichierConfiguration = (String) context
.getProperty("CTX_PRM_FichierConfiguration");
context.CTX_PRM_FichierLog = (String) context
.getProperty("CTX_PRM_FichierLog");
context.CTX_PRM_FichierLogs = (String) context
.getProperty("CTX_PRM_FichierLogs");
context.CTX_PRM_FichierMetrique = (String) context
.getProperty("CTX_PRM_FichierMetrique");
context.CTX_PRM_FichierStatistique = (String) context
.getProperty("CTX_PRM_FichierStatistique");
context.CTX_PRM_fileEncodage = (String) context
.getProperty("CTX_PRM_fileEncodage");
context.CTX_PRM_fileName = (String) context
.getProperty("CTX_PRM_fileName");
try {
context.CTX_PRM_IdAudit = routines.system.ParserUtils
.parseTo_Long(context.getProperty("CTX_PRM_IdAudit"));
} catch (NumberFormatException e) {
context.CTX_PRM_IdAudit = null;
}
try {
context.CTX_PRM_IdEtape = routines.system.ParserUtils
.parseTo_Integer(context.getProperty("CTX_PRM_IdEtape"));
} catch (NumberFormatException e) {
context.CTX_PRM_IdEtape = null;
}
try {
context.CTX_PRM_IdEtapeDebut = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PRM_IdEtapeDebut"));
} catch (NumberFormatException e) {
context.CTX_PRM_IdEtapeDebut = null;
}
try {
context.CTX_PRM_IdEtapeFin = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PRM_IdEtapeFin"));
} catch (NumberFormatException e) {
context.CTX_PRM_IdEtapeFin = null;
}
context.CTX_PRM_listOfTableToDisableConstraints = (String) context
.getProperty("CTX_PRM_listOfTableToDisableConstraints");
try {
context.CTX_PRM_LKPCursorSize = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PRM_LKPCursorSize"));
} catch (NumberFormatException e) {
context.CTX_PRM_LKPCursorSize = null;
}
context.CTX_PRM_NomAppliSource = (String) context
.getProperty("CTX_PRM_NomAppliSource");
context.CTX_PRM_NomSource = (String) context
.getProperty("CTX_PRM_NomSource");
context.CTX_PRM_OLAKALA_ERROR = (String) context
.getProperty("CTX_PRM_OLAKALA_ERROR");
context.CTX_PRM_OLAKALA_FINISHED = (String) context
.getProperty("CTX_PRM_OLAKALA_FINISHED");
context.CTX_PRM_OLAKALA_PROGRESS = (String) context
.getProperty("CTX_PRM_OLAKALA_PROGRESS");
try {
context.CTX_PRM_ProfondeurRetentionLogs = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PRM_ProfondeurRetentionLogs"));
} catch (NumberFormatException e) {
context.CTX_PRM_ProfondeurRetentionLogs = null;
}
try {
context.CTX_PRM_ProfondeurRetentionRejets = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PRM_ProfondeurRetentionRejets"));
} catch (NumberFormatException e) {
context.CTX_PRM_ProfondeurRetentionRejets = null;
}
context.CTX_PRM_RepertoireConf = (String) context
.getProperty("CTX_PRM_RepertoireConf");
context.CTX_PRM_RepertoireData = (String) context
.getProperty("CTX_PRM_RepertoireData");
context.CTX_PRM_RepertoireDataArchive = (String) context
.getProperty("CTX_PRM_RepertoireDataArchive");
context.CTX_PRM_RepertoireDataIn = (String) context
.getProperty("CTX_PRM_RepertoireDataIn");
context.CTX_PRM_RepertoireDataOut = (String) context
.getProperty("CTX_PRM_RepertoireDataOut");
context.CTX_PRM_RepertoireLog = (String) context
.getProperty("CTX_PRM_RepertoireLog");
context.CTX_PRM_RepertoireRacine = (String) context
.getProperty("CTX_PRM_RepertoireRacine");
context.CTX_PRM_RepertoireSql = (String) context
.getProperty("CTX_PRM_RepertoireSql");
context.CTX_PRM_RepertoireTmp = (String) context
.getProperty("CTX_PRM_RepertoireTmp");
context.CTX_PRM_RESERVIT = (String) context
.getProperty("CTX_PRM_RESERVIT");
try {
context.CTX_PRM_SRCCursorSize = routines.system.ParserUtils
.parseTo_Integer(context
.getProperty("CTX_PRM_SRCCursorSize"));
} catch (NumberFormatException e) {
context.CTX_PRM_SRCCursorSize = null;
}
context.CTX_PRM_TalendRootPackage = (String) context
.getProperty("CTX_PRM_TalendRootPackage");
context.CTX_PRM_TalendRootPid = (String) context
.getProperty("CTX_PRM_TalendRootPid");
context.SharedMap_EXE_RES = (Object) context
.getProperty("SharedMap_EXE_RES");
} catch (java.io.IOException ie) {
System.err.println("Could not load context " + contextStr);
ie.printStackTrace();
}
// get context value from parent directly
if (parentContextMap != null && !parentContextMap.isEmpty()) {
if (parentContextMap.containsKey("CTX_EMAIL_Destinataire")) {
context.CTX_EMAIL_Destinataire = (String) parentContextMap
.get("CTX_EMAIL_Destinataire");
}
if (parentContextMap.containsKey("CTX_EMAIL_Destinataire_copie")) {
context.CTX_EMAIL_Destinataire_copie = (String) parentContextMap
.get("CTX_EMAIL_Destinataire_copie");
}
if (parentContextMap
.containsKey("CTX_EMAIL_Destinataire_copie_cachee")) {
context.CTX_EMAIL_Destinataire_copie_cachee = (String) parentContextMap
.get("CTX_EMAIL_Destinataire_copie_cachee");
}
if (parentContextMap.containsKey("CTX_EMAIL_Emetteur")) {
context.CTX_EMAIL_Emetteur = (String) parentContextMap
.get("CTX_EMAIL_Emetteur");
}
if (parentContextMap.containsKey("CTX_EMAIL_Envoi_active")) {
context.CTX_EMAIL_Envoi_active = (Integer) parentContextMap
.get("CTX_EMAIL_Envoi_active");
}
if (parentContextMap.containsKey("CTX_EMAIL_Login")) {
context.CTX_EMAIL_Login = (String) parentContextMap
.get("CTX_EMAIL_Login");
}
if (parentContextMap.containsKey("CTX_EMAIL_Password")) {
context.CTX_EMAIL_Password = (java.lang.String) parentContextMap
.get("CTX_EMAIL_Password");
}
if (parentContextMap.containsKey("CTX_EMAIL_Serveur_port")) {
context.CTX_EMAIL_Serveur_port = (String) parentContextMap
.get("CTX_EMAIL_Serveur_port");
}
if (parentContextMap.containsKey("CTX_EMAIL_Serveur_SMTP")) {
context.CTX_EMAIL_Serveur_SMTP = (String) parentContextMap
.get("CTX_EMAIL_Serveur_SMTP");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTAFIL_Database")) {
context.CTX_PGS_COMPTAFIL_Database = (String) parentContextMap
.get("CTX_PGS_COMPTAFIL_Database");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTAFIL_Login")) {
context.CTX_PGS_COMPTAFIL_Login = (String) parentContextMap
.get("CTX_PGS_COMPTAFIL_Login");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTAFIL_Password")) {
context.CTX_PGS_COMPTAFIL_Password = (java.lang.String) parentContextMap
.get("CTX_PGS_COMPTAFIL_Password");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTAFIL_Port")) {
context.CTX_PGS_COMPTAFIL_Port = (String) parentContextMap
.get("CTX_PGS_COMPTAFIL_Port");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTAFIL_Schema")) {
context.CTX_PGS_COMPTAFIL_Schema = (String) parentContextMap
.get("CTX_PGS_COMPTAFIL_Schema");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTAFIL_Server")) {
context.CTX_PGS_COMPTAFIL_Server = (String) parentContextMap
.get("CTX_PGS_COMPTAFIL_Server");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTALIS_Database")) {
context.CTX_PGS_COMPTALIS_Database = (String) parentContextMap
.get("CTX_PGS_COMPTALIS_Database");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTALIS_Login")) {
context.CTX_PGS_COMPTALIS_Login = (String) parentContextMap
.get("CTX_PGS_COMPTALIS_Login");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTALIS_Password")) {
context.CTX_PGS_COMPTALIS_Password = (java.lang.String) parentContextMap
.get("CTX_PGS_COMPTALIS_Password");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTALIS_Port")) {
context.CTX_PGS_COMPTALIS_Port = (String) parentContextMap
.get("CTX_PGS_COMPTALIS_Port");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTALIS_Schema")) {
context.CTX_PGS_COMPTALIS_Schema = (String) parentContextMap
.get("CTX_PGS_COMPTALIS_Schema");
}
if (parentContextMap.containsKey("CTX_PGS_COMPTALIS_Server")) {
context.CTX_PGS_COMPTALIS_Server = (String) parentContextMap
.get("CTX_PGS_COMPTALIS_Server");
}
if (parentContextMap.containsKey("CTX_PGS_CRM_CommitInterval")) {
context.CTX_PGS_CRM_CommitInterval = (Integer) parentContextMap
.get("CTX_PGS_CRM_CommitInterval");
}
if (parentContextMap.containsKey("CTX_PGS_CRM_Database")) {
context.CTX_PGS_CRM_Database = (String) parentContextMap
.get("CTX_PGS_CRM_Database");
}
if (parentContextMap.containsKey("CTX_PGS_CRM_Login")) {
context.CTX_PGS_CRM_Login = (String) parentContextMap
.get("CTX_PGS_CRM_Login");
}
if (parentContextMap.containsKey("CTX_PGS_CRM_Password")) {
context.CTX_PGS_CRM_Password = (java.lang.String) parentContextMap
.get("CTX_PGS_CRM_Password");
}
if (parentContextMap.containsKey("CTX_PGS_CRM_Port")) {
context.CTX_PGS_CRM_Port = (String) parentContextMap
.get("CTX_PGS_CRM_Port");
}
if (parentContextMap.containsKey("CTX_PGS_CRM_Schema")) {
context.CTX_PGS_CRM_Schema = (String) parentContextMap
.get("CTX_PGS_CRM_Schema");
}
if (parentContextMap.containsKey("CTX_PGS_CRM_Server")) {
context.CTX_PGS_CRM_Server = (String) parentContextMap
.get("CTX_PGS_CRM_Server");
}
if (parentContextMap.containsKey("CTX_PGS_DSA_CommitInterval")) {
context.CTX_PGS_DSA_CommitInterval = (Integer) parentContextMap
.get("CTX_PGS_DSA_CommitInterval");
}
if (parentContextMap.containsKey("CTX_PGS_DSA_Database")) {
context.CTX_PGS_DSA_Database = (String) parentContextMap
.get("CTX_PGS_DSA_Database");
}
if (parentContextMap.containsKey("CTX_PGS_DSA_Login")) {
context.CTX_PGS_DSA_Login = (String) parentContextMap
.get("CTX_PGS_DSA_Login");
}
if (parentContextMap.containsKey("CTX_PGS_DSA_Password")) {
context.CTX_PGS_DSA_Password = (java.lang.String) parentContextMap
.get("CTX_PGS_DSA_Password");
}
if (parentContextMap.containsKey("CTX_PGS_DSA_Port")) {
context.CTX_PGS_DSA_Port = (String) parentContextMap
.get("CTX_PGS_DSA_Port");
}
if (parentContextMap.containsKey("CTX_PGS_DSA_Schema")) {
context.CTX_PGS_DSA_Schema = (String) parentContextMap
.get("CTX_PGS_DSA_Schema");
}
if (parentContextMap.containsKey("CTX_PGS_DSA_Server")) {
context.CTX_PGS_DSA_Server = (String) parentContextMap
.get("CTX_PGS_DSA_Server");
}
if (parentContextMap.containsKey("CTX_PGS_ODS_CommitInterval")) {
context.CTX_PGS_ODS_CommitInterval = (Integer) parentContextMap
.get("CTX_PGS_ODS_CommitInterval");
}
if (parentContextMap.containsKey("CTX_PGS_ODS_Database")) {
context.CTX_PGS_ODS_Database = (String) parentContextMap
.get("CTX_PGS_ODS_Database");
}
if (parentContextMap.containsKey("CTX_PGS_ODS_Login")) {
context.CTX_PGS_ODS_Login = (String) parentContextMap
.get("CTX_PGS_ODS_Login");
}
if (parentContextMap.containsKey("CTX_PGS_ODS_Password")) {
context.CTX_PGS_ODS_Password = (java.lang.String) parentContextMap
.get("CTX_PGS_ODS_Password");
}
if (parentContextMap.containsKey("CTX_PGS_ODS_Port")) {
context.CTX_PGS_ODS_Port = (String) parentContextMap
.get("CTX_PGS_ODS_Port");
}
if (parentContextMap.containsKey("CTX_PGS_ODS_Schema")) {
context.CTX_PGS_ODS_Schema = (String) parentContextMap
.get("CTX_PGS_ODS_Schema");
}
if (parentContextMap.containsKey("CTX_PGS_ODS_Server")) {
context.CTX_PGS_ODS_Server = (String) parentContextMap
.get("CTX_PGS_ODS_Server");
}
if (parentContextMap.containsKey("CTX_PRM_ArchiveLogs")) {
context.CTX_PRM_ArchiveLogs = (String) parentContextMap
.get("CTX_PRM_ArchiveLogs");
}
if (parentContextMap.containsKey("CTX_PRM_CEV")) {
context.CTX_PRM_CEV = (String) parentContextMap
.get("CTX_PRM_CEV");
}
if (parentContextMap.containsKey("CTX_PRM_CodeRetour")) {
context.CTX_PRM_CodeRetour = (Integer) parentContextMap
.get("CTX_PRM_CodeRetour");
}
if (parentContextMap.containsKey("CTX_PRM_DateDebut")) {
context.CTX_PRM_DateDebut = (java.util.Date) parentContextMap
.get("CTX_PRM_DateDebut");
}
if (parentContextMap.containsKey("CTX_PRM_DateFin")) {
context.CTX_PRM_DateFin = (java.util.Date) parentContextMap
.get("CTX_PRM_DateFin");
}
if (parentContextMap.containsKey("CTX_PRM_Edeal_ASSO_FIL")) {
context.CTX_PRM_Edeal_ASSO_FIL = (String) parentContextMap
.get("CTX_PRM_Edeal_ASSO_FIL");
}
if (parentContextMap.containsKey("CTX_PRM_Edeal_ASSO_LIS")) {
context.CTX_PRM_Edeal_ASSO_LIS = (String) parentContextMap
.get("CTX_PRM_Edeal_ASSO_LIS");
}
if (parentContextMap.containsKey("CTX_PRM_EdealBascounter")) {
context.CTX_PRM_EdealBascounter = (String) parentContextMap
.get("CTX_PRM_EdealBascounter");
}
if (parentContextMap.containsKey("CTX_PRM_EdealBasid")) {
context.CTX_PRM_EdealBasid = (String) parentContextMap
.get("CTX_PRM_EdealBasid");
}
if (parentContextMap.containsKey("CTX_PRM_EdealCodeActor")) {
context.CTX_PRM_EdealCodeActor = (String) parentContextMap
.get("CTX_PRM_EdealCodeActor");
}
if (parentContextMap.containsKey("CTX_PRM_EdealIdActor")) {
context.CTX_PRM_EdealIdActor = (String) parentContextMap
.get("CTX_PRM_EdealIdActor");
}
if (parentContextMap.containsKey("CTX_PRM_EdealLicence")) {
context.CTX_PRM_EdealLicence = (String) parentContextMap
.get("CTX_PRM_EdealLicence");
}
if (parentContextMap.containsKey("CTX_PRM_Environnement")) {
context.CTX_PRM_Environnement = (String) parentContextMap
.get("CTX_PRM_Environnement");
}
if (parentContextMap.containsKey("CTX_PRM_EQUALITING")) {
context.CTX_PRM_EQUALITING = (String) parentContextMap
.get("CTX_PRM_EQUALITING");
}
if (parentContextMap.containsKey("CTX_PRM_Exec_RES")) {
context.CTX_PRM_Exec_RES = (Object) parentContextMap
.get("CTX_PRM_Exec_RES");
}
if (parentContextMap.containsKey("CTX_PRM_FichierConfiguration")) {
context.CTX_PRM_FichierConfiguration = (String) parentContextMap
.get("CTX_PRM_FichierConfiguration");
}
if (parentContextMap.containsKey("CTX_PRM_FichierLog")) {
context.CTX_PRM_FichierLog = (String) parentContextMap
.get("CTX_PRM_FichierLog");
}
if (parentContextMap.containsKey("CTX_PRM_FichierLogs")) {
context.CTX_PRM_FichierLogs = (String) parentContextMap
.get("CTX_PRM_FichierLogs");
}
if (parentContextMap.containsKey("CTX_PRM_FichierMetrique")) {
context.CTX_PRM_FichierMetrique = (String) parentContextMap
.get("CTX_PRM_FichierMetrique");
}
if (parentContextMap.containsKey("CTX_PRM_FichierStatistique")) {
context.CTX_PRM_FichierStatistique = (String) parentContextMap
.get("CTX_PRM_FichierStatistique");
}
if (parentContextMap.containsKey("CTX_PRM_fileEncodage")) {
context.CTX_PRM_fileEncodage = (String) parentContextMap
.get("CTX_PRM_fileEncodage");
}
if (parentContextMap.containsKey("CTX_PRM_fileName")) {
context.CTX_PRM_fileName = (String) parentContextMap
.get("CTX_PRM_fileName");
}
if (parentContextMap.containsKey("CTX_PRM_IdAudit")) {
context.CTX_PRM_IdAudit = (Long) parentContextMap
.get("CTX_PRM_IdAudit");
}
if (parentContextMap.containsKey("CTX_PRM_IdEtape")) {
context.CTX_PRM_IdEtape = (Integer) parentContextMap
.get("CTX_PRM_IdEtape");
}
if (parentContextMap.containsKey("CTX_PRM_IdEtapeDebut")) {
context.CTX_PRM_IdEtapeDebut = (Integer) parentContextMap
.get("CTX_PRM_IdEtapeDebut");
}
if (parentContextMap.containsKey("CTX_PRM_IdEtapeFin")) {
context.CTX_PRM_IdEtapeFin = (Integer) parentContextMap
.get("CTX_PRM_IdEtapeFin");
}
if (parentContextMap
.containsKey("CTX_PRM_listOfTableToDisableConstraints")) {
context.CTX_PRM_listOfTableToDisableConstraints = (String) parentContextMap
.get("CTX_PRM_listOfTableToDisableConstraints");
}
if (parentContextMap.containsKey("CTX_PRM_LKPCursorSize")) {
context.CTX_PRM_LKPCursorSize = (Integer) parentContextMap
.get("CTX_PRM_LKPCursorSize");
}
if (parentContextMap.containsKey("CTX_PRM_NomAppliSource")) {
context.CTX_PRM_NomAppliSource = (String) parentContextMap
.get("CTX_PRM_NomAppliSource");
}
if (parentContextMap.containsKey("CTX_PRM_NomSource")) {
context.CTX_PRM_NomSource = (String) parentContextMap
.get("CTX_PRM_NomSource");
}
if (parentContextMap.containsKey("CTX_PRM_OLAKALA_ERROR")) {
context.CTX_PRM_OLAKALA_ERROR = (String) parentContextMap
.get("CTX_PRM_OLAKALA_ERROR");
}
if (parentContextMap.containsKey("CTX_PRM_OLAKALA_FINISHED")) {
context.CTX_PRM_OLAKALA_FINISHED = (String) parentContextMap
.get("CTX_PRM_OLAKALA_FINISHED");
}
if (parentContextMap.containsKey("CTX_PRM_OLAKALA_PROGRESS")) {
context.CTX_PRM_OLAKALA_PROGRESS = (String) parentContextMap
.get("CTX_PRM_OLAKALA_PROGRESS");
}
if (parentContextMap.containsKey("CTX_PRM_ProfondeurRetentionLogs")) {
context.CTX_PRM_ProfondeurRetentionLogs = (Integer) parentContextMap
.get("CTX_PRM_ProfondeurRetentionLogs");
}
if (parentContextMap
.containsKey("CTX_PRM_ProfondeurRetentionRejets")) {
context.CTX_PRM_ProfondeurRetentionRejets = (Integer) parentContextMap
.get("CTX_PRM_ProfondeurRetentionRejets");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireConf")) {
context.CTX_PRM_RepertoireConf = (String) parentContextMap
.get("CTX_PRM_RepertoireConf");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireData")) {
context.CTX_PRM_RepertoireData = (String) parentContextMap
.get("CTX_PRM_RepertoireData");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireDataArchive")) {
context.CTX_PRM_RepertoireDataArchive = (String) parentContextMap
.get("CTX_PRM_RepertoireDataArchive");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireDataIn")) {
context.CTX_PRM_RepertoireDataIn = (String) parentContextMap
.get("CTX_PRM_RepertoireDataIn");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireDataOut")) {
context.CTX_PRM_RepertoireDataOut = (String) parentContextMap
.get("CTX_PRM_RepertoireDataOut");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireLog")) {
context.CTX_PRM_RepertoireLog = (String) parentContextMap
.get("CTX_PRM_RepertoireLog");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireRacine")) {
context.CTX_PRM_RepertoireRacine = (String) parentContextMap
.get("CTX_PRM_RepertoireRacine");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireSql")) {
context.CTX_PRM_RepertoireSql = (String) parentContextMap
.get("CTX_PRM_RepertoireSql");
}
if (parentContextMap.containsKey("CTX_PRM_RepertoireTmp")) {
context.CTX_PRM_RepertoireTmp = (String) parentContextMap
.get("CTX_PRM_RepertoireTmp");
}
if (parentContextMap.containsKey("CTX_PRM_RESERVIT")) {
context.CTX_PRM_RESERVIT = (String) parentContextMap
.get("CTX_PRM_RESERVIT");
}
if (parentContextMap.containsKey("CTX_PRM_SRCCursorSize")) {
context.CTX_PRM_SRCCursorSize = (Integer) parentContextMap
.get("CTX_PRM_SRCCursorSize");
}
if (parentContextMap.containsKey("CTX_PRM_TalendRootPackage")) {
context.CTX_PRM_TalendRootPackage = (String) parentContextMap
.get("CTX_PRM_TalendRootPackage");
}
if (parentContextMap.containsKey("CTX_PRM_TalendRootPid")) {
context.CTX_PRM_TalendRootPid = (String) parentContextMap
.get("CTX_PRM_TalendRootPid");
}
if (parentContextMap.containsKey("SharedMap_EXE_RES")) {
context.SharedMap_EXE_RES = (Object) parentContextMap
.get("SharedMap_EXE_RES");
}
}
// Resume: init the resumeUtil
resumeEntryMethodName = ResumeUtil
.getResumeEntryMethodName(resuming_checkpoint_path);
resumeUtil = new ResumeUtil(resuming_logs_dir_path, isChildJob, rootPid);
resumeUtil.initCommonInfo(pid, rootPid, fatherPid, projectName,
jobName, contextStr, jobVersion);
List parametersToEncrypt = new java.util.ArrayList();
parametersToEncrypt.add("CTX_EMAIL_Password");
parametersToEncrypt.add("CTX_PGS_COMPTAFIL_Password");
parametersToEncrypt.add("CTX_PGS_COMPTALIS_Password");
parametersToEncrypt.add("CTX_PGS_CRM_Password");
parametersToEncrypt.add("CTX_PGS_DSA_Password");
parametersToEncrypt.add("CTX_PGS_ODS_Password");
// Resume: jobStart
resumeUtil.addLog("JOB_STARTED", "JOB:" + jobName,
parent_part_launcher, Thread.currentThread().getId() + "", "",
"", "", "",
resumeUtil.convertToJsonText(context, parametersToEncrypt));
java.util.concurrent.ConcurrentHashMap