Removed WS and de-commented enforcer

This commit is contained in:
Viktor Klang 2010-01-28 00:05:41 +01:00
parent 3be43c4c42
commit 45de505e4b
2 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ trait Cluster {
} }
trait ClusterActor extends Actor with Cluster { trait ClusterActor extends Actor with Cluster {
val name = config.getString("akka.remote.cluster.name") getOrElse "default" val name = config.getString("akka.remote.cluster.name") getOrElse "default"
} }
private[remote] object ClusterActor { private[remote] object ClusterActor {
@ -139,7 +139,7 @@ abstract class BasicClusterActor extends ClusterActor {
} }
protected def broadcast[T <: AnyRef](msg: T): Unit = protected def broadcast[T <: AnyRef](msg: T): Unit =
if (!remotes.isEmpty) toAllNodes(Cluster.serializer out msg) if (!remotes.isEmpty) toAllNodes(Cluster.serializer out msg)
def lookup[T](handleRemoteAddress: PartialFunction[RemoteAddress, T]): Option[T] = def lookup[T](handleRemoteAddress: PartialFunction[RemoteAddress, T]): Option[T] =
remotes.values.toList.flatMap(_.endpoints).find(handleRemoteAddress isDefinedAt _).map(handleRemoteAddress) remotes.values.toList.flatMap(_.endpoints).find(handleRemoteAddress isDefinedAt _).map(handleRemoteAddress)

View file

@ -259,7 +259,7 @@
<sourceDirectory>src/main/scala</sourceDirectory> <sourceDirectory>src/main/scala</sourceDirectory>
<testSourceDirectory>src/test/scala</testSourceDirectory> <testSourceDirectory>src/test/scala</testSourceDirectory>
<plugins> <plugins>
<!--plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>1.0</version> <version>1.0</version>
@ -285,7 +285,7 @@
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin--> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>