Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
<<<<<<< HEAD
Coherence Incubator Source Repository
=====================================

The Oracle [Coherence Incubator](http://cohinc.java.net) Project defines a collection of
examples, organized as [Apache Maven](http://maven.apache.org/) modules, demonstrating
advanced uses of [Oracle Coherence](http://www.oracle.com/technology/products/coherence/index.html).

Official information about this project including the definition, licensing, contributors,
maintainers, issue tracking, releases, source code and contact information is available at:
[http://cohinc.java.net](http://cohinc.java.net)

Repository Structure
====================

This repository contains many branches of development for the Oracle [Coherence Incubator](http://cohinc.java.net),
each based on different major revisions of [Oracle Coherence](http://www.oracle.com/technology/products/coherence/index.html).

Coherence Incubator 12 (for Coherence 12.1.2.x)
----------------------------------------------

Development Documentation: [http://coherence-community.github.com/coherence-incubator/12.0.0-SNAPSHOT/](http://coherence-community.github.com/coherence-incubator/12.0.0-SNAPSHOT/)

Development Branch: [**develop-12**](https://github.com/coherence-community/coherence-incubator/tree/develop-12)

Coherence Incubator 11 (for Coherence 3.7.1.x)
----------------------------------------------

Release Documentation: [http://coherence-community.github.com/coherence-incubator/11.1.0/](http://coherence-community.github.com/coherence-incubator/11.1.0/)

Development Branch: [**develop-11**](https://github.com/coherence-community/coherence-incubator/tree/develop-11)

Coherence Incubator 10 (legacy for Coherence 3.7.1.x)
-----------------------------------------------------

The original source code and releases for Coherence Incubator 10 remain available at:

[http://coherence.oracle.com/display/INC10/Home](http://coherence.oracle.com/display/INC10/Home)
=======
Coherence Incubator Release 12
==============================

Expand All @@ -19,3 +58,4 @@ The latest project documentation for the Coherence Incubator Release 12 SNAPSHOT
> The [Apache Maven](http://maven.apache.org)-based releases for this project are published to: [maven.java.net](https://maven.java.net).
>
> Maven Snapshots of this project are routinely published to the [maven.java.net](https://maven.java.net) snapshot repository that of which is defined here: [https://maven.java.net/content/repositories/snapshots/](https://maven.java.net/content/repositories/snapshots/)
>>>>>>> 9e2384b44188610fe2ea6448988904e6aec6a910
142 changes: 142 additions & 0 deletions coherence-processingpattern-tests/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<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>

<parent>
<artifactId>coherence-incubator</artifactId>
<groupId>com.oracle.coherence.incubator</groupId>
<version>12.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>coherence-processingpattern-tests</artifactId>

<name>Coherence Incubator Processing Pattern (functional tests)</name>

<description>
Functional tests for the Coherence Incubator Processing Pattern.
</description>


<dependencies>
<dependency>
<groupId>com.oracle.coherence</groupId>
<artifactId>coherence</artifactId>
<version>${oracle.coherence.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.oracle.coherence.incubator</groupId>
<artifactId>coherence-processingpattern</artifactId>
<version>${project.parent.version}</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.oracle.tools</groupId>
<artifactId>oracle-tools-core</artifactId>
<version>${oracle.tools.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.oracle.tools</groupId>
<artifactId>oracle-tools-runtime</artifactId>
<version>${oracle.tools.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.oracle.tools</groupId>
<artifactId>oracle-tools-coherence</artifactId>
<version>${oracle.tools.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.oracle.tools</groupId>
<artifactId>oracle-tools-testing-support</artifactId>
<version>${oracle.tools.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.oracle.tools</groupId>
<artifactId>oracle-tools-coherence-testing-support</artifactId>
<version>${oracle.tools.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-easymock</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>${maven.install.plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven.deploy.plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>

</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
* File: SimpleCallable.java
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* The contents of this file are subject to the terms and conditions of
* the Common Development and Distribution License 1.0 (the "License").
*
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the License by consulting the LICENSE.txt file
* distributed with this file, or by consulting
* or https://oss.oracle.com/licenses/CDDL
*
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file LICENSE.txt.
*
* MODIFICATIONS:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*/

package com.oracle.coherence.patterns.processing.callable;

import com.tangosol.io.ExternalizableLite;

import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PofWriter;
import com.tangosol.io.pof.PortableObject;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

import java.util.concurrent.Callable;

/**
* A Simple Callable that sleeps for a second and writes to system out.
*
* Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br>
* Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
*
* @author David Rowlands
*/
@SuppressWarnings({"serial", "rawtypes"})
public class SimpleCallable implements Callable, ExternalizableLite, PortableObject
{
/**
* {@inheritDoc}
*/
public Object call() throws Exception
{
Thread.sleep(1);

return "Hello Client!";
}


/**
* {@inheritDoc}
*/
public void readExternal(final DataInput arg0) throws IOException
{
}


/**
* {@inheritDoc}
*/
public void readExternal(final PofReader arg0) throws IOException
{
}


/**
* {@inheritDoc}
*/
public void writeExternal(final DataOutput arg0) throws IOException
{
}


/**
* {@inheritDoc}
*/
public void writeExternal(final PofWriter arg0) throws IOException
{
}
}
Loading