Skip to content

Commit

Permalink
renamed iodriver to mediadriver and refactored.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontgomery committed Mar 7, 2014
1 parent b1bd6c0 commit 1645bbb
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 21 deletions.

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.real_logic.aeron.iodriver;
package uk.co.real_logic.aeron.mediadriver;

import java.io.Closeable;
import java.io.IOException;
Expand All @@ -24,12 +24,11 @@
import java.util.Set;

/**
* Event loop for JVM based iodriver
* Event loop for JVM based mediadriver
*
* Contains Selector logic
*
* Does not provide timers
* Deliberately simple and braindead
*/
public class EventLoop implements Closeable, Runnable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.real_logic.aeron.iodriver;
package uk.co.real_logic.aeron.mediadriver;

import uk.co.real_logic.aeron.util.DataHeaderFlyweight;
import uk.co.real_logic.aeron.util.HeaderFlyweight;

import java.net.InetSocketAddress;

/**
* Handler interface for various Frame types. For iodriver, specifically, this is Data or Control.
* Handler interface for various Frame types. For mediadriver, specifically, this is Data or Control.
*
* This interface should expand to handle various addressing models. But InetSocketAddress is exposed
* at the moment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.real_logic.aeron.iodriver;
package uk.co.real_logic.aeron.mediadriver;

import java.net.InetSocketAddress;
import java.util.HashMap;
Expand All @@ -22,9 +22,9 @@
import java.util.concurrent.Executors;

/**
* Main class for JVM-based iodriver
* Main class for JVM-based mediadriver
*/
public class IoDriver
public class MediaDriver
{
// This is used by senders to associate Session IDs to SrcFrameHandlers for sending.
private final Map<Long, SrcFrameHandler> sessionIdMap = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.real_logic.aeron.iodriver;
package uk.co.real_logic.aeron.mediadriver;

import uk.co.real_logic.aeron.util.DataHeaderFlyweight;
import uk.co.real_logic.aeron.util.HeaderFlyweight;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.real_logic.aeron.iodriver;
package uk.co.real_logic.aeron.mediadriver;

/**
* Interface for a handler of SelectionKey.OP_READ events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.real_logic.aeron.iodriver;
package uk.co.real_logic.aeron.mediadriver;

import uk.co.real_logic.aeron.util.DataHeaderFlyweight;
import uk.co.real_logic.aeron.util.HeaderFlyweight;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.real_logic.aeron.iodriver;
package uk.co.real_logic.aeron.mediadriver;

import uk.co.real_logic.aeron.util.DataHeaderFlyweight;
import uk.co.real_logic.aeron.util.HeaderFlyweight;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Holds the JVM-based mediadriver classes and main.
*/
package uk.co.real_logic.aeron.mediadriver;
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.real_logic.aeron.iodriver;
package uk.co.real_logic.aeron.mediadriver;

import org.junit.Test;
import uk.co.real_logic.aeron.util.DataHeaderFlyweight;
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ subprojects {
}
}

project(':aeron-iodriver') {
project(':aeron-mediadriver') {
dependencies {
compile project(':aeron-util')
}
Expand All @@ -115,14 +115,14 @@ project(':aeron-core') {

project(':aeron-examples') {
dependencies {
compile project(':aeron-core'), project(':aeron-iodriver')
compile project(':aeron-core'), project(':aeron-mediadriver')
}
}

project(':aeron-benchmark') {
apply plugin: 'shadow'
dependencies {
compile project(':aeron-core'), project(':aeron-iodriver')
compile project(':aeron-core'), project(':aeron-mediadriver')
compile 'org.openjdk.jmh:jmh-core:0.4.2'
}
shadow {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include 'aeron-util', 'aeron-core', 'aeron-iodriver', 'aeron-examples', 'aeron-benchmark'
include 'aeron-util', 'aeron-core', 'aeron-mediadriver', 'aeron-examples', 'aeron-benchmark'

0 comments on commit 1645bbb

Please sign in to comment.