1. 程式人生 > >Java News and Code Episode 10

Java News and Code Episode 10


Visit the developerWorks Java Hub

New open source tools for micro containers

Containers are quickly becoming the de facto standard for deploying scalable, high performance applications in the cloud. And Docker is leading the way. But not everybody is completely satisfied with the way Docker solves the issues involved in container-based applications.

On June 29th, Oracle announced three new open source container utilities that address what they see as deficiencies in the container approach espoused by Docker.

The tools are available in GitHub, and are called Smith, used to build the containers. Crashcart, used to debug code within the containers. And

Railcar, which is the container runtime.

So what are the issues?

Oracle cloud architect Vish Abrams outlines an approach to containers called “micro containers” in this post titled “The Microcontainer Manifesto and the Right Tool for the Job”

Abrams points out in the post that the microcontainer approach is not a new container system, but rather a new way to build, debug, and run containers. From what I can tell, the biggest issues seem to be the size of the Docker images – around 1GB on average. And issues related to security.

To address these issues requires new tools to build the containers (Smith), debug the code running within the microcontainer (Crashcart), and a new Runtime (Railcar).

It’s worth pointing out that while Smith uses yum and rpm repos as inputs to its build, it can also take an existing Docker container, and turn it into a micro container.

Of course, there’s no free lunch, and there are additional hoops to jump through to make that work. Like adding time to your existing build to beat through issues like pulling in configuration and data files, and setting up a unique user-namespace to make the containers more secure. Abrams claims it takes him usually no more than an hour to package an existing application into a microcontainer.

In the end, it seems like a lot of work to me.

Eclipse Oxygen is available

On June 28th, the latest release of Eclipse, code named Oxygen, was released.

Okay, so I have good news and bad news…

The good news is Oxygen contains the hard work and efforts of contributors to 83 open source projects like

  • Eclipse BPEL Designer
  • Eclipse Mylyn
  • Eclipse Web Tools Platform Project

And many more. All of these projects are released as open source, and the Oxygen release culminates with a new release of the Eclipse IDE.

The bad news is that Eclipse Oxygen does not include Native support for Java 9. But all is not lost.

For the not-so faint-of-heart, there is a work around. It’s lengthy and has somewhat cryptic instructions, but from what I can tell from the comments, it looks like the instructions are solid.

So if you’re interested in adding native Java 9 support to Oxygen, check that out.

To download Oxygen, go to this link and click on Download.

Unit 5 Milestone 5 has been released

JUnit 5 Milestone 5 was released on July 4th.

Included in this milestone are:

Jigsaw Automatic module support

Lots of bug fixes

The usual spate of breaking changes (this is a milestone release, not a GA release, after all)

@BeforeAll and @AfterAll are no longer required to be static

(FADE IN)

In this episode’s code talkthrough, I want to walk through a couple of really cool new features available in JUnit 5:

  • Parameterized Tests
  • Dynamic Tests

The code I’ll be walking through is available in GitHub.

To follow along, you’ll need to have Eclipse, a Maven plugin for Eclipse and Git installed on your computer.

For today’s code talkthrough I’m using Eclipse Oxygen, M2E 1.8 and Git 2.11.0 for Mac.

Credits

Music:

Slay Well by Gunnar Olsen, YouTube Audio Library (Free to use for commercial purposes, no attribution required), see YouTube Terms of Service and this YouTube support article for details.

Pixabay images and videos are free for commercial use, no attribution required. See Pixabay Terms of Service for more information..

Pixabay Image URLs:
Pixabay Video URLs:

相關推薦

Java News and Code Episode 10

New open source tools for micro containers Containers are quickly becoming the de facto standard for deploying scalable, high performance applications

Java News and Code Episode 14

Welcome Welcome to Java News and Code, where I tell you about interesting goings-on in the world of IT in general, and Java in particular. And there’s

Java News and Code Episode 11

Hyperledger Fabric v1.0 Released on July 11, 2017 Hyperledger Fabric is a framework for building Blockchain applications. It is licensed under the Cre

Java News and Code Episode 12

Adobe Announces EOL for Flash Player On July 25th, Adobe announced it would stop updating and distributing Flash Player at the end of 2020. The announc

Java News and Code #4: When Burger King Attacks

Visit the developerWorks Java Hub for more tools and education to future-proof your Java code. The King Attacks! Burger King on April 2nd released a 15

Java News & Code #3: JUnit 5, Tomcat and Open Source Sites

Visit the developerWorks Java Hub for more tools and education to future-proof your Java code. Google Open Source Project Directory Google announced on

《Thinking in JavaAnd 《Effective Java》啃起來

大學 前言 技術 數據結構和算法 解決 一句話 定義 應該 太多的 前言   今天從京東入手了兩本書,《Thinking in Java》(第四版) 和 《Effective Java》(第二版)。都可以稱得上是硬書,需要慢慢啃的,預定計劃是在今年前把這兩本書啃完。哈哈,可

201671010116. 2016-2017-10Java程序設計》第10周學習總結

種類型 數組 了解 學習 num 通配符 一個 cas 強制類型轉換 本周主要學習了泛型程序設計,了解到了泛型方法的好處,即泛型類提高了java程序的類型安全,消除了強制類型轉換,提高了代碼的重用率。 泛型的參數類型可以使用extends語句用於定義泛型變量的上界,exte

201621123037 《Java程序設計》第10周學習總結

thead 存儲 point result ... 字節 登陸 port 技術 作業10-異常

201621123013 《Java程序設計》第10周學習總結

begin tof 開始 找不到文件 clas src 們的 喜歡 讀取文件失敗 1. 本周學習總結 1.1 以你喜歡的方式(思維導圖或其他)歸納總結異常相關內容。 2. 書面作業 本次PTA作業題集異常 1. 常用異常 結合題集題目7-1回答 1.1 自己以前編寫的代碼

201621123086 《Java程序設計》第10周學習總結

行處理 重要 我們 應用異常 throw 學習 final point all 1. 本周學習總結 因為finally子句總是會執行的,所以在一個方法中,可以從多個點返回,並且可以保證重要的清理工作仍舊會執行。 在調用構造器時,一般會用finally進行對象的清理。然而

關於 Java 你不知道的 10 件事

類型提升 有用 like 實例 對象 情況 return keyword for 作為 Java 書呆子,比起實用技能,我們會對介紹 Java 和 JVM 的概念細節更感興趣。因此我想推薦 Lukas Eder 在 jooq.org 發表的原創作品給大家。 你是從很早開始就

Java Language and Virtual Machine Specifications

block virtual cif ora .html https fat docs cti 記錄下The Java Language Specification & The Java Virtual Machine Spectifation的網址: https:

二、Java面向對象(10)_代碼塊

混亂 靜態 jvm sta 根據 16px 每次 創建 font 2018-05-02 代碼塊 什麽是代碼塊?   在類或者方法中,使用“{}”將多行代碼封裝在一起,形成一個獨立的代碼區,這就構成了代碼塊。   在代碼塊裏的變量屬於局部變量,只在自己所在區域的前後{

20172333 2017-2018-2 《Java程序設計》第10周學習總結

eve tab The strong 代碼托管 infinite html 異常 alt 20172333 2017-2018-2 《Java程序設計》第10周學習總結 教材學習內容 第十三章 集合是一個對象,一個保存其他對象的數據庫。 集合可以保存不同種類的對象也可以保

【北京】軟件開發工程師(java分布式) 10—30w/年

職位 ODB iba sql 郵箱 職責 pri 軟件 打電話 【崗位職責】: 具備3年以上Java開發經驗,有良好的代碼風格和編程習慣; 精通Java語言,熟悉JaveEE體系; 熟悉分布式系統的設計和應用,熟悉分布式、緩存、消息等機制;能對分布式常用技術進行合理應用,

JNDI(Java Naming and Directory Interface,Java命名和目錄接口)

負載平衡 抽象層 共享 eight interface dsm 通過 data win JNDI(Java Naming and Directory Interface,Java命名和目錄接口)是SUN公司提供的一種標準的Java命名系統接口,JNDI提供統一的客戶端API

Java】 劍指offer(10) 旋轉數組的最小數字

-c -i 提前 tle 更多 strong num string 測試 本文參考自《劍指offer》一書,代碼采用Java語言。 更多:《劍指Offer》Java實現合集 題目   把一個數組最開始的若幹個元素搬到數組的末尾,我們稱之為數組的旋轉。輸入一個遞增排

java 求 1!+2!+3!+....+10!的和為

com args println ++ system ack main 輸出 初始 package com.xuyigang1234.chp01; //1!+2!+3!+....+10!的和 public class Demo5 { public static v

Java編程思想】10.內部類

hang work return you 非靜態內部類 for each del 覆蓋 類文件 將一個類的定義放在另一個類的定義內部,這就是內部類。 10.1 創建內部類 內部類的名字是嵌套在外部類裏面的 外部類可以有方法,返回一個指向內部類的調用。(外部類中可以調用內