Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,577 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The version of the libraries are: | ||
|
||
libSG_java 3.6.2.1 | ||
libsimgrid 3.6.2 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
* Copyright 2012 Thomas Bocek | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
--> | ||
<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/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>net.tomp2p.simgrid</groupId> | ||
<artifactId>TomP2P-SimGrid</artifactId> | ||
<name>TomP2P-SimGrid</name> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<description>TomP2P SimGrid Integration</description> | ||
<url>http://tomp2p.net/simgrid</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>Apache License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0</url> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<url>https://github.com/tomp2p/TomP2P-SimGrid</url> | ||
<connection>scm:git:git://github.com/tomp2p/TomP2P-SimGrid.git</connection> | ||
<developerConnection>scm:git:ssh://git@github.com/tomp2p/TomP2P-SimGrid.git</developerConnection> | ||
</scm> | ||
|
||
<build> | ||
<extensions> | ||
<extension> | ||
<groupId>org.apache.maven.wagon</groupId> | ||
<artifactId>wagon-ssh</artifactId> | ||
<version>2.0</version> | ||
</extension> | ||
</extensions> | ||
<resources> | ||
<resource> | ||
<directory>native</directory> | ||
</resource> | ||
</resources> | ||
</build> | ||
|
||
<repositories> | ||
<repository> | ||
<id>repository.tomp2p.net</id> | ||
<url>http://tomp2p.net/dev/mvn</url> | ||
</repository> | ||
</repositories> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
<version>2.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-cli</groupId> | ||
<artifactId>commons-cli</artifactId> | ||
<version>1.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.simgrid</groupId> | ||
<artifactId>msg</artifactId> | ||
<version>3.6.2.1-1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.tomp2p</groupId> | ||
<artifactId>TomP2P</artifactId> | ||
<version>4.0.7-SNAPSHOT</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
/* | ||
* Copyright 2012 Thomas Bocek | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
|
||
package net.tomp2p.simgrid; | ||
|
||
import java.net.SocketAddress; | ||
|
||
import net.tomp2p.message.Message; | ||
|
||
import org.jboss.netty.channel.Channel; | ||
import org.jboss.netty.channel.ChannelConfig; | ||
import org.jboss.netty.channel.ChannelFactory; | ||
import org.jboss.netty.channel.ChannelFuture; | ||
import org.jboss.netty.channel.ChannelPipeline; | ||
|
||
public class DummyChannel implements Channel | ||
{ | ||
private final SocketAddress remoteAddress; | ||
private final SocketAddress localAddress; | ||
private Message message; | ||
|
||
public DummyChannel(SocketAddress remoteAddress, SocketAddress localAddress) | ||
{ | ||
this.remoteAddress = remoteAddress; | ||
this.localAddress = localAddress; | ||
} | ||
@Override | ||
public ChannelFuture bind(SocketAddress localAddress) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelFuture close() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelFuture connect(SocketAddress remoteAddress) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelFuture disconnect() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelFuture getCloseFuture() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelConfig getConfig() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelFactory getFactory() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public Integer getId() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public int getInterestOps() | ||
{ | ||
return 0; | ||
} | ||
|
||
@Override | ||
public SocketAddress getLocalAddress() | ||
{ | ||
return localAddress; | ||
} | ||
|
||
@Override | ||
public Channel getParent() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelPipeline getPipeline() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public SocketAddress getRemoteAddress() | ||
{ | ||
return remoteAddress; | ||
} | ||
|
||
@Override | ||
public boolean isBound() | ||
{ | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean isConnected() | ||
{ | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean isOpen() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isReadable() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isWritable() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public ChannelFuture setInterestOps(int interestOps) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelFuture setReadable(boolean readable) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelFuture unbind() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ChannelFuture write(Object message) | ||
{ | ||
this.message = (Message)message; | ||
return new DummyChannelFuture(this); | ||
} | ||
|
||
@Override | ||
public ChannelFuture write(Object message, SocketAddress remoteAddress) | ||
{ | ||
this.message = (Message)message; | ||
return new DummyChannelFuture(this); | ||
} | ||
|
||
@Override | ||
public int compareTo(Channel o) | ||
{ | ||
return 0; | ||
} | ||
public Message getMessage() | ||
{ | ||
return message; | ||
} | ||
} |
Oops, something went wrong.