JAVA: mudanças entre as edições

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
Linha 62: Linha 62:
*https://docs.spring.io/spring-cloud-dataflow-samples/docs/current/reference/htmlsingle/
*https://docs.spring.io/spring-cloud-dataflow-samples/docs/current/reference/htmlsingle/
*[https://github.com/spring-cloud/spring-cloud-dataflow-samples/blob/master/src/main/asciidoc/javadsl/main.adoc Deploying a stream programmaticaly]
*[https://github.com/spring-cloud/spring-cloud-dataflow-samples/blob/master/src/main/asciidoc/javadsl/main.adoc Deploying a stream programmaticaly]
*[https://github.com/spring-cloud-stream-app-starters/python/tree/master/spring-cloud-starter-stream-processor-python-http Python Http Processor]
==SHELL==
==SHELL==
*https://projects.spring.io/spring-shell/
*https://projects.spring.io/spring-shell/
=Feing=
=Feing=
*https://github.com/OpenFeign/feign
*https://github.com/OpenFeign/feign

Edição das 11h00min de 15 de abril de 2019

Study

Maven

mvn archetype:generate -DartifactId=teste -DgroupId=br.com.clusterlab -DinteractiveMode=false -DarchetypeArtifactId=maven-archetype-quickstart

Arguments

  • JMXRemote
 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18001 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
  • Change server port
java -jar target/HelloWorld-0.1.0.jar --server.port=8091

IDES

Spring

BOOT

Data Flow

Cloud Stream APPs Starter

Docker

Deploy on Kubernetes

apiVersion: v1
kind: Service
metadata:
  name: internal-app
  annotations:
    service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
  type: LoadBalancer
  ports:
  - port: 80
  selector:
    app: internal-app

SHELL

dataflow:>app import --uri http://bit.ly/Einstein.GA-stream-applications-kafka-10-maven
dataflow:>stream create --name mysqlstream --definition "http --server.port=8787 | jdbc --tableName=names --columns=name --spring.datasource.driver-class-name=org.mariadb.jdbc.Driver --spring.datasource.url='jdbc:mysql://localhost:3306/test'" --deploy
dataflow:>stream list

JAVA DSL

SHELL

Feing