-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
510 additions
and
41 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 | ||
org.eclipse.jdt.core.compiler.compliance=1.5 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.source=1.5 | ||
org.eclipse.jdt.core.compiler.source=1.7 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,62 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>de.jlo.karaf.jmx</groupId> | ||
<artifactId>jlo-karaf-jmx</artifactId> | ||
<packaging>jar</packaging> | ||
<groupId>de.jlo.talendcomp</groupId> | ||
<artifactId>jlo-talendcomp-karaf-jmx</artifactId> | ||
<version>1.0</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>jlo-karaf-jmx</name> | ||
<url>http://maven.apache.org</url> | ||
<name>jlo-karaf-jmx</name> | ||
<url>http://maven.apache.org</url> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
<version>1.0</version> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>de.cimt.talendcomp</groupId> | ||
<artifactId>cimt-talendcomp-maven-plugin</artifactId> | ||
<version>1.8</version> | ||
<executions> | ||
<execution> | ||
<id>tKarafServiceList</id> | ||
<configuration> | ||
<componentName>tKarafServiceList</componentName> | ||
</configuration> | ||
<goals> | ||
<goal>component</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<id>tKarafServiceInstall</id> | ||
<configuration> | ||
<componentName>tKarafServiceInstall</componentName> | ||
</configuration> | ||
<goals> | ||
<goal>component</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
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
2 changes: 1 addition & 1 deletion
2
...in/java/de/jlo/karaf/jmx/KarafClient.java → ...jlo/talendcomp/karaf/jmx/KarafClient.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package de.jlo.karaf.jmx; | ||
package de.jlo.talendcomp.karaf.jmx; | ||
|
||
public class KarafClient extends BaseClient { | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
...a/de/jlo/karaf/jmx/NOSecurityManager.java → ...lendcomp/karaf/jmx/NOSecurityManager.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package de.jlo.karaf.jmx; | ||
package de.jlo.talendcomp.karaf.jmx; | ||
|
||
import java.security.Permission; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...java/de/jlo/karaf/jmx/ServiceFeature.java → .../talendcomp/karaf/jmx/ServiceFeature.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package de.jlo.karaf.jmx; | ||
package de.jlo.talendcomp.karaf.jmx; | ||
|
||
import javax.management.openmbean.CompositeData; | ||
|
||
|
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
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>COMPONENT_PROJECT</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
Binary file added
BIN
+11.8 KB
talend_component/tKarafServiceInstall/jlo-talendcomp-karaf-jmx-1.0.jar
Binary file not shown.
43 changes: 43 additions & 0 deletions
43
talend_component/tKarafServiceInstall/tKarafServiceInstall_begin.javajet
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<%@ jet | ||
imports=" | ||
org.talend.designer.codegen.config.CodeGeneratorArgument | ||
org.talend.core.model.process.INode | ||
org.talend.core.model.process.ElementParameterParser | ||
org.talend.core.model.process.IConnection | ||
org.talend.core.model.process.IConnectionCategory | ||
org.talend.core.model.utils.NodeUtil | ||
java.util.List | ||
java.util.Map | ||
" | ||
%> | ||
<% | ||
CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument; | ||
INode node = (INode) codeGenArgument.getArgument(); | ||
String cid = node.getUniqueName(); | ||
boolean isKaraf = "true".equals(ElementParameterParser.getValue(node, "__IS_KARAF__")); | ||
String jmxUrl = ElementParameterParser.getValue(node, "__JMX_URL__"); | ||
String jmxUser = ElementParameterParser.getValue(node, "__JMX_USER__"); | ||
String jmxPassword = ElementParameterParser.getValue(node, "__JMX_PASSWORD__"); | ||
String server = ElementParameterParser.getValue(node, "__KARAF_SERVER__"); | ||
String instance = ElementParameterParser.getValue(node, "__KARAF_INSTANCE__"); | ||
String jmxPort = ElementParameterParser.getValue(node, "__JMX_PORT__"); | ||
String jstatdPort = ElementParameterParser.getValue(node, "__JSTATD_PORT__"); | ||
%> | ||
de.jlo.talendcomp.karaf.jmx.KarafClient client_<%=cid%> = new de.jlo.talendcomp.karaf.jmx.KarafClient(); | ||
client_<%=cid%>.setJmxUser(<%=jmxUser%>); | ||
client_<%=cid%>.setJmxPassword(<%=jmxPassword%>); | ||
<% if (isKaraf) { %> | ||
client_<%=cid%>.setKarafRemoteJmxUrl(<%=server%>, <%=jmxPort%>, <%=instance%>, <%=jstatdPort%>); | ||
<% } else { %> | ||
client_<%=cid%>.setJmxUrl(<%=jmxUrl%>); | ||
<% } %> | ||
try { | ||
client_<%=cid%>.connect(); | ||
} catch (Exception e) { | ||
globalMap.put("<%=cid%>_ERROR_MESSAGE", "Connect to jmx failed: " + e.getMessage()); | ||
throw new Exception("Connect to jmx failed: URL: " + client_<%=cid%>.getJmxServiceUrl(), e); | ||
} | ||
de.jlo.talendcomp.karaf.jmx.KarafDeployer <%=cid%> = new de.jlo.talendcomp.karaf.jmx.KarafDeployer(client_<%=cid%>); | ||
int countInstall_<%=cid%> = 0; | ||
int countUninstall_<%=cid%> = 0; | ||
int countFailures_<%=cid%> = 0; |
14 changes: 14 additions & 0 deletions
14
talend_component/tKarafServiceInstall/tKarafServiceInstall_end.javajet
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<%@ jet | ||
imports=" | ||
org.talend.core.model.process.INode | ||
org.talend.designer.codegen.config.CodeGeneratorArgument | ||
" | ||
%> | ||
<% | ||
CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument; | ||
INode node = (INode) codeGenArgument.getArgument(); | ||
String cid = node.getUniqueName(); %> | ||
client_<%=cid%>.close(); | ||
globalMap.put("<%=cid%>_NB_LINE_INSTALL", countInstall_<%=cid%>); | ||
globalMap.put("<%=cid%>_NB_LINE_UNINSTALL", countUninstall_<%=cid%>); | ||
globalMap.put("<%=cid%>_NB_LINE_FAILURES", countFailures_<%=cid%>); |
Binary file added
BIN
+530 Bytes
talend_component/tKarafServiceInstall/tKarafServiceInstall_icon32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.