This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT _watcher/watch/my_chain_watch | |
{ | |
"trigger": { | |
"schedule": { | |
"interval": "30m" | |
} | |
}, | |
"input": { | |
"chain": { | |
"inputs": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"properties": { | |
"my-object": { | |
"type": "object", | |
"properties": { | |
"prop1": { | |
"type": "string", | |
"default": "prop1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.logstash.log; | |
import java.util.Map; | |
import org.apache.logging.log4j.core.LogEvent; | |
import org.apache.logging.log4j.core.config.plugins.Plugin; | |
import org.apache.logging.log4j.core.lookup.StrLookup; | |
@Plugin(name = "logstash", category = "Lookup") | |
public class LogstashLookup implements StrLookup { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dozer; | |
import org.dozer.CustomFieldMapper; | |
import org.dozer.classmap.ClassMap; | |
import org.dozer.fieldmap.FieldMap; | |
import org.hibernate.Hibernate; | |
/** | |
* FieldMapper Dozer permettant de désactiver la copie des proxys Hibernate non initialisés (entité ou collection) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ROOT LOGGER | |
log4j.rootLogger=${log4j.rootLevel},${log4j.rootAppender} | |
# APPENDER CONSOLE | |
log4j.appender.console=org.apache.log4j.ConsoleAppender | |
log4j.appender.console.layout=org.apache.log4j.PatternLayout | |
log4j.appender.console.layout.ConversionPattern=%-5p;%d{dd/MM/yyyy HH:mm:ss};[%c{1}];%m%n | |
# APPENDER ROLLING FILE | |
log4j.appender.rollingfile=org.apache.log4j.RollingFileAppender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fbaligand.log4j.jmx; | |
import java.util.Enumeration; | |
import org.apache.log4j.Level; | |
import org.apache.log4j.LogManager; | |
import org.apache.log4j.Logger; | |
import org.apache.log4j.PropertyConfigurator; | |
import org.springframework.jmx.export.annotation.ManagedOperation; | |
import org.springframework.jmx.export.annotation.ManagedOperationParameter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> | |
<%@page import="org.springframework.util.FileCopyUtils"%> | |
<%@page import="java.io.InputStream"%> | |
<%@page import="java.util.Properties"%> | |
<%@page import="java.io.StringReader"%> | |
<%@page import="org.apache.log4j.PropertyConfigurator"%> | |
<%@page import="org.apache.log4j.LogManager"%> | |
<%! | |
/** | |
* variable statique contenant la configuration LOG4J actuellement chargée en mémoire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="native2ascii" default="native2ascii" basedir="."> | |
<property name="srcEncoding" value="ISO-8859-1" /> | |
<property name="destEncoding" value="UTF-8" /> | |
<property name="srcDir" value="${basedir}/input" /> | |
<property name="destDir" value="${basedir}/output" /> | |
<property name="tempDir" value="${basedir}/temp" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" encoding="UTF-8" media-type="text/sql"/> | |
<xsl:template match="dataset"> | |
<xsl:apply-templates select="./*"/> | |
</xsl:template> | |
<xsl:template match="dataset/*"> | |
<xsl:text>insert into </xsl:text> |