coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

Introduce ApplicationStream and remove "action" support #314

Closed brianoliver closed 8 years ago

brianoliver commented 8 years ago

With the introduction of Java 8 and streaming concepts, all uses of the "actions" module are no longer necessary for manipulating Assemblies.

For example, by introducing the concept of an ApplicationStream, it would be possible to perform the following;

cluster.filter(filter).limit(number).relaunch(options);

This not only replaces many lines of complex code using the com.oracle.tools.runtime.actions package, but also allows for greater expressiveness of conditions.

Take the following for example:

cluster.unordered().limit(5).forEach(...);

It allows unordered set of five applications to be chosen and iterated over, or in the following case, filtered and closed.

cluster.filter(...).unordered().limit(5).forEach(...);
brianoliver commented 8 years ago

This issue was imported from JIRA ORACLETOOLS-314

brianoliver commented 8 years ago

Reported by @brianoliver

brianoliver commented 8 years ago

Marked as fixed by @brianoliver on Thursday, April 21st 2016, 4:32:35 pm