- */
-
-package se.scalablesolutions.akka.actor
-
-import se.scalablesolutions.akka.config.{AllForOneStrategy, OneForOneStrategy, FaultHandlingStrategy}
-import se.scalablesolutions.akka.config.ScalaConfig._
-import se.scalablesolutions.akka.stm.global._
-import se.scalablesolutions.akka.stm.TransactionManagement._
-import se.scalablesolutions.akka.stm.TransactionManagement
-import se.scalablesolutions.akka.remote.protocol.RemoteProtocol._
-import se.scalablesolutions.akka.remote.{RemoteServer, RemoteRequestProtocolIdFactory, MessageSerializer}
-import se.scalablesolutions.akka.serialization.Serializer
-
-import com.google.protobuf.ByteString
-
-/**
- * Type class definition for Actor Serialization
- */
-trait FromBinary[T <: Actor] {
- def fromBinary(bytes: Array[Byte], act: T): T
-}
-
-trait ToBinary[T <: Actor] {
- def toBinary(t: T): Array[Byte]
-}
-
-// client needs to implement Format[] for the respective actor
-trait Format[T <: Actor] extends FromBinary[T] with ToBinary[T]
-
-/**
- * A default implementation for a stateless actor
- *
- * Create a Format object with the client actor as the implementation of the type class
- *
- *
- * object BinaryFormatMyStatelessActor {
- * implicit object MyStatelessActorFormat extends StatelessActorFormat[MyStatelessActor]
- * }
- *
- */
-trait StatelessActorFormat[T <: Actor] extends Format[T] {
- def fromBinary(bytes: Array[Byte], act: T) = act
- def toBinary(ac: T) = Array.empty[Byte]
-}
-
-/**
- * A default implementation of the type class for a Format that specifies a serializer
- *
- * Create a Format object with the client actor as the implementation of the type class and
- * a serializer object
- *
- *
- * object BinaryFormatMyJavaSerializableActor {
- * implicit object MyJavaSerializableActorFormat extends SerializerBasedActorFormat[MyJavaSerializableActor] {
- * val serializer = Serializer.Java
- * }
- * }
- *
- */
-trait SerializerBasedActorFormat[T <: Actor] extends Format[T] {
- val serializer: Serializer
- def fromBinary(bytes: Array[Byte], act: T) = serializer.fromBinary(bytes, Some(act.self.actorClass)).asInstanceOf[T]
- def toBinary(ac: T) = serializer.toBinary(ac)
-}
-
-/**
- * Module for local actor serialization
- */
-object ActorSerialization {
-
- def fromBinary[T <: Actor](bytes: Array[Byte])(implicit format: Format[T]): ActorRef =
- fromBinaryToLocalActorRef(bytes, format)
-
- def toBinary[T <: Actor](a: ActorRef)(implicit format: Format[T]): Array[Byte] =
- toSerializedActorRefProtocol(a, format).toByteArray
-
- // wrapper for implicits to be used by Java
- def fromBinaryJ[T <: Actor](bytes: Array[Byte], format: Format[T]): ActorRef =
- fromBinary(bytes)(format)
-
- // wrapper for implicits to be used by Java
- def toBinaryJ[T <: Actor](a: ActorRef, format: Format[T]): Array[Byte] =
- toBinary(a)(format)
-
- private def toSerializedActorRefProtocol[T <: Actor](actorRef: ActorRef, format: Format[T]): SerializedActorRefProtocol = {
- val lifeCycleProtocol: Option[LifeCycleProtocol] = {
- def setScope(builder: LifeCycleProtocol.Builder, scope: Scope) = scope match {
- case Permanent => builder.setLifeCycle(LifeCycleType.PERMANENT)
- case Temporary => builder.setLifeCycle(LifeCycleType.TEMPORARY)
- }
- val builder = LifeCycleProtocol.newBuilder
- actorRef.lifeCycle match {
- case Some(LifeCycle(scope)) =>
- setScope(builder, scope)
- Some(builder.build)
- case None => None
- }
- }
-
- val originalAddress = AddressProtocol.newBuilder
- .setHostname(actorRef.homeAddress.getHostName)
- .setPort(actorRef.homeAddress.getPort)
- .build
-
- val builder = SerializedActorRefProtocol.newBuilder
- .setUuid(actorRef.uuid)
- .setId(actorRef.id)
- .setActorClassname(actorRef.actorClass.getName)
- .setOriginalAddress(originalAddress)
- .setIsTransactor(actorRef.isTransactor)
- .setTimeout(actorRef.timeout)
-
- actorRef.receiveTimeout.foreach(builder.setReceiveTimeout(_))
- builder.setActorInstance(ByteString.copyFrom(format.toBinary(actorRef.actor.asInstanceOf[T])))
- lifeCycleProtocol.foreach(builder.setLifeCycle(_))
- actorRef.supervisor.foreach(s => builder.setSupervisor(RemoteActorSerialization.toRemoteActorRefProtocol(s)))
- // FIXME: how to serialize the hotswap PartialFunction ??
- //hotswap.foreach(builder.setHotswapStack(_))
- builder.build
- }
-
- private def fromBinaryToLocalActorRef[T <: Actor](bytes: Array[Byte], format: Format[T]): ActorRef =
- fromProtobufToLocalActorRef(SerializedActorRefProtocol.newBuilder.mergeFrom(bytes).build, format, None)
-
- private def fromProtobufToLocalActorRef[T <: Actor](
- protocol: SerializedActorRefProtocol, format: Format[T], loader: Option[ClassLoader]): ActorRef = {
- Actor.log.debug("Deserializing SerializedActorRefProtocol to LocalActorRef:\n" + protocol)
-
- val serializer =
- if (format.isInstanceOf[SerializerBasedActorFormat[_]])
- Some(format.asInstanceOf[SerializerBasedActorFormat[_]].serializer)
- else None
-
- val lifeCycle =
- if (protocol.hasLifeCycle) {
- val lifeCycleProtocol = protocol.getLifeCycle
- Some(if (lifeCycleProtocol.getLifeCycle == LifeCycleType.PERMANENT) LifeCycle(Permanent)
- else if (lifeCycleProtocol.getLifeCycle == LifeCycleType.TEMPORARY) LifeCycle(Temporary)
- else throw new IllegalActorStateException("LifeCycle type is not valid: " + lifeCycleProtocol.getLifeCycle))
- } else None
-
- val supervisor =
- if (protocol.hasSupervisor)
- Some(RemoteActorSerialization.fromProtobufToRemoteActorRef(protocol.getSupervisor, loader))
- else None
-
- val hotswap =
- if (serializer.isDefined && protocol.hasHotswapStack) Some(serializer.get
- .fromBinary(protocol.getHotswapStack.toByteArray, Some(classOf[PartialFunction[Any, Unit]]))
- .asInstanceOf[PartialFunction[Any, Unit]])
- else None
-
- val ar = new LocalActorRef(
- protocol.getUuid,
- protocol.getId,
- protocol.getActorClassname,
- protocol.getActorInstance.toByteArray,
- protocol.getOriginalAddress.getHostname,
- protocol.getOriginalAddress.getPort,
- if (protocol.hasIsTransactor) protocol.getIsTransactor else false,
- if (protocol.hasTimeout) protocol.getTimeout else Actor.TIMEOUT,
- if (protocol.hasReceiveTimeout) Some(protocol.getReceiveTimeout) else None,
- lifeCycle,
- supervisor,
- hotswap,
- loader.getOrElse(getClass.getClassLoader), // TODO: should we fall back to getClass.getClassLoader?
- protocol.getMessagesList.toArray.toList.asInstanceOf[List[RemoteRequestProtocol]], format)
-
- if (format.isInstanceOf[SerializerBasedActorFormat[_]] == false)
- format.fromBinary(protocol.getActorInstance.toByteArray, ar.actor.asInstanceOf[T])
- ar
- }
-}
-
-object RemoteActorSerialization {
- /**
- * Deserializes a byte array (Array[Byte]) into an RemoteActorRef instance.
- */
- def fromBinaryToRemoteActorRef(bytes: Array[Byte]): ActorRef =
- fromProtobufToRemoteActorRef(RemoteActorRefProtocol.newBuilder.mergeFrom(bytes).build, None)
-
- /**
- * Deserializes a byte array (Array[Byte]) into an RemoteActorRef instance.
- */
- def fromBinaryToRemoteActorRef(bytes: Array[Byte], loader: ClassLoader): ActorRef =
- fromProtobufToRemoteActorRef(RemoteActorRefProtocol.newBuilder.mergeFrom(bytes).build, Some(loader))
-
- /**
- * Deserializes a RemoteActorRefProtocol Protocol Buffers (protobuf) Message into an RemoteActorRef instance.
- */
- private[akka] def fromProtobufToRemoteActorRef(protocol: RemoteActorRefProtocol, loader: Option[ClassLoader]): ActorRef = {
- Actor.log.debug("Deserializing RemoteActorRefProtocol to RemoteActorRef:\n" + protocol)
- RemoteActorRef(
- protocol.getUuid,
- protocol.getActorClassname,
- protocol.getHomeAddress.getHostname,
- protocol.getHomeAddress.getPort,
- protocol.getTimeout,
- loader)
- }
-
- /**
- * Serializes the ActorRef instance into a Protocol Buffers (protobuf) Message.
- */
- def toRemoteActorRefProtocol(ar: ActorRef): RemoteActorRefProtocol = {
- import ar._
- val host = homeAddress.getHostName
- val port = homeAddress.getPort
-
- if (!registeredInRemoteNodeDuringSerialization) {
- Actor.log.debug("Register serialized Actor [%s] as remote @ [%s:%s]", actorClass.getName, host, port)
- RemoteServer.getOrCreateServer(homeAddress)
- RemoteServer.registerActor(homeAddress, uuid, ar)
- registeredInRemoteNodeDuringSerialization = true
- }
-
- RemoteActorRefProtocol.newBuilder
- .setUuid(uuid)
- .setActorClassname(actorClass.getName)
- .setHomeAddress(AddressProtocol.newBuilder.setHostname(host).setPort(port).build)
- .setTimeout(timeout)
- .build
- }
-
- def createRemoteRequestProtocolBuilder(actorRef: ActorRef, message: Any, isOneWay: Boolean, senderOption: Option[ActorRef]):
- RemoteRequestProtocol.Builder = {
- import actorRef._
-
- val actorInfo = ActorInfoProtocol.newBuilder
- .setUuid(uuid)
- .setTarget(actorClassName)
- .setTimeout(timeout)
- .setActorType(ActorType.SCALA_ACTOR)
- .build
-
- val request = RemoteRequestProtocol.newBuilder
- .setId(RemoteRequestProtocolIdFactory.nextId)
- .setMessage(MessageSerializer.serialize(message))
- .setActorInfo(actorInfo)
- .setIsOneWay(isOneWay)
-
- val id = registerSupervisorAsRemoteActor
- if (id.isDefined) request.setSupervisorUuid(id.get)
-
- senderOption.foreach { sender =>
- RemoteServer.getOrCreateServer(sender.homeAddress).register(sender.uuid, sender)
- request.setSender(toRemoteActorRefProtocol(sender))
- }
- request
- }
-}
diff --git a/akka-core/src/main/scala/remote/MessageSerializer.scala b/akka-core/src/main/scala/remote/MessageSerializer.scala
index 8ef6f5d590..49f38524f9 100644
--- a/akka-core/src/main/scala/remote/MessageSerializer.scala
+++ b/akka-core/src/main/scala/remote/MessageSerializer.scala
@@ -6,9 +6,9 @@ package se.scalablesolutions.akka.remote
import se.scalablesolutions.akka.serialization.{Serializer, Serializable}
import se.scalablesolutions.akka.remote.protocol.RemoteProtocol._
+import se.scalablesolutions.akka.util._
import com.google.protobuf.{Message, ByteString}
-import se.scalablesolutions.akka.util._
object MessageSerializer extends Logging {
private var SERIALIZER_JAVA: Serializer.Java = Serializer.Java
diff --git a/akka-core/src/main/scala/remote/RemoteServer.scala b/akka-core/src/main/scala/remote/RemoteServer.scala
index 5f3c12d5a4..9c8f7454fa 100644
--- a/akka-core/src/main/scala/remote/RemoteServer.scala
+++ b/akka-core/src/main/scala/remote/RemoteServer.scala
@@ -63,7 +63,7 @@ object RemoteNode extends RemoteServer
*/
object RemoteServer {
val HOSTNAME = config.getString("akka.remote.server.hostname", "localhost")
- val PORT = config.getInt("akka.remote.server.port", 9999)
+ val PORT = config.getInt("akka.remote.server.port", 9999)
val CONNECTION_TIMEOUT_MILLIS = Duration(config.getInt("akka.remote.server.connection-timeout", 1), TIME_UNIT)
diff --git a/akka-core/src/main/scala/serialization/Compression.scala b/akka-core/src/main/scala/serialization/Compression.scala
index 5b8df9ada7..bbb8d95421 100644
--- a/akka-core/src/main/scala/serialization/Compression.scala
+++ b/akka-core/src/main/scala/serialization/Compression.scala
@@ -14,8 +14,8 @@ object Compression {
*/
object LZF {
import voldemort.store.compress.lzf._
- def compress(bytes: Array[Byte]): Array[Byte] = LZFEncoder.encode(bytes)
- def uncompress(bytes: Array[Byte]): Array[Byte] = LZFDecoder.decode(bytes)
+ def compress(bytes: Array[Byte]): Array[Byte] = LZFEncoder encode bytes
+ def uncompress(bytes: Array[Byte]): Array[Byte] = LZFDecoder decode bytes
}
}
diff --git a/akka-core/src/test/scala/TestClasses.bak b/akka-core/src/test/scala/TestClasses.bak
deleted file mode 100644
index 5a0ec08c19..0000000000
--- a/akka-core/src/test/scala/TestClasses.bak
+++ /dev/null
@@ -1,102 +0,0 @@
-/**
- * Copyright (C) 2009-2010 Scalable Solutions AB
- */
-
-package se.scalablesolutions.akka.actor
-
-import se.scalablesolutions.akka.serialization.Serializable
-import se.scalablesolutions.akka.actor.annotation.transactionrequired
-import se.scalablesolutions.akka.actor.annotation.prerestart
-import se.scalablesolutions.akka.actor.annotation.postrestart
-import se.scalablesolutions.akka.actor.annotation.inittransactionalstate
-import se.scalablesolutions.akka.actor.annotation.oneway
-import se.scalablesolutions.akka.stm._
-
-import com.google.inject.Inject
-
-trait Bar {
- @oneway
- def bar(msg: String): String
- def getExt: Ext
-}
-
-class BarImpl extends Bar {
- @Inject private var ext: Ext = _
- def getExt: Ext = ext
- def bar(msg: String) = msg
-}
-
-trait Ext
-class ExtImpl extends Ext
-
-class Foo extends Serializable.JavaJSON {
- @Inject
- private var bar: Bar = _
- def body = this
- def getBar = bar
- def foo(msg: String): String = msg + "_foo "
- def bar(msg: String): String = bar.bar(msg)
- def longRunning = {
- Thread.sleep(10000)
- "test"
- }
- def throwsException: String = {
- if (true) throw new RuntimeException("Expected exception; to test fault-tolerance")
- "test"
- }
-}
-
-@serializable class InMemFailer {
- def fail = throw new RuntimeException("Expected exception; to test fault-tolerance")
-}
-
-@transactionrequired
-class InMemStateful {
- private lazy val mapState = TransactionalState.newMap[String, String]
- private lazy val vectorState = TransactionalState.newVector[String]
- private lazy val refState = TransactionalState.newRef[String]
-
- def getMapState(key: String): String = mapState.get(key).get
- def getVectorState: String = vectorState.last
- def getRefState: String = refState.get.get
- def setMapState(key: String, msg: String): Unit = mapState.put(key, msg)
- def setVectorState(msg: String): Unit = vectorState.add(msg)
- def setRefState(msg: String): Unit = refState.swap(msg)
- def success(key: String, msg: String): Unit = {
- mapState.put(key, msg)
- vectorState.add(msg)
- refState.swap(msg)
- }
-
- def success(key: String, msg: String, nested: InMemStatefulNested): Unit = {
- mapState.put(key, msg)
- vectorState.add(msg)
- refState.swap(msg)
- nested.success(key, msg)
- }
-
- def failure(key: String, msg: String, failer: InMemFailer): String = {
- mapState.put(key, msg)
- vectorState.add(msg)
- refState.swap(msg)
- failer.fail
- msg
- }
-
- def failure(key: String, msg: String, nested: InMemStatefulNested, failer: InMemFailer): String = {
- mapState.put(key, msg)
- vectorState.add(msg)
- refState.swap(msg)
- nested.failure(key, msg, failer)
- msg
- }
-
- def thisMethodHangs(key: String, msg: String, failer: InMemFailer) = setMapState(key, msg)
-
- @prerestart def preRestart = println("################ PRE RESTART")
- @postrestart def postRestart = println("################ POST RESTART")
-}
-
-@transactionrequired
-class InMemStatefulNested extends InMemStateful
-
diff --git a/akka-core/src/main/java/se/scalablesolutions/akka/config/DependencyBinding.java b/akka-typed-actors/src/main/java/se/scalablesolutions/akka/config/DependencyBinding.java
similarity index 100%
rename from akka-core/src/main/java/se/scalablesolutions/akka/config/DependencyBinding.java
rename to akka-typed-actors/src/main/java/se/scalablesolutions/akka/config/DependencyBinding.java
diff --git a/akka-core/src/main/java/se/scalablesolutions/akka/config/TypedActorGuiceModule.java b/akka-typed-actors/src/main/java/se/scalablesolutions/akka/config/TypedActorGuiceModule.java
similarity index 100%
rename from akka-core/src/main/java/se/scalablesolutions/akka/config/TypedActorGuiceModule.java
rename to akka-typed-actors/src/main/java/se/scalablesolutions/akka/config/TypedActorGuiceModule.java
diff --git a/akka-typed-actors/src/main/java/se/scalablesolutions/akka/remote/protocol/RemoteProtocol.java b/akka-typed-actors/src/main/java/se/scalablesolutions/akka/remote/protocol/RemoteProtocol.java
new file mode 100644
index 0000000000..0ab1a0aa10
--- /dev/null
+++ b/akka-typed-actors/src/main/java/se/scalablesolutions/akka/remote/protocol/RemoteProtocol.java
@@ -0,0 +1,5190 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: RemoteProtocol.proto
+
+package se.scalablesolutions.akka.remote.protocol;
+
+public final class RemoteProtocol {
+ private RemoteProtocol() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ public enum ActorType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ SCALA_ACTOR(0, 1),
+ JAVA_ACTOR(1, 2),
+ TYPED_ACTOR(2, 3),
+ ;
+
+
+ public final int getNumber() { return value; }
+
+ public static ActorType valueOf(int value) {
+ switch (value) {
+ case 1: return SCALA_ACTOR;
+ case 2: return JAVA_ACTOR;
+ case 3: return TYPED_ACTOR;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public ActorType findValueByNumber(int number) {
+ return ActorType.valueOf(number)
+ ; }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final ActorType[] VALUES = {
+ SCALA_ACTOR, JAVA_ACTOR, TYPED_ACTOR,
+ };
+ public static ActorType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+ private final int index;
+ private final int value;
+ private ActorType(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ static {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(enum_scope:ActorType)
+ }
+
+ public enum SerializationSchemeType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ JAVA(0, 1),
+ SBINARY(1, 2),
+ SCALA_JSON(2, 3),
+ JAVA_JSON(3, 4),
+ PROTOBUF(4, 5),
+ ;
+
+
+ public final int getNumber() { return value; }
+
+ public static SerializationSchemeType valueOf(int value) {
+ switch (value) {
+ case 1: return JAVA;
+ case 2: return SBINARY;
+ case 3: return SCALA_JSON;
+ case 4: return JAVA_JSON;
+ case 5: return PROTOBUF;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public SerializationSchemeType findValueByNumber(int number) {
+ return SerializationSchemeType.valueOf(number)
+ ; }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.getDescriptor().getEnumTypes().get(1);
+ }
+
+ private static final SerializationSchemeType[] VALUES = {
+ JAVA, SBINARY, SCALA_JSON, JAVA_JSON, PROTOBUF,
+ };
+ public static SerializationSchemeType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+ private final int index;
+ private final int value;
+ private SerializationSchemeType(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ static {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(enum_scope:SerializationSchemeType)
+ }
+
+ public enum LifeCycleType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ PERMANENT(0, 1),
+ TEMPORARY(1, 2),
+ ;
+
+
+ public final int getNumber() { return value; }
+
+ public static LifeCycleType valueOf(int value) {
+ switch (value) {
+ case 1: return PERMANENT;
+ case 2: return TEMPORARY;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public LifeCycleType findValueByNumber(int number) {
+ return LifeCycleType.valueOf(number)
+ ; }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.getDescriptor().getEnumTypes().get(2);
+ }
+
+ private static final LifeCycleType[] VALUES = {
+ PERMANENT, TEMPORARY,
+ };
+ public static LifeCycleType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+ private final int index;
+ private final int value;
+ private LifeCycleType(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ static {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(enum_scope:LifeCycleType)
+ }
+
+ public static final class RemoteActorRefProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use RemoteActorRefProtocol.newBuilder() to construct.
+ private RemoteActorRefProtocol() {
+ initFields();
+ }
+ private RemoteActorRefProtocol(boolean noInit) {}
+
+ private static final RemoteActorRefProtocol defaultInstance;
+ public static RemoteActorRefProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public RemoteActorRefProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_RemoteActorRefProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_RemoteActorRefProtocol_fieldAccessorTable;
+ }
+
+ // required string uuid = 1;
+ public static final int UUID_FIELD_NUMBER = 1;
+ private boolean hasUuid;
+ private java.lang.String uuid_ = "";
+ public boolean hasUuid() { return hasUuid; }
+ public java.lang.String getUuid() { return uuid_; }
+
+ // required string actorClassname = 2;
+ public static final int ACTORCLASSNAME_FIELD_NUMBER = 2;
+ private boolean hasActorClassname;
+ private java.lang.String actorClassname_ = "";
+ public boolean hasActorClassname() { return hasActorClassname; }
+ public java.lang.String getActorClassname() { return actorClassname_; }
+
+ // required .AddressProtocol homeAddress = 3;
+ public static final int HOMEADDRESS_FIELD_NUMBER = 3;
+ private boolean hasHomeAddress;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol homeAddress_;
+ public boolean hasHomeAddress() { return hasHomeAddress; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol getHomeAddress() { return homeAddress_; }
+
+ // optional uint64 timeout = 4;
+ public static final int TIMEOUT_FIELD_NUMBER = 4;
+ private boolean hasTimeout;
+ private long timeout_ = 0L;
+ public boolean hasTimeout() { return hasTimeout; }
+ public long getTimeout() { return timeout_; }
+
+ private void initFields() {
+ homeAddress_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDefaultInstance();
+ }
+ public final boolean isInitialized() {
+ if (!hasUuid) return false;
+ if (!hasActorClassname) return false;
+ if (!hasHomeAddress) return false;
+ if (!getHomeAddress().isInitialized()) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasUuid()) {
+ output.writeString(1, getUuid());
+ }
+ if (hasActorClassname()) {
+ output.writeString(2, getActorClassname());
+ }
+ if (hasHomeAddress()) {
+ output.writeMessage(3, getHomeAddress());
+ }
+ if (hasTimeout()) {
+ output.writeUInt64(4, getTimeout());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasUuid()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(1, getUuid());
+ }
+ if (hasActorClassname()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(2, getActorClassname());
+ }
+ if (hasHomeAddress()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getHomeAddress());
+ }
+ if (hasTimeout()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(4, getTimeout());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDefaultInstance()) return this;
+ if (other.hasUuid()) {
+ setUuid(other.getUuid());
+ }
+ if (other.hasActorClassname()) {
+ setActorClassname(other.getActorClassname());
+ }
+ if (other.hasHomeAddress()) {
+ mergeHomeAddress(other.getHomeAddress());
+ }
+ if (other.hasTimeout()) {
+ setTimeout(other.getTimeout());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ setUuid(input.readString());
+ break;
+ }
+ case 18: {
+ setActorClassname(input.readString());
+ break;
+ }
+ case 26: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.newBuilder();
+ if (hasHomeAddress()) {
+ subBuilder.mergeFrom(getHomeAddress());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setHomeAddress(subBuilder.buildPartial());
+ break;
+ }
+ case 32: {
+ setTimeout(input.readUInt64());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required string uuid = 1;
+ public boolean hasUuid() {
+ return result.hasUuid();
+ }
+ public java.lang.String getUuid() {
+ return result.getUuid();
+ }
+ public Builder setUuid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasUuid = true;
+ result.uuid_ = value;
+ return this;
+ }
+ public Builder clearUuid() {
+ result.hasUuid = false;
+ result.uuid_ = getDefaultInstance().getUuid();
+ return this;
+ }
+
+ // required string actorClassname = 2;
+ public boolean hasActorClassname() {
+ return result.hasActorClassname();
+ }
+ public java.lang.String getActorClassname() {
+ return result.getActorClassname();
+ }
+ public Builder setActorClassname(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasActorClassname = true;
+ result.actorClassname_ = value;
+ return this;
+ }
+ public Builder clearActorClassname() {
+ result.hasActorClassname = false;
+ result.actorClassname_ = getDefaultInstance().getActorClassname();
+ return this;
+ }
+
+ // required .AddressProtocol homeAddress = 3;
+ public boolean hasHomeAddress() {
+ return result.hasHomeAddress();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol getHomeAddress() {
+ return result.getHomeAddress();
+ }
+ public Builder setHomeAddress(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasHomeAddress = true;
+ result.homeAddress_ = value;
+ return this;
+ }
+ public Builder setHomeAddress(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.Builder builderForValue) {
+ result.hasHomeAddress = true;
+ result.homeAddress_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeHomeAddress(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol value) {
+ if (result.hasHomeAddress() &&
+ result.homeAddress_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDefaultInstance()) {
+ result.homeAddress_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.newBuilder(result.homeAddress_).mergeFrom(value).buildPartial();
+ } else {
+ result.homeAddress_ = value;
+ }
+ result.hasHomeAddress = true;
+ return this;
+ }
+ public Builder clearHomeAddress() {
+ result.hasHomeAddress = false;
+ result.homeAddress_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // optional uint64 timeout = 4;
+ public boolean hasTimeout() {
+ return result.hasTimeout();
+ }
+ public long getTimeout() {
+ return result.getTimeout();
+ }
+ public Builder setTimeout(long value) {
+ result.hasTimeout = true;
+ result.timeout_ = value;
+ return this;
+ }
+ public Builder clearTimeout() {
+ result.hasTimeout = false;
+ result.timeout_ = 0L;
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:RemoteActorRefProtocol)
+ }
+
+ static {
+ defaultInstance = new RemoteActorRefProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:RemoteActorRefProtocol)
+ }
+
+ public static final class SerializedActorRefProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use SerializedActorRefProtocol.newBuilder() to construct.
+ private SerializedActorRefProtocol() {
+ initFields();
+ }
+ private SerializedActorRefProtocol(boolean noInit) {}
+
+ private static final SerializedActorRefProtocol defaultInstance;
+ public static SerializedActorRefProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public SerializedActorRefProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_SerializedActorRefProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_SerializedActorRefProtocol_fieldAccessorTable;
+ }
+
+ // required string uuid = 1;
+ public static final int UUID_FIELD_NUMBER = 1;
+ private boolean hasUuid;
+ private java.lang.String uuid_ = "";
+ public boolean hasUuid() { return hasUuid; }
+ public java.lang.String getUuid() { return uuid_; }
+
+ // required string id = 2;
+ public static final int ID_FIELD_NUMBER = 2;
+ private boolean hasId;
+ private java.lang.String id_ = "";
+ public boolean hasId() { return hasId; }
+ public java.lang.String getId() { return id_; }
+
+ // required string actorClassname = 3;
+ public static final int ACTORCLASSNAME_FIELD_NUMBER = 3;
+ private boolean hasActorClassname;
+ private java.lang.String actorClassname_ = "";
+ public boolean hasActorClassname() { return hasActorClassname; }
+ public java.lang.String getActorClassname() { return actorClassname_; }
+
+ // required .AddressProtocol originalAddress = 4;
+ public static final int ORIGINALADDRESS_FIELD_NUMBER = 4;
+ private boolean hasOriginalAddress;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol originalAddress_;
+ public boolean hasOriginalAddress() { return hasOriginalAddress; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol getOriginalAddress() { return originalAddress_; }
+
+ // optional bytes actorInstance = 5;
+ public static final int ACTORINSTANCE_FIELD_NUMBER = 5;
+ private boolean hasActorInstance;
+ private com.google.protobuf.ByteString actorInstance_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasActorInstance() { return hasActorInstance; }
+ public com.google.protobuf.ByteString getActorInstance() { return actorInstance_; }
+
+ // optional string serializerClassname = 6;
+ public static final int SERIALIZERCLASSNAME_FIELD_NUMBER = 6;
+ private boolean hasSerializerClassname;
+ private java.lang.String serializerClassname_ = "";
+ public boolean hasSerializerClassname() { return hasSerializerClassname; }
+ public java.lang.String getSerializerClassname() { return serializerClassname_; }
+
+ // optional bool isTransactor = 7;
+ public static final int ISTRANSACTOR_FIELD_NUMBER = 7;
+ private boolean hasIsTransactor;
+ private boolean isTransactor_ = false;
+ public boolean hasIsTransactor() { return hasIsTransactor; }
+ public boolean getIsTransactor() { return isTransactor_; }
+
+ // optional uint64 timeout = 8;
+ public static final int TIMEOUT_FIELD_NUMBER = 8;
+ private boolean hasTimeout;
+ private long timeout_ = 0L;
+ public boolean hasTimeout() { return hasTimeout; }
+ public long getTimeout() { return timeout_; }
+
+ // optional uint64 receiveTimeout = 9;
+ public static final int RECEIVETIMEOUT_FIELD_NUMBER = 9;
+ private boolean hasReceiveTimeout;
+ private long receiveTimeout_ = 0L;
+ public boolean hasReceiveTimeout() { return hasReceiveTimeout; }
+ public long getReceiveTimeout() { return receiveTimeout_; }
+
+ // optional .LifeCycleProtocol lifeCycle = 10;
+ public static final int LIFECYCLE_FIELD_NUMBER = 10;
+ private boolean hasLifeCycle;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol lifeCycle_;
+ public boolean hasLifeCycle() { return hasLifeCycle; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol getLifeCycle() { return lifeCycle_; }
+
+ // optional .RemoteActorRefProtocol supervisor = 11;
+ public static final int SUPERVISOR_FIELD_NUMBER = 11;
+ private boolean hasSupervisor;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol supervisor_;
+ public boolean hasSupervisor() { return hasSupervisor; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol getSupervisor() { return supervisor_; }
+
+ // optional bytes hotswapStack = 12;
+ public static final int HOTSWAPSTACK_FIELD_NUMBER = 12;
+ private boolean hasHotswapStack;
+ private com.google.protobuf.ByteString hotswapStack_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasHotswapStack() { return hasHotswapStack; }
+ public com.google.protobuf.ByteString getHotswapStack() { return hotswapStack_; }
+
+ // repeated .RemoteRequestProtocol messages = 13;
+ public static final int MESSAGES_FIELD_NUMBER = 13;
+ private java.util.List messages_ =
+ java.util.Collections.emptyList();
+ public java.util.List getMessagesList() {
+ return messages_;
+ }
+ public int getMessagesCount() { return messages_.size(); }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol getMessages(int index) {
+ return messages_.get(index);
+ }
+
+ private void initFields() {
+ originalAddress_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDefaultInstance();
+ lifeCycle_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.getDefaultInstance();
+ supervisor_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDefaultInstance();
+ }
+ public final boolean isInitialized() {
+ if (!hasUuid) return false;
+ if (!hasId) return false;
+ if (!hasActorClassname) return false;
+ if (!hasOriginalAddress) return false;
+ if (!getOriginalAddress().isInitialized()) return false;
+ if (hasLifeCycle()) {
+ if (!getLifeCycle().isInitialized()) return false;
+ }
+ if (hasSupervisor()) {
+ if (!getSupervisor().isInitialized()) return false;
+ }
+ for (se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol element : getMessagesList()) {
+ if (!element.isInitialized()) return false;
+ }
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasUuid()) {
+ output.writeString(1, getUuid());
+ }
+ if (hasId()) {
+ output.writeString(2, getId());
+ }
+ if (hasActorClassname()) {
+ output.writeString(3, getActorClassname());
+ }
+ if (hasOriginalAddress()) {
+ output.writeMessage(4, getOriginalAddress());
+ }
+ if (hasActorInstance()) {
+ output.writeBytes(5, getActorInstance());
+ }
+ if (hasSerializerClassname()) {
+ output.writeString(6, getSerializerClassname());
+ }
+ if (hasIsTransactor()) {
+ output.writeBool(7, getIsTransactor());
+ }
+ if (hasTimeout()) {
+ output.writeUInt64(8, getTimeout());
+ }
+ if (hasReceiveTimeout()) {
+ output.writeUInt64(9, getReceiveTimeout());
+ }
+ if (hasLifeCycle()) {
+ output.writeMessage(10, getLifeCycle());
+ }
+ if (hasSupervisor()) {
+ output.writeMessage(11, getSupervisor());
+ }
+ if (hasHotswapStack()) {
+ output.writeBytes(12, getHotswapStack());
+ }
+ for (se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol element : getMessagesList()) {
+ output.writeMessage(13, element);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasUuid()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(1, getUuid());
+ }
+ if (hasId()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(2, getId());
+ }
+ if (hasActorClassname()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(3, getActorClassname());
+ }
+ if (hasOriginalAddress()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getOriginalAddress());
+ }
+ if (hasActorInstance()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(5, getActorInstance());
+ }
+ if (hasSerializerClassname()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(6, getSerializerClassname());
+ }
+ if (hasIsTransactor()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(7, getIsTransactor());
+ }
+ if (hasTimeout()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(8, getTimeout());
+ }
+ if (hasReceiveTimeout()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(9, getReceiveTimeout());
+ }
+ if (hasLifeCycle()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getLifeCycle());
+ }
+ if (hasSupervisor()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(11, getSupervisor());
+ }
+ if (hasHotswapStack()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(12, getHotswapStack());
+ }
+ for (se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol element : getMessagesList()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(13, element);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ if (result.messages_ != java.util.Collections.EMPTY_LIST) {
+ result.messages_ =
+ java.util.Collections.unmodifiableList(result.messages_);
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol.getDefaultInstance()) return this;
+ if (other.hasUuid()) {
+ setUuid(other.getUuid());
+ }
+ if (other.hasId()) {
+ setId(other.getId());
+ }
+ if (other.hasActorClassname()) {
+ setActorClassname(other.getActorClassname());
+ }
+ if (other.hasOriginalAddress()) {
+ mergeOriginalAddress(other.getOriginalAddress());
+ }
+ if (other.hasActorInstance()) {
+ setActorInstance(other.getActorInstance());
+ }
+ if (other.hasSerializerClassname()) {
+ setSerializerClassname(other.getSerializerClassname());
+ }
+ if (other.hasIsTransactor()) {
+ setIsTransactor(other.getIsTransactor());
+ }
+ if (other.hasTimeout()) {
+ setTimeout(other.getTimeout());
+ }
+ if (other.hasReceiveTimeout()) {
+ setReceiveTimeout(other.getReceiveTimeout());
+ }
+ if (other.hasLifeCycle()) {
+ mergeLifeCycle(other.getLifeCycle());
+ }
+ if (other.hasSupervisor()) {
+ mergeSupervisor(other.getSupervisor());
+ }
+ if (other.hasHotswapStack()) {
+ setHotswapStack(other.getHotswapStack());
+ }
+ if (!other.messages_.isEmpty()) {
+ if (result.messages_.isEmpty()) {
+ result.messages_ = new java.util.ArrayList();
+ }
+ result.messages_.addAll(other.messages_);
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ setUuid(input.readString());
+ break;
+ }
+ case 18: {
+ setId(input.readString());
+ break;
+ }
+ case 26: {
+ setActorClassname(input.readString());
+ break;
+ }
+ case 34: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.newBuilder();
+ if (hasOriginalAddress()) {
+ subBuilder.mergeFrom(getOriginalAddress());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setOriginalAddress(subBuilder.buildPartial());
+ break;
+ }
+ case 42: {
+ setActorInstance(input.readBytes());
+ break;
+ }
+ case 50: {
+ setSerializerClassname(input.readString());
+ break;
+ }
+ case 56: {
+ setIsTransactor(input.readBool());
+ break;
+ }
+ case 64: {
+ setTimeout(input.readUInt64());
+ break;
+ }
+ case 72: {
+ setReceiveTimeout(input.readUInt64());
+ break;
+ }
+ case 82: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.newBuilder();
+ if (hasLifeCycle()) {
+ subBuilder.mergeFrom(getLifeCycle());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setLifeCycle(subBuilder.buildPartial());
+ break;
+ }
+ case 90: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.newBuilder();
+ if (hasSupervisor()) {
+ subBuilder.mergeFrom(getSupervisor());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setSupervisor(subBuilder.buildPartial());
+ break;
+ }
+ case 98: {
+ setHotswapStack(input.readBytes());
+ break;
+ }
+ case 106: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.newBuilder();
+ input.readMessage(subBuilder, extensionRegistry);
+ addMessages(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required string uuid = 1;
+ public boolean hasUuid() {
+ return result.hasUuid();
+ }
+ public java.lang.String getUuid() {
+ return result.getUuid();
+ }
+ public Builder setUuid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasUuid = true;
+ result.uuid_ = value;
+ return this;
+ }
+ public Builder clearUuid() {
+ result.hasUuid = false;
+ result.uuid_ = getDefaultInstance().getUuid();
+ return this;
+ }
+
+ // required string id = 2;
+ public boolean hasId() {
+ return result.hasId();
+ }
+ public java.lang.String getId() {
+ return result.getId();
+ }
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasId = true;
+ result.id_ = value;
+ return this;
+ }
+ public Builder clearId() {
+ result.hasId = false;
+ result.id_ = getDefaultInstance().getId();
+ return this;
+ }
+
+ // required string actorClassname = 3;
+ public boolean hasActorClassname() {
+ return result.hasActorClassname();
+ }
+ public java.lang.String getActorClassname() {
+ return result.getActorClassname();
+ }
+ public Builder setActorClassname(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasActorClassname = true;
+ result.actorClassname_ = value;
+ return this;
+ }
+ public Builder clearActorClassname() {
+ result.hasActorClassname = false;
+ result.actorClassname_ = getDefaultInstance().getActorClassname();
+ return this;
+ }
+
+ // required .AddressProtocol originalAddress = 4;
+ public boolean hasOriginalAddress() {
+ return result.hasOriginalAddress();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol getOriginalAddress() {
+ return result.getOriginalAddress();
+ }
+ public Builder setOriginalAddress(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasOriginalAddress = true;
+ result.originalAddress_ = value;
+ return this;
+ }
+ public Builder setOriginalAddress(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.Builder builderForValue) {
+ result.hasOriginalAddress = true;
+ result.originalAddress_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeOriginalAddress(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol value) {
+ if (result.hasOriginalAddress() &&
+ result.originalAddress_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDefaultInstance()) {
+ result.originalAddress_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.newBuilder(result.originalAddress_).mergeFrom(value).buildPartial();
+ } else {
+ result.originalAddress_ = value;
+ }
+ result.hasOriginalAddress = true;
+ return this;
+ }
+ public Builder clearOriginalAddress() {
+ result.hasOriginalAddress = false;
+ result.originalAddress_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // optional bytes actorInstance = 5;
+ public boolean hasActorInstance() {
+ return result.hasActorInstance();
+ }
+ public com.google.protobuf.ByteString getActorInstance() {
+ return result.getActorInstance();
+ }
+ public Builder setActorInstance(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasActorInstance = true;
+ result.actorInstance_ = value;
+ return this;
+ }
+ public Builder clearActorInstance() {
+ result.hasActorInstance = false;
+ result.actorInstance_ = getDefaultInstance().getActorInstance();
+ return this;
+ }
+
+ // optional string serializerClassname = 6;
+ public boolean hasSerializerClassname() {
+ return result.hasSerializerClassname();
+ }
+ public java.lang.String getSerializerClassname() {
+ return result.getSerializerClassname();
+ }
+ public Builder setSerializerClassname(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasSerializerClassname = true;
+ result.serializerClassname_ = value;
+ return this;
+ }
+ public Builder clearSerializerClassname() {
+ result.hasSerializerClassname = false;
+ result.serializerClassname_ = getDefaultInstance().getSerializerClassname();
+ return this;
+ }
+
+ // optional bool isTransactor = 7;
+ public boolean hasIsTransactor() {
+ return result.hasIsTransactor();
+ }
+ public boolean getIsTransactor() {
+ return result.getIsTransactor();
+ }
+ public Builder setIsTransactor(boolean value) {
+ result.hasIsTransactor = true;
+ result.isTransactor_ = value;
+ return this;
+ }
+ public Builder clearIsTransactor() {
+ result.hasIsTransactor = false;
+ result.isTransactor_ = false;
+ return this;
+ }
+
+ // optional uint64 timeout = 8;
+ public boolean hasTimeout() {
+ return result.hasTimeout();
+ }
+ public long getTimeout() {
+ return result.getTimeout();
+ }
+ public Builder setTimeout(long value) {
+ result.hasTimeout = true;
+ result.timeout_ = value;
+ return this;
+ }
+ public Builder clearTimeout() {
+ result.hasTimeout = false;
+ result.timeout_ = 0L;
+ return this;
+ }
+
+ // optional uint64 receiveTimeout = 9;
+ public boolean hasReceiveTimeout() {
+ return result.hasReceiveTimeout();
+ }
+ public long getReceiveTimeout() {
+ return result.getReceiveTimeout();
+ }
+ public Builder setReceiveTimeout(long value) {
+ result.hasReceiveTimeout = true;
+ result.receiveTimeout_ = value;
+ return this;
+ }
+ public Builder clearReceiveTimeout() {
+ result.hasReceiveTimeout = false;
+ result.receiveTimeout_ = 0L;
+ return this;
+ }
+
+ // optional .LifeCycleProtocol lifeCycle = 10;
+ public boolean hasLifeCycle() {
+ return result.hasLifeCycle();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol getLifeCycle() {
+ return result.getLifeCycle();
+ }
+ public Builder setLifeCycle(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasLifeCycle = true;
+ result.lifeCycle_ = value;
+ return this;
+ }
+ public Builder setLifeCycle(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.Builder builderForValue) {
+ result.hasLifeCycle = true;
+ result.lifeCycle_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeLifeCycle(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol value) {
+ if (result.hasLifeCycle() &&
+ result.lifeCycle_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.getDefaultInstance()) {
+ result.lifeCycle_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.newBuilder(result.lifeCycle_).mergeFrom(value).buildPartial();
+ } else {
+ result.lifeCycle_ = value;
+ }
+ result.hasLifeCycle = true;
+ return this;
+ }
+ public Builder clearLifeCycle() {
+ result.hasLifeCycle = false;
+ result.lifeCycle_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // optional .RemoteActorRefProtocol supervisor = 11;
+ public boolean hasSupervisor() {
+ return result.hasSupervisor();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol getSupervisor() {
+ return result.getSupervisor();
+ }
+ public Builder setSupervisor(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasSupervisor = true;
+ result.supervisor_ = value;
+ return this;
+ }
+ public Builder setSupervisor(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.Builder builderForValue) {
+ result.hasSupervisor = true;
+ result.supervisor_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeSupervisor(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol value) {
+ if (result.hasSupervisor() &&
+ result.supervisor_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDefaultInstance()) {
+ result.supervisor_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.newBuilder(result.supervisor_).mergeFrom(value).buildPartial();
+ } else {
+ result.supervisor_ = value;
+ }
+ result.hasSupervisor = true;
+ return this;
+ }
+ public Builder clearSupervisor() {
+ result.hasSupervisor = false;
+ result.supervisor_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // optional bytes hotswapStack = 12;
+ public boolean hasHotswapStack() {
+ return result.hasHotswapStack();
+ }
+ public com.google.protobuf.ByteString getHotswapStack() {
+ return result.getHotswapStack();
+ }
+ public Builder setHotswapStack(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasHotswapStack = true;
+ result.hotswapStack_ = value;
+ return this;
+ }
+ public Builder clearHotswapStack() {
+ result.hasHotswapStack = false;
+ result.hotswapStack_ = getDefaultInstance().getHotswapStack();
+ return this;
+ }
+
+ // repeated .RemoteRequestProtocol messages = 13;
+ public java.util.List getMessagesList() {
+ return java.util.Collections.unmodifiableList(result.messages_);
+ }
+ public int getMessagesCount() {
+ return result.getMessagesCount();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol getMessages(int index) {
+ return result.getMessages(index);
+ }
+ public Builder setMessages(int index, se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.messages_.set(index, value);
+ return this;
+ }
+ public Builder setMessages(int index, se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.Builder builderForValue) {
+ result.messages_.set(index, builderForValue.build());
+ return this;
+ }
+ public Builder addMessages(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ if (result.messages_.isEmpty()) {
+ result.messages_ = new java.util.ArrayList();
+ }
+ result.messages_.add(value);
+ return this;
+ }
+ public Builder addMessages(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.Builder builderForValue) {
+ if (result.messages_.isEmpty()) {
+ result.messages_ = new java.util.ArrayList();
+ }
+ result.messages_.add(builderForValue.build());
+ return this;
+ }
+ public Builder addAllMessages(
+ java.lang.Iterable extends se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol> values) {
+ if (result.messages_.isEmpty()) {
+ result.messages_ = new java.util.ArrayList();
+ }
+ super.addAll(values, result.messages_);
+ return this;
+ }
+ public Builder clearMessages() {
+ result.messages_ = java.util.Collections.emptyList();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:SerializedActorRefProtocol)
+ }
+
+ static {
+ defaultInstance = new SerializedActorRefProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:SerializedActorRefProtocol)
+ }
+
+ public static final class MessageProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use MessageProtocol.newBuilder() to construct.
+ private MessageProtocol() {
+ initFields();
+ }
+ private MessageProtocol(boolean noInit) {}
+
+ private static final MessageProtocol defaultInstance;
+ public static MessageProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public MessageProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_MessageProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_MessageProtocol_fieldAccessorTable;
+ }
+
+ // required .SerializationSchemeType serializationScheme = 1;
+ public static final int SERIALIZATIONSCHEME_FIELD_NUMBER = 1;
+ private boolean hasSerializationScheme;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializationSchemeType serializationScheme_;
+ public boolean hasSerializationScheme() { return hasSerializationScheme; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializationSchemeType getSerializationScheme() { return serializationScheme_; }
+
+ // required bytes message = 2;
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ private boolean hasMessage;
+ private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasMessage() { return hasMessage; }
+ public com.google.protobuf.ByteString getMessage() { return message_; }
+
+ // optional bytes messageManifest = 3;
+ public static final int MESSAGEMANIFEST_FIELD_NUMBER = 3;
+ private boolean hasMessageManifest;
+ private com.google.protobuf.ByteString messageManifest_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasMessageManifest() { return hasMessageManifest; }
+ public com.google.protobuf.ByteString getMessageManifest() { return messageManifest_; }
+
+ private void initFields() {
+ serializationScheme_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializationSchemeType.JAVA;
+ }
+ public final boolean isInitialized() {
+ if (!hasSerializationScheme) return false;
+ if (!hasMessage) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasSerializationScheme()) {
+ output.writeEnum(1, getSerializationScheme().getNumber());
+ }
+ if (hasMessage()) {
+ output.writeBytes(2, getMessage());
+ }
+ if (hasMessageManifest()) {
+ output.writeBytes(3, getMessageManifest());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasSerializationScheme()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, getSerializationScheme().getNumber());
+ }
+ if (hasMessage()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getMessage());
+ }
+ if (hasMessageManifest()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, getMessageManifest());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDefaultInstance()) return this;
+ if (other.hasSerializationScheme()) {
+ setSerializationScheme(other.getSerializationScheme());
+ }
+ if (other.hasMessage()) {
+ setMessage(other.getMessage());
+ }
+ if (other.hasMessageManifest()) {
+ setMessageManifest(other.getMessageManifest());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 8: {
+ int rawValue = input.readEnum();
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializationSchemeType value = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializationSchemeType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(1, rawValue);
+ } else {
+ setSerializationScheme(value);
+ }
+ break;
+ }
+ case 18: {
+ setMessage(input.readBytes());
+ break;
+ }
+ case 26: {
+ setMessageManifest(input.readBytes());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required .SerializationSchemeType serializationScheme = 1;
+ public boolean hasSerializationScheme() {
+ return result.hasSerializationScheme();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializationSchemeType getSerializationScheme() {
+ return result.getSerializationScheme();
+ }
+ public Builder setSerializationScheme(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializationSchemeType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasSerializationScheme = true;
+ result.serializationScheme_ = value;
+ return this;
+ }
+ public Builder clearSerializationScheme() {
+ result.hasSerializationScheme = false;
+ result.serializationScheme_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializationSchemeType.JAVA;
+ return this;
+ }
+
+ // required bytes message = 2;
+ public boolean hasMessage() {
+ return result.hasMessage();
+ }
+ public com.google.protobuf.ByteString getMessage() {
+ return result.getMessage();
+ }
+ public Builder setMessage(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasMessage = true;
+ result.message_ = value;
+ return this;
+ }
+ public Builder clearMessage() {
+ result.hasMessage = false;
+ result.message_ = getDefaultInstance().getMessage();
+ return this;
+ }
+
+ // optional bytes messageManifest = 3;
+ public boolean hasMessageManifest() {
+ return result.hasMessageManifest();
+ }
+ public com.google.protobuf.ByteString getMessageManifest() {
+ return result.getMessageManifest();
+ }
+ public Builder setMessageManifest(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasMessageManifest = true;
+ result.messageManifest_ = value;
+ return this;
+ }
+ public Builder clearMessageManifest() {
+ result.hasMessageManifest = false;
+ result.messageManifest_ = getDefaultInstance().getMessageManifest();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:MessageProtocol)
+ }
+
+ static {
+ defaultInstance = new MessageProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:MessageProtocol)
+ }
+
+ public static final class ActorInfoProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use ActorInfoProtocol.newBuilder() to construct.
+ private ActorInfoProtocol() {
+ initFields();
+ }
+ private ActorInfoProtocol(boolean noInit) {}
+
+ private static final ActorInfoProtocol defaultInstance;
+ public static ActorInfoProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public ActorInfoProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_ActorInfoProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_ActorInfoProtocol_fieldAccessorTable;
+ }
+
+ // required string uuid = 1;
+ public static final int UUID_FIELD_NUMBER = 1;
+ private boolean hasUuid;
+ private java.lang.String uuid_ = "";
+ public boolean hasUuid() { return hasUuid; }
+ public java.lang.String getUuid() { return uuid_; }
+
+ // required string target = 2;
+ public static final int TARGET_FIELD_NUMBER = 2;
+ private boolean hasTarget;
+ private java.lang.String target_ = "";
+ public boolean hasTarget() { return hasTarget; }
+ public java.lang.String getTarget() { return target_; }
+
+ // required uint64 timeout = 3;
+ public static final int TIMEOUT_FIELD_NUMBER = 3;
+ private boolean hasTimeout;
+ private long timeout_ = 0L;
+ public boolean hasTimeout() { return hasTimeout; }
+ public long getTimeout() { return timeout_; }
+
+ // required .ActorType actorType = 4;
+ public static final int ACTORTYPE_FIELD_NUMBER = 4;
+ private boolean hasActorType;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorType actorType_;
+ public boolean hasActorType() { return hasActorType; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorType getActorType() { return actorType_; }
+
+ // optional .TypedActorInfoProtocol typedActorInfo = 5;
+ public static final int TYPEDACTORINFO_FIELD_NUMBER = 5;
+ private boolean hasTypedActorInfo;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol typedActorInfo_;
+ public boolean hasTypedActorInfo() { return hasTypedActorInfo; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol getTypedActorInfo() { return typedActorInfo_; }
+
+ private void initFields() {
+ actorType_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorType.SCALA_ACTOR;
+ typedActorInfo_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.getDefaultInstance();
+ }
+ public final boolean isInitialized() {
+ if (!hasUuid) return false;
+ if (!hasTarget) return false;
+ if (!hasTimeout) return false;
+ if (!hasActorType) return false;
+ if (hasTypedActorInfo()) {
+ if (!getTypedActorInfo().isInitialized()) return false;
+ }
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasUuid()) {
+ output.writeString(1, getUuid());
+ }
+ if (hasTarget()) {
+ output.writeString(2, getTarget());
+ }
+ if (hasTimeout()) {
+ output.writeUInt64(3, getTimeout());
+ }
+ if (hasActorType()) {
+ output.writeEnum(4, getActorType().getNumber());
+ }
+ if (hasTypedActorInfo()) {
+ output.writeMessage(5, getTypedActorInfo());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasUuid()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(1, getUuid());
+ }
+ if (hasTarget()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(2, getTarget());
+ }
+ if (hasTimeout()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(3, getTimeout());
+ }
+ if (hasActorType()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(4, getActorType().getNumber());
+ }
+ if (hasTypedActorInfo()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getTypedActorInfo());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.getDefaultInstance()) return this;
+ if (other.hasUuid()) {
+ setUuid(other.getUuid());
+ }
+ if (other.hasTarget()) {
+ setTarget(other.getTarget());
+ }
+ if (other.hasTimeout()) {
+ setTimeout(other.getTimeout());
+ }
+ if (other.hasActorType()) {
+ setActorType(other.getActorType());
+ }
+ if (other.hasTypedActorInfo()) {
+ mergeTypedActorInfo(other.getTypedActorInfo());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ setUuid(input.readString());
+ break;
+ }
+ case 18: {
+ setTarget(input.readString());
+ break;
+ }
+ case 24: {
+ setTimeout(input.readUInt64());
+ break;
+ }
+ case 32: {
+ int rawValue = input.readEnum();
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorType value = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(4, rawValue);
+ } else {
+ setActorType(value);
+ }
+ break;
+ }
+ case 42: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.newBuilder();
+ if (hasTypedActorInfo()) {
+ subBuilder.mergeFrom(getTypedActorInfo());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setTypedActorInfo(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required string uuid = 1;
+ public boolean hasUuid() {
+ return result.hasUuid();
+ }
+ public java.lang.String getUuid() {
+ return result.getUuid();
+ }
+ public Builder setUuid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasUuid = true;
+ result.uuid_ = value;
+ return this;
+ }
+ public Builder clearUuid() {
+ result.hasUuid = false;
+ result.uuid_ = getDefaultInstance().getUuid();
+ return this;
+ }
+
+ // required string target = 2;
+ public boolean hasTarget() {
+ return result.hasTarget();
+ }
+ public java.lang.String getTarget() {
+ return result.getTarget();
+ }
+ public Builder setTarget(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasTarget = true;
+ result.target_ = value;
+ return this;
+ }
+ public Builder clearTarget() {
+ result.hasTarget = false;
+ result.target_ = getDefaultInstance().getTarget();
+ return this;
+ }
+
+ // required uint64 timeout = 3;
+ public boolean hasTimeout() {
+ return result.hasTimeout();
+ }
+ public long getTimeout() {
+ return result.getTimeout();
+ }
+ public Builder setTimeout(long value) {
+ result.hasTimeout = true;
+ result.timeout_ = value;
+ return this;
+ }
+ public Builder clearTimeout() {
+ result.hasTimeout = false;
+ result.timeout_ = 0L;
+ return this;
+ }
+
+ // required .ActorType actorType = 4;
+ public boolean hasActorType() {
+ return result.hasActorType();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorType getActorType() {
+ return result.getActorType();
+ }
+ public Builder setActorType(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasActorType = true;
+ result.actorType_ = value;
+ return this;
+ }
+ public Builder clearActorType() {
+ result.hasActorType = false;
+ result.actorType_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorType.SCALA_ACTOR;
+ return this;
+ }
+
+ // optional .TypedActorInfoProtocol typedActorInfo = 5;
+ public boolean hasTypedActorInfo() {
+ return result.hasTypedActorInfo();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol getTypedActorInfo() {
+ return result.getTypedActorInfo();
+ }
+ public Builder setTypedActorInfo(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasTypedActorInfo = true;
+ result.typedActorInfo_ = value;
+ return this;
+ }
+ public Builder setTypedActorInfo(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.Builder builderForValue) {
+ result.hasTypedActorInfo = true;
+ result.typedActorInfo_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeTypedActorInfo(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol value) {
+ if (result.hasTypedActorInfo() &&
+ result.typedActorInfo_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.getDefaultInstance()) {
+ result.typedActorInfo_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.newBuilder(result.typedActorInfo_).mergeFrom(value).buildPartial();
+ } else {
+ result.typedActorInfo_ = value;
+ }
+ result.hasTypedActorInfo = true;
+ return this;
+ }
+ public Builder clearTypedActorInfo() {
+ result.hasTypedActorInfo = false;
+ result.typedActorInfo_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:ActorInfoProtocol)
+ }
+
+ static {
+ defaultInstance = new ActorInfoProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:ActorInfoProtocol)
+ }
+
+ public static final class TypedActorInfoProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use TypedActorInfoProtocol.newBuilder() to construct.
+ private TypedActorInfoProtocol() {
+ initFields();
+ }
+ private TypedActorInfoProtocol(boolean noInit) {}
+
+ private static final TypedActorInfoProtocol defaultInstance;
+ public static TypedActorInfoProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public TypedActorInfoProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_TypedActorInfoProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_TypedActorInfoProtocol_fieldAccessorTable;
+ }
+
+ // required string interface = 1;
+ public static final int INTERFACE_FIELD_NUMBER = 1;
+ private boolean hasInterface;
+ private java.lang.String interface_ = "";
+ public boolean hasInterface() { return hasInterface; }
+ public java.lang.String getInterface() { return interface_; }
+
+ // required string method = 2;
+ public static final int METHOD_FIELD_NUMBER = 2;
+ private boolean hasMethod;
+ private java.lang.String method_ = "";
+ public boolean hasMethod() { return hasMethod; }
+ public java.lang.String getMethod() { return method_; }
+
+ private void initFields() {
+ }
+ public final boolean isInitialized() {
+ if (!hasInterface) return false;
+ if (!hasMethod) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasInterface()) {
+ output.writeString(1, getInterface());
+ }
+ if (hasMethod()) {
+ output.writeString(2, getMethod());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasInterface()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(1, getInterface());
+ }
+ if (hasMethod()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(2, getMethod());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.getDefaultInstance()) return this;
+ if (other.hasInterface()) {
+ setInterface(other.getInterface());
+ }
+ if (other.hasMethod()) {
+ setMethod(other.getMethod());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ setInterface(input.readString());
+ break;
+ }
+ case 18: {
+ setMethod(input.readString());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required string interface = 1;
+ public boolean hasInterface() {
+ return result.hasInterface();
+ }
+ public java.lang.String getInterface() {
+ return result.getInterface();
+ }
+ public Builder setInterface(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasInterface = true;
+ result.interface_ = value;
+ return this;
+ }
+ public Builder clearInterface() {
+ result.hasInterface = false;
+ result.interface_ = getDefaultInstance().getInterface();
+ return this;
+ }
+
+ // required string method = 2;
+ public boolean hasMethod() {
+ return result.hasMethod();
+ }
+ public java.lang.String getMethod() {
+ return result.getMethod();
+ }
+ public Builder setMethod(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasMethod = true;
+ result.method_ = value;
+ return this;
+ }
+ public Builder clearMethod() {
+ result.hasMethod = false;
+ result.method_ = getDefaultInstance().getMethod();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:TypedActorInfoProtocol)
+ }
+
+ static {
+ defaultInstance = new TypedActorInfoProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:TypedActorInfoProtocol)
+ }
+
+ public static final class RemoteRequestProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use RemoteRequestProtocol.newBuilder() to construct.
+ private RemoteRequestProtocol() {
+ initFields();
+ }
+ private RemoteRequestProtocol(boolean noInit) {}
+
+ private static final RemoteRequestProtocol defaultInstance;
+ public static RemoteRequestProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public RemoteRequestProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_RemoteRequestProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_RemoteRequestProtocol_fieldAccessorTable;
+ }
+
+ // required uint64 id = 1;
+ public static final int ID_FIELD_NUMBER = 1;
+ private boolean hasId;
+ private long id_ = 0L;
+ public boolean hasId() { return hasId; }
+ public long getId() { return id_; }
+
+ // required .MessageProtocol message = 2;
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ private boolean hasMessage;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol message_;
+ public boolean hasMessage() { return hasMessage; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol getMessage() { return message_; }
+
+ // required .ActorInfoProtocol actorInfo = 3;
+ public static final int ACTORINFO_FIELD_NUMBER = 3;
+ private boolean hasActorInfo;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol actorInfo_;
+ public boolean hasActorInfo() { return hasActorInfo; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol getActorInfo() { return actorInfo_; }
+
+ // required bool isOneWay = 4;
+ public static final int ISONEWAY_FIELD_NUMBER = 4;
+ private boolean hasIsOneWay;
+ private boolean isOneWay_ = false;
+ public boolean hasIsOneWay() { return hasIsOneWay; }
+ public boolean getIsOneWay() { return isOneWay_; }
+
+ // optional string supervisorUuid = 5;
+ public static final int SUPERVISORUUID_FIELD_NUMBER = 5;
+ private boolean hasSupervisorUuid;
+ private java.lang.String supervisorUuid_ = "";
+ public boolean hasSupervisorUuid() { return hasSupervisorUuid; }
+ public java.lang.String getSupervisorUuid() { return supervisorUuid_; }
+
+ // optional .RemoteActorRefProtocol sender = 6;
+ public static final int SENDER_FIELD_NUMBER = 6;
+ private boolean hasSender;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol sender_;
+ public boolean hasSender() { return hasSender; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol getSender() { return sender_; }
+
+ private void initFields() {
+ message_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDefaultInstance();
+ actorInfo_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.getDefaultInstance();
+ sender_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDefaultInstance();
+ }
+ public final boolean isInitialized() {
+ if (!hasId) return false;
+ if (!hasMessage) return false;
+ if (!hasActorInfo) return false;
+ if (!hasIsOneWay) return false;
+ if (!getMessage().isInitialized()) return false;
+ if (!getActorInfo().isInitialized()) return false;
+ if (hasSender()) {
+ if (!getSender().isInitialized()) return false;
+ }
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasId()) {
+ output.writeUInt64(1, getId());
+ }
+ if (hasMessage()) {
+ output.writeMessage(2, getMessage());
+ }
+ if (hasActorInfo()) {
+ output.writeMessage(3, getActorInfo());
+ }
+ if (hasIsOneWay()) {
+ output.writeBool(4, getIsOneWay());
+ }
+ if (hasSupervisorUuid()) {
+ output.writeString(5, getSupervisorUuid());
+ }
+ if (hasSender()) {
+ output.writeMessage(6, getSender());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasId()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, getId());
+ }
+ if (hasMessage()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getMessage());
+ }
+ if (hasActorInfo()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getActorInfo());
+ }
+ if (hasIsOneWay()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(4, getIsOneWay());
+ }
+ if (hasSupervisorUuid()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(5, getSupervisorUuid());
+ }
+ if (hasSender()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSender());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.getDefaultInstance()) return this;
+ if (other.hasId()) {
+ setId(other.getId());
+ }
+ if (other.hasMessage()) {
+ mergeMessage(other.getMessage());
+ }
+ if (other.hasActorInfo()) {
+ mergeActorInfo(other.getActorInfo());
+ }
+ if (other.hasIsOneWay()) {
+ setIsOneWay(other.getIsOneWay());
+ }
+ if (other.hasSupervisorUuid()) {
+ setSupervisorUuid(other.getSupervisorUuid());
+ }
+ if (other.hasSender()) {
+ mergeSender(other.getSender());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 8: {
+ setId(input.readUInt64());
+ break;
+ }
+ case 18: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.newBuilder();
+ if (hasMessage()) {
+ subBuilder.mergeFrom(getMessage());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setMessage(subBuilder.buildPartial());
+ break;
+ }
+ case 26: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.newBuilder();
+ if (hasActorInfo()) {
+ subBuilder.mergeFrom(getActorInfo());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setActorInfo(subBuilder.buildPartial());
+ break;
+ }
+ case 32: {
+ setIsOneWay(input.readBool());
+ break;
+ }
+ case 42: {
+ setSupervisorUuid(input.readString());
+ break;
+ }
+ case 50: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.newBuilder();
+ if (hasSender()) {
+ subBuilder.mergeFrom(getSender());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setSender(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required uint64 id = 1;
+ public boolean hasId() {
+ return result.hasId();
+ }
+ public long getId() {
+ return result.getId();
+ }
+ public Builder setId(long value) {
+ result.hasId = true;
+ result.id_ = value;
+ return this;
+ }
+ public Builder clearId() {
+ result.hasId = false;
+ result.id_ = 0L;
+ return this;
+ }
+
+ // required .MessageProtocol message = 2;
+ public boolean hasMessage() {
+ return result.hasMessage();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol getMessage() {
+ return result.getMessage();
+ }
+ public Builder setMessage(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasMessage = true;
+ result.message_ = value;
+ return this;
+ }
+ public Builder setMessage(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.Builder builderForValue) {
+ result.hasMessage = true;
+ result.message_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeMessage(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol value) {
+ if (result.hasMessage() &&
+ result.message_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDefaultInstance()) {
+ result.message_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.newBuilder(result.message_).mergeFrom(value).buildPartial();
+ } else {
+ result.message_ = value;
+ }
+ result.hasMessage = true;
+ return this;
+ }
+ public Builder clearMessage() {
+ result.hasMessage = false;
+ result.message_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // required .ActorInfoProtocol actorInfo = 3;
+ public boolean hasActorInfo() {
+ return result.hasActorInfo();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol getActorInfo() {
+ return result.getActorInfo();
+ }
+ public Builder setActorInfo(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasActorInfo = true;
+ result.actorInfo_ = value;
+ return this;
+ }
+ public Builder setActorInfo(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.Builder builderForValue) {
+ result.hasActorInfo = true;
+ result.actorInfo_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeActorInfo(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol value) {
+ if (result.hasActorInfo() &&
+ result.actorInfo_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.getDefaultInstance()) {
+ result.actorInfo_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.newBuilder(result.actorInfo_).mergeFrom(value).buildPartial();
+ } else {
+ result.actorInfo_ = value;
+ }
+ result.hasActorInfo = true;
+ return this;
+ }
+ public Builder clearActorInfo() {
+ result.hasActorInfo = false;
+ result.actorInfo_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // required bool isOneWay = 4;
+ public boolean hasIsOneWay() {
+ return result.hasIsOneWay();
+ }
+ public boolean getIsOneWay() {
+ return result.getIsOneWay();
+ }
+ public Builder setIsOneWay(boolean value) {
+ result.hasIsOneWay = true;
+ result.isOneWay_ = value;
+ return this;
+ }
+ public Builder clearIsOneWay() {
+ result.hasIsOneWay = false;
+ result.isOneWay_ = false;
+ return this;
+ }
+
+ // optional string supervisorUuid = 5;
+ public boolean hasSupervisorUuid() {
+ return result.hasSupervisorUuid();
+ }
+ public java.lang.String getSupervisorUuid() {
+ return result.getSupervisorUuid();
+ }
+ public Builder setSupervisorUuid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasSupervisorUuid = true;
+ result.supervisorUuid_ = value;
+ return this;
+ }
+ public Builder clearSupervisorUuid() {
+ result.hasSupervisorUuid = false;
+ result.supervisorUuid_ = getDefaultInstance().getSupervisorUuid();
+ return this;
+ }
+
+ // optional .RemoteActorRefProtocol sender = 6;
+ public boolean hasSender() {
+ return result.hasSender();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol getSender() {
+ return result.getSender();
+ }
+ public Builder setSender(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasSender = true;
+ result.sender_ = value;
+ return this;
+ }
+ public Builder setSender(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.Builder builderForValue) {
+ result.hasSender = true;
+ result.sender_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeSender(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol value) {
+ if (result.hasSender() &&
+ result.sender_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDefaultInstance()) {
+ result.sender_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.newBuilder(result.sender_).mergeFrom(value).buildPartial();
+ } else {
+ result.sender_ = value;
+ }
+ result.hasSender = true;
+ return this;
+ }
+ public Builder clearSender() {
+ result.hasSender = false;
+ result.sender_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:RemoteRequestProtocol)
+ }
+
+ static {
+ defaultInstance = new RemoteRequestProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:RemoteRequestProtocol)
+ }
+
+ public static final class RemoteReplyProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use RemoteReplyProtocol.newBuilder() to construct.
+ private RemoteReplyProtocol() {
+ initFields();
+ }
+ private RemoteReplyProtocol(boolean noInit) {}
+
+ private static final RemoteReplyProtocol defaultInstance;
+ public static RemoteReplyProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public RemoteReplyProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_RemoteReplyProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_RemoteReplyProtocol_fieldAccessorTable;
+ }
+
+ // required uint64 id = 1;
+ public static final int ID_FIELD_NUMBER = 1;
+ private boolean hasId;
+ private long id_ = 0L;
+ public boolean hasId() { return hasId; }
+ public long getId() { return id_; }
+
+ // optional .MessageProtocol message = 2;
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ private boolean hasMessage;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol message_;
+ public boolean hasMessage() { return hasMessage; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol getMessage() { return message_; }
+
+ // optional .ExceptionProtocol exception = 3;
+ public static final int EXCEPTION_FIELD_NUMBER = 3;
+ private boolean hasException;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol exception_;
+ public boolean hasException() { return hasException; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol getException() { return exception_; }
+
+ // optional string supervisorUuid = 4;
+ public static final int SUPERVISORUUID_FIELD_NUMBER = 4;
+ private boolean hasSupervisorUuid;
+ private java.lang.String supervisorUuid_ = "";
+ public boolean hasSupervisorUuid() { return hasSupervisorUuid; }
+ public java.lang.String getSupervisorUuid() { return supervisorUuid_; }
+
+ // required bool isActor = 5;
+ public static final int ISACTOR_FIELD_NUMBER = 5;
+ private boolean hasIsActor;
+ private boolean isActor_ = false;
+ public boolean hasIsActor() { return hasIsActor; }
+ public boolean getIsActor() { return isActor_; }
+
+ // required bool isSuccessful = 6;
+ public static final int ISSUCCESSFUL_FIELD_NUMBER = 6;
+ private boolean hasIsSuccessful;
+ private boolean isSuccessful_ = false;
+ public boolean hasIsSuccessful() { return hasIsSuccessful; }
+ public boolean getIsSuccessful() { return isSuccessful_; }
+
+ private void initFields() {
+ message_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDefaultInstance();
+ exception_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.getDefaultInstance();
+ }
+ public final boolean isInitialized() {
+ if (!hasId) return false;
+ if (!hasIsActor) return false;
+ if (!hasIsSuccessful) return false;
+ if (hasMessage()) {
+ if (!getMessage().isInitialized()) return false;
+ }
+ if (hasException()) {
+ if (!getException().isInitialized()) return false;
+ }
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasId()) {
+ output.writeUInt64(1, getId());
+ }
+ if (hasMessage()) {
+ output.writeMessage(2, getMessage());
+ }
+ if (hasException()) {
+ output.writeMessage(3, getException());
+ }
+ if (hasSupervisorUuid()) {
+ output.writeString(4, getSupervisorUuid());
+ }
+ if (hasIsActor()) {
+ output.writeBool(5, getIsActor());
+ }
+ if (hasIsSuccessful()) {
+ output.writeBool(6, getIsSuccessful());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasId()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, getId());
+ }
+ if (hasMessage()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getMessage());
+ }
+ if (hasException()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getException());
+ }
+ if (hasSupervisorUuid()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(4, getSupervisorUuid());
+ }
+ if (hasIsActor()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, getIsActor());
+ }
+ if (hasIsSuccessful()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, getIsSuccessful());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol.getDefaultInstance()) return this;
+ if (other.hasId()) {
+ setId(other.getId());
+ }
+ if (other.hasMessage()) {
+ mergeMessage(other.getMessage());
+ }
+ if (other.hasException()) {
+ mergeException(other.getException());
+ }
+ if (other.hasSupervisorUuid()) {
+ setSupervisorUuid(other.getSupervisorUuid());
+ }
+ if (other.hasIsActor()) {
+ setIsActor(other.getIsActor());
+ }
+ if (other.hasIsSuccessful()) {
+ setIsSuccessful(other.getIsSuccessful());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 8: {
+ setId(input.readUInt64());
+ break;
+ }
+ case 18: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.newBuilder();
+ if (hasMessage()) {
+ subBuilder.mergeFrom(getMessage());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setMessage(subBuilder.buildPartial());
+ break;
+ }
+ case 26: {
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.Builder subBuilder = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.newBuilder();
+ if (hasException()) {
+ subBuilder.mergeFrom(getException());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setException(subBuilder.buildPartial());
+ break;
+ }
+ case 34: {
+ setSupervisorUuid(input.readString());
+ break;
+ }
+ case 40: {
+ setIsActor(input.readBool());
+ break;
+ }
+ case 48: {
+ setIsSuccessful(input.readBool());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required uint64 id = 1;
+ public boolean hasId() {
+ return result.hasId();
+ }
+ public long getId() {
+ return result.getId();
+ }
+ public Builder setId(long value) {
+ result.hasId = true;
+ result.id_ = value;
+ return this;
+ }
+ public Builder clearId() {
+ result.hasId = false;
+ result.id_ = 0L;
+ return this;
+ }
+
+ // optional .MessageProtocol message = 2;
+ public boolean hasMessage() {
+ return result.hasMessage();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol getMessage() {
+ return result.getMessage();
+ }
+ public Builder setMessage(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasMessage = true;
+ result.message_ = value;
+ return this;
+ }
+ public Builder setMessage(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.Builder builderForValue) {
+ result.hasMessage = true;
+ result.message_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeMessage(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol value) {
+ if (result.hasMessage() &&
+ result.message_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDefaultInstance()) {
+ result.message_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.newBuilder(result.message_).mergeFrom(value).buildPartial();
+ } else {
+ result.message_ = value;
+ }
+ result.hasMessage = true;
+ return this;
+ }
+ public Builder clearMessage() {
+ result.hasMessage = false;
+ result.message_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // optional .ExceptionProtocol exception = 3;
+ public boolean hasException() {
+ return result.hasException();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol getException() {
+ return result.getException();
+ }
+ public Builder setException(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasException = true;
+ result.exception_ = value;
+ return this;
+ }
+ public Builder setException(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.Builder builderForValue) {
+ result.hasException = true;
+ result.exception_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeException(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol value) {
+ if (result.hasException() &&
+ result.exception_ != se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.getDefaultInstance()) {
+ result.exception_ =
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.newBuilder(result.exception_).mergeFrom(value).buildPartial();
+ } else {
+ result.exception_ = value;
+ }
+ result.hasException = true;
+ return this;
+ }
+ public Builder clearException() {
+ result.hasException = false;
+ result.exception_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.getDefaultInstance();
+ return this;
+ }
+
+ // optional string supervisorUuid = 4;
+ public boolean hasSupervisorUuid() {
+ return result.hasSupervisorUuid();
+ }
+ public java.lang.String getSupervisorUuid() {
+ return result.getSupervisorUuid();
+ }
+ public Builder setSupervisorUuid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasSupervisorUuid = true;
+ result.supervisorUuid_ = value;
+ return this;
+ }
+ public Builder clearSupervisorUuid() {
+ result.hasSupervisorUuid = false;
+ result.supervisorUuid_ = getDefaultInstance().getSupervisorUuid();
+ return this;
+ }
+
+ // required bool isActor = 5;
+ public boolean hasIsActor() {
+ return result.hasIsActor();
+ }
+ public boolean getIsActor() {
+ return result.getIsActor();
+ }
+ public Builder setIsActor(boolean value) {
+ result.hasIsActor = true;
+ result.isActor_ = value;
+ return this;
+ }
+ public Builder clearIsActor() {
+ result.hasIsActor = false;
+ result.isActor_ = false;
+ return this;
+ }
+
+ // required bool isSuccessful = 6;
+ public boolean hasIsSuccessful() {
+ return result.hasIsSuccessful();
+ }
+ public boolean getIsSuccessful() {
+ return result.getIsSuccessful();
+ }
+ public Builder setIsSuccessful(boolean value) {
+ result.hasIsSuccessful = true;
+ result.isSuccessful_ = value;
+ return this;
+ }
+ public Builder clearIsSuccessful() {
+ result.hasIsSuccessful = false;
+ result.isSuccessful_ = false;
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:RemoteReplyProtocol)
+ }
+
+ static {
+ defaultInstance = new RemoteReplyProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:RemoteReplyProtocol)
+ }
+
+ public static final class LifeCycleProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use LifeCycleProtocol.newBuilder() to construct.
+ private LifeCycleProtocol() {
+ initFields();
+ }
+ private LifeCycleProtocol(boolean noInit) {}
+
+ private static final LifeCycleProtocol defaultInstance;
+ public static LifeCycleProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public LifeCycleProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_LifeCycleProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_LifeCycleProtocol_fieldAccessorTable;
+ }
+
+ // required .LifeCycleType lifeCycle = 1;
+ public static final int LIFECYCLE_FIELD_NUMBER = 1;
+ private boolean hasLifeCycle;
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleType lifeCycle_;
+ public boolean hasLifeCycle() { return hasLifeCycle; }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleType getLifeCycle() { return lifeCycle_; }
+
+ // optional string preRestart = 2;
+ public static final int PRERESTART_FIELD_NUMBER = 2;
+ private boolean hasPreRestart;
+ private java.lang.String preRestart_ = "";
+ public boolean hasPreRestart() { return hasPreRestart; }
+ public java.lang.String getPreRestart() { return preRestart_; }
+
+ // optional string postRestart = 3;
+ public static final int POSTRESTART_FIELD_NUMBER = 3;
+ private boolean hasPostRestart;
+ private java.lang.String postRestart_ = "";
+ public boolean hasPostRestart() { return hasPostRestart; }
+ public java.lang.String getPostRestart() { return postRestart_; }
+
+ // optional string init = 4;
+ public static final int INIT_FIELD_NUMBER = 4;
+ private boolean hasInit;
+ private java.lang.String init_ = "";
+ public boolean hasInit() { return hasInit; }
+ public java.lang.String getInit() { return init_; }
+
+ // optional string shutdown = 5;
+ public static final int SHUTDOWN_FIELD_NUMBER = 5;
+ private boolean hasShutdown;
+ private java.lang.String shutdown_ = "";
+ public boolean hasShutdown() { return hasShutdown; }
+ public java.lang.String getShutdown() { return shutdown_; }
+
+ private void initFields() {
+ lifeCycle_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleType.PERMANENT;
+ }
+ public final boolean isInitialized() {
+ if (!hasLifeCycle) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasLifeCycle()) {
+ output.writeEnum(1, getLifeCycle().getNumber());
+ }
+ if (hasPreRestart()) {
+ output.writeString(2, getPreRestart());
+ }
+ if (hasPostRestart()) {
+ output.writeString(3, getPostRestart());
+ }
+ if (hasInit()) {
+ output.writeString(4, getInit());
+ }
+ if (hasShutdown()) {
+ output.writeString(5, getShutdown());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasLifeCycle()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, getLifeCycle().getNumber());
+ }
+ if (hasPreRestart()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(2, getPreRestart());
+ }
+ if (hasPostRestart()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(3, getPostRestart());
+ }
+ if (hasInit()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(4, getInit());
+ }
+ if (hasShutdown()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(5, getShutdown());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.getDefaultInstance()) return this;
+ if (other.hasLifeCycle()) {
+ setLifeCycle(other.getLifeCycle());
+ }
+ if (other.hasPreRestart()) {
+ setPreRestart(other.getPreRestart());
+ }
+ if (other.hasPostRestart()) {
+ setPostRestart(other.getPostRestart());
+ }
+ if (other.hasInit()) {
+ setInit(other.getInit());
+ }
+ if (other.hasShutdown()) {
+ setShutdown(other.getShutdown());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 8: {
+ int rawValue = input.readEnum();
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleType value = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(1, rawValue);
+ } else {
+ setLifeCycle(value);
+ }
+ break;
+ }
+ case 18: {
+ setPreRestart(input.readString());
+ break;
+ }
+ case 26: {
+ setPostRestart(input.readString());
+ break;
+ }
+ case 34: {
+ setInit(input.readString());
+ break;
+ }
+ case 42: {
+ setShutdown(input.readString());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required .LifeCycleType lifeCycle = 1;
+ public boolean hasLifeCycle() {
+ return result.hasLifeCycle();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleType getLifeCycle() {
+ return result.getLifeCycle();
+ }
+ public Builder setLifeCycle(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasLifeCycle = true;
+ result.lifeCycle_ = value;
+ return this;
+ }
+ public Builder clearLifeCycle() {
+ result.hasLifeCycle = false;
+ result.lifeCycle_ = se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleType.PERMANENT;
+ return this;
+ }
+
+ // optional string preRestart = 2;
+ public boolean hasPreRestart() {
+ return result.hasPreRestart();
+ }
+ public java.lang.String getPreRestart() {
+ return result.getPreRestart();
+ }
+ public Builder setPreRestart(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasPreRestart = true;
+ result.preRestart_ = value;
+ return this;
+ }
+ public Builder clearPreRestart() {
+ result.hasPreRestart = false;
+ result.preRestart_ = getDefaultInstance().getPreRestart();
+ return this;
+ }
+
+ // optional string postRestart = 3;
+ public boolean hasPostRestart() {
+ return result.hasPostRestart();
+ }
+ public java.lang.String getPostRestart() {
+ return result.getPostRestart();
+ }
+ public Builder setPostRestart(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasPostRestart = true;
+ result.postRestart_ = value;
+ return this;
+ }
+ public Builder clearPostRestart() {
+ result.hasPostRestart = false;
+ result.postRestart_ = getDefaultInstance().getPostRestart();
+ return this;
+ }
+
+ // optional string init = 4;
+ public boolean hasInit() {
+ return result.hasInit();
+ }
+ public java.lang.String getInit() {
+ return result.getInit();
+ }
+ public Builder setInit(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasInit = true;
+ result.init_ = value;
+ return this;
+ }
+ public Builder clearInit() {
+ result.hasInit = false;
+ result.init_ = getDefaultInstance().getInit();
+ return this;
+ }
+
+ // optional string shutdown = 5;
+ public boolean hasShutdown() {
+ return result.hasShutdown();
+ }
+ public java.lang.String getShutdown() {
+ return result.getShutdown();
+ }
+ public Builder setShutdown(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasShutdown = true;
+ result.shutdown_ = value;
+ return this;
+ }
+ public Builder clearShutdown() {
+ result.hasShutdown = false;
+ result.shutdown_ = getDefaultInstance().getShutdown();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:LifeCycleProtocol)
+ }
+
+ static {
+ defaultInstance = new LifeCycleProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:LifeCycleProtocol)
+ }
+
+ public static final class AddressProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use AddressProtocol.newBuilder() to construct.
+ private AddressProtocol() {
+ initFields();
+ }
+ private AddressProtocol(boolean noInit) {}
+
+ private static final AddressProtocol defaultInstance;
+ public static AddressProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public AddressProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_AddressProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_AddressProtocol_fieldAccessorTable;
+ }
+
+ // required string hostname = 1;
+ public static final int HOSTNAME_FIELD_NUMBER = 1;
+ private boolean hasHostname;
+ private java.lang.String hostname_ = "";
+ public boolean hasHostname() { return hasHostname; }
+ public java.lang.String getHostname() { return hostname_; }
+
+ // required uint32 port = 2;
+ public static final int PORT_FIELD_NUMBER = 2;
+ private boolean hasPort;
+ private int port_ = 0;
+ public boolean hasPort() { return hasPort; }
+ public int getPort() { return port_; }
+
+ private void initFields() {
+ }
+ public final boolean isInitialized() {
+ if (!hasHostname) return false;
+ if (!hasPort) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasHostname()) {
+ output.writeString(1, getHostname());
+ }
+ if (hasPort()) {
+ output.writeUInt32(2, getPort());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasHostname()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(1, getHostname());
+ }
+ if (hasPort()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, getPort());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.getDefaultInstance()) return this;
+ if (other.hasHostname()) {
+ setHostname(other.getHostname());
+ }
+ if (other.hasPort()) {
+ setPort(other.getPort());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ setHostname(input.readString());
+ break;
+ }
+ case 16: {
+ setPort(input.readUInt32());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required string hostname = 1;
+ public boolean hasHostname() {
+ return result.hasHostname();
+ }
+ public java.lang.String getHostname() {
+ return result.getHostname();
+ }
+ public Builder setHostname(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasHostname = true;
+ result.hostname_ = value;
+ return this;
+ }
+ public Builder clearHostname() {
+ result.hasHostname = false;
+ result.hostname_ = getDefaultInstance().getHostname();
+ return this;
+ }
+
+ // required uint32 port = 2;
+ public boolean hasPort() {
+ return result.hasPort();
+ }
+ public int getPort() {
+ return result.getPort();
+ }
+ public Builder setPort(int value) {
+ result.hasPort = true;
+ result.port_ = value;
+ return this;
+ }
+ public Builder clearPort() {
+ result.hasPort = false;
+ result.port_ = 0;
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:AddressProtocol)
+ }
+
+ static {
+ defaultInstance = new AddressProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:AddressProtocol)
+ }
+
+ public static final class ExceptionProtocol extends
+ com.google.protobuf.GeneratedMessage {
+ // Use ExceptionProtocol.newBuilder() to construct.
+ private ExceptionProtocol() {
+ initFields();
+ }
+ private ExceptionProtocol(boolean noInit) {}
+
+ private static final ExceptionProtocol defaultInstance;
+ public static ExceptionProtocol getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public ExceptionProtocol getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_ExceptionProtocol_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internal_static_ExceptionProtocol_fieldAccessorTable;
+ }
+
+ // required string classname = 1;
+ public static final int CLASSNAME_FIELD_NUMBER = 1;
+ private boolean hasClassname;
+ private java.lang.String classname_ = "";
+ public boolean hasClassname() { return hasClassname; }
+ public java.lang.String getClassname() { return classname_; }
+
+ // required string message = 2;
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ private boolean hasMessage;
+ private java.lang.String message_ = "";
+ public boolean hasMessage() { return hasMessage; }
+ public java.lang.String getMessage() { return message_; }
+
+ private void initFields() {
+ }
+ public final boolean isInitialized() {
+ if (!hasClassname) return false;
+ if (!hasMessage) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasClassname()) {
+ output.writeString(1, getClassname());
+ }
+ if (hasMessage()) {
+ output.writeString(2, getMessage());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasClassname()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(1, getClassname());
+ }
+ if (hasMessage()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(2, getMessage());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol result;
+
+ // Construct using se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol) {
+ return mergeFrom((se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol other) {
+ if (other == se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.getDefaultInstance()) return this;
+ if (other.hasClassname()) {
+ setClassname(other.getClassname());
+ }
+ if (other.hasMessage()) {
+ setMessage(other.getMessage());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ setClassname(input.readString());
+ break;
+ }
+ case 18: {
+ setMessage(input.readString());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required string classname = 1;
+ public boolean hasClassname() {
+ return result.hasClassname();
+ }
+ public java.lang.String getClassname() {
+ return result.getClassname();
+ }
+ public Builder setClassname(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasClassname = true;
+ result.classname_ = value;
+ return this;
+ }
+ public Builder clearClassname() {
+ result.hasClassname = false;
+ result.classname_ = getDefaultInstance().getClassname();
+ return this;
+ }
+
+ // required string message = 2;
+ public boolean hasMessage() {
+ return result.hasMessage();
+ }
+ public java.lang.String getMessage() {
+ return result.getMessage();
+ }
+ public Builder setMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasMessage = true;
+ result.message_ = value;
+ return this;
+ }
+ public Builder clearMessage() {
+ result.hasMessage = false;
+ result.message_ = getDefaultInstance().getMessage();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:ExceptionProtocol)
+ }
+
+ static {
+ defaultInstance = new ExceptionProtocol(true);
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:ExceptionProtocol)
+ }
+
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_RemoteActorRefProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_RemoteActorRefProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_SerializedActorRefProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_SerializedActorRefProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_MessageProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_MessageProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_ActorInfoProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_ActorInfoProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_TypedActorInfoProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_TypedActorInfoProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_RemoteRequestProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_RemoteRequestProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_RemoteReplyProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_RemoteReplyProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_LifeCycleProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_LifeCycleProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_AddressProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_AddressProtocol_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_ExceptionProtocol_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_ExceptionProtocol_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\024RemoteProtocol.proto\"v\n\026RemoteActorRef" +
+ "Protocol\022\014\n\004uuid\030\001 \002(\t\022\026\n\016actorClassname" +
+ "\030\002 \002(\t\022%\n\013homeAddress\030\003 \002(\0132\020.AddressPro" +
+ "tocol\022\017\n\007timeout\030\004 \001(\004\"\200\003\n\032SerializedAct" +
+ "orRefProtocol\022\014\n\004uuid\030\001 \002(\t\022\n\n\002id\030\002 \002(\t\022" +
+ "\026\n\016actorClassname\030\003 \002(\t\022)\n\017originalAddre" +
+ "ss\030\004 \002(\0132\020.AddressProtocol\022\025\n\ractorInsta" +
+ "nce\030\005 \001(\014\022\033\n\023serializerClassname\030\006 \001(\t\022\024" +
+ "\n\014isTransactor\030\007 \001(\010\022\017\n\007timeout\030\010 \001(\004\022\026\n" +
+ "\016receiveTimeout\030\t \001(\004\022%\n\tlifeCycle\030\n \001(\013",
+ "2\022.LifeCycleProtocol\022+\n\nsupervisor\030\013 \001(\013" +
+ "2\027.RemoteActorRefProtocol\022\024\n\014hotswapStac" +
+ "k\030\014 \001(\014\022(\n\010messages\030\r \003(\0132\026.RemoteReques" +
+ "tProtocol\"r\n\017MessageProtocol\0225\n\023serializ" +
+ "ationScheme\030\001 \002(\0162\030.SerializationSchemeT" +
+ "ype\022\017\n\007message\030\002 \002(\014\022\027\n\017messageManifest\030" +
+ "\003 \001(\014\"\222\001\n\021ActorInfoProtocol\022\014\n\004uuid\030\001 \002(" +
+ "\t\022\016\n\006target\030\002 \002(\t\022\017\n\007timeout\030\003 \002(\004\022\035\n\tac" +
+ "torType\030\004 \002(\0162\n.ActorType\022/\n\016typedActorI" +
+ "nfo\030\005 \001(\0132\027.TypedActorInfoProtocol\";\n\026Ty",
+ "pedActorInfoProtocol\022\021\n\tinterface\030\001 \002(\t\022" +
+ "\016\n\006method\030\002 \002(\t\"\300\001\n\025RemoteRequestProtoco" +
+ "l\022\n\n\002id\030\001 \002(\004\022!\n\007message\030\002 \002(\0132\020.Message" +
+ "Protocol\022%\n\tactorInfo\030\003 \002(\0132\022.ActorInfoP" +
+ "rotocol\022\020\n\010isOneWay\030\004 \002(\010\022\026\n\016supervisorU" +
+ "uid\030\005 \001(\t\022\'\n\006sender\030\006 \001(\0132\027.RemoteActorR" +
+ "efProtocol\"\252\001\n\023RemoteReplyProtocol\022\n\n\002id" +
+ "\030\001 \002(\004\022!\n\007message\030\002 \001(\0132\020.MessageProtoco" +
+ "l\022%\n\texception\030\003 \001(\0132\022.ExceptionProtocol" +
+ "\022\026\n\016supervisorUuid\030\004 \001(\t\022\017\n\007isActor\030\005 \002(",
+ "\010\022\024\n\014isSuccessful\030\006 \002(\010\"\177\n\021LifeCycleProt" +
+ "ocol\022!\n\tlifeCycle\030\001 \002(\0162\016.LifeCycleType\022" +
+ "\022\n\npreRestart\030\002 \001(\t\022\023\n\013postRestart\030\003 \001(\t" +
+ "\022\014\n\004init\030\004 \001(\t\022\020\n\010shutdown\030\005 \001(\t\"1\n\017Addr" +
+ "essProtocol\022\020\n\010hostname\030\001 \002(\t\022\014\n\004port\030\002 " +
+ "\002(\r\"7\n\021ExceptionProtocol\022\021\n\tclassname\030\001 " +
+ "\002(\t\022\017\n\007message\030\002 \002(\t*=\n\tActorType\022\017\n\013SCA" +
+ "LA_ACTOR\020\001\022\016\n\nJAVA_ACTOR\020\002\022\017\n\013TYPED_ACTO" +
+ "R\020\003*]\n\027SerializationSchemeType\022\010\n\004JAVA\020\001" +
+ "\022\013\n\007SBINARY\020\002\022\016\n\nSCALA_JSON\020\003\022\r\n\tJAVA_JS",
+ "ON\020\004\022\014\n\010PROTOBUF\020\005*-\n\rLifeCycleType\022\r\n\tP" +
+ "ERMANENT\020\001\022\r\n\tTEMPORARY\020\002B-\n)se.scalable" +
+ "solutions.akka.remote.protocolH\001"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ internal_static_RemoteActorRefProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_RemoteActorRefProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_RemoteActorRefProtocol_descriptor,
+ new java.lang.String[] { "Uuid", "ActorClassname", "HomeAddress", "Timeout", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteActorRefProtocol.Builder.class);
+ internal_static_SerializedActorRefProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_SerializedActorRefProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_SerializedActorRefProtocol_descriptor,
+ new java.lang.String[] { "Uuid", "Id", "ActorClassname", "OriginalAddress", "ActorInstance", "SerializerClassname", "IsTransactor", "Timeout", "ReceiveTimeout", "LifeCycle", "Supervisor", "HotswapStack", "Messages", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.SerializedActorRefProtocol.Builder.class);
+ internal_static_MessageProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_MessageProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_MessageProtocol_descriptor,
+ new java.lang.String[] { "SerializationScheme", "Message", "MessageManifest", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.MessageProtocol.Builder.class);
+ internal_static_ActorInfoProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_ActorInfoProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_ActorInfoProtocol_descriptor,
+ new java.lang.String[] { "Uuid", "Target", "Timeout", "ActorType", "TypedActorInfo", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ActorInfoProtocol.Builder.class);
+ internal_static_TypedActorInfoProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_TypedActorInfoProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_TypedActorInfoProtocol_descriptor,
+ new java.lang.String[] { "Interface", "Method", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.TypedActorInfoProtocol.Builder.class);
+ internal_static_RemoteRequestProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_RemoteRequestProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_RemoteRequestProtocol_descriptor,
+ new java.lang.String[] { "Id", "Message", "ActorInfo", "IsOneWay", "SupervisorUuid", "Sender", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteRequestProtocol.Builder.class);
+ internal_static_RemoteReplyProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_RemoteReplyProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_RemoteReplyProtocol_descriptor,
+ new java.lang.String[] { "Id", "Message", "Exception", "SupervisorUuid", "IsActor", "IsSuccessful", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.RemoteReplyProtocol.Builder.class);
+ internal_static_LifeCycleProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_LifeCycleProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_LifeCycleProtocol_descriptor,
+ new java.lang.String[] { "LifeCycle", "PreRestart", "PostRestart", "Init", "Shutdown", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.LifeCycleProtocol.Builder.class);
+ internal_static_AddressProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_AddressProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_AddressProtocol_descriptor,
+ new java.lang.String[] { "Hostname", "Port", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.AddressProtocol.Builder.class);
+ internal_static_ExceptionProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_ExceptionProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_ExceptionProtocol_descriptor,
+ new java.lang.String[] { "Classname", "Message", },
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.class,
+ se.scalablesolutions.akka.remote.protocol.RemoteProtocol.ExceptionProtocol.Builder.class);
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ }
+
+ public static void internalForceInit() {}
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/akka-core/src/main/scala/actor/TypedActor.scala b/akka-typed-actors/src/main/scala/actor/TypedActor.scala
similarity index 98%
rename from akka-core/src/main/scala/actor/TypedActor.scala
rename to akka-typed-actors/src/main/scala/actor/TypedActor.scala
index 77473fe4d1..c3d2444e55 100644
--- a/akka-core/src/main/scala/actor/TypedActor.scala
+++ b/akka-typed-actors/src/main/scala/actor/TypedActor.scala
@@ -109,7 +109,7 @@ import scala.reflect.BeanProperty
*
* @author Jonas Bonér
*/
-abstract class TypedActor extends Actor {
+abstract class TypedActor extends Actor with Proxyable {
val DELEGATE_FIELD_NAME = "DELEGATE_0".intern
@volatile private[actor] var proxy: AnyRef = _
@@ -192,7 +192,7 @@ abstract class TypedActor extends Actor {
/**
* Rewrite target instance in AspectWerkz Proxy.
*/
- private[actor] def swapInstanceInProxy(newInstance: Actor) = proxyDelegate.set(proxy, newInstance)
+ private[actor] def swapProxiedActor(newInstance: Actor) = proxyDelegate.set(proxy, newInstance)
private[akka] def initialize(typedActorProxy: AnyRef) = {
proxy = typedActorProxy
@@ -537,6 +537,12 @@ object TypedActor extends Logging {
private[akka] def supervise(restartStrategy: RestartStrategy, components: List[Supervise]): Supervisor =
Supervisor(SupervisorConfig(restartStrategy, components))
+
+ private[akka] def isJoinPointAndOneWay(message: AnyRef): Boolean = if (isJoinPoint(message))
+ isOneWay(message.asInstanceOf[JoinPoint].getRtti.asInstanceOf[MethodRtti])
+ else false
+
+ private[akka] def isJoinPoint(message: AnyRef): Boolean = message.isInstanceOf[JoinPoint])
}
/**
diff --git a/akka-core/src/main/scala/config/TypedActorConfigurator.scala b/akka-typed-actors/src/main/scala/config/TypedActorConfigurator.scala
similarity index 100%
rename from akka-core/src/main/scala/config/TypedActorConfigurator.scala
rename to akka-typed-actors/src/main/scala/config/TypedActorConfigurator.scala
diff --git a/akka-core/src/main/scala/config/TypedActorGuiceConfigurator.scala b/akka-typed-actors/src/main/scala/config/TypedActorGuiceConfigurator.scala
similarity index 100%
rename from akka-core/src/main/scala/config/TypedActorGuiceConfigurator.scala
rename to akka-typed-actors/src/main/scala/config/TypedActorGuiceConfigurator.scala
diff --git a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Bar.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Bar.java
similarity index 61%
rename from akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Bar.java
rename to akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Bar.java
index fb31de7a55..906476b789 100644
--- a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Bar.java
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Bar.java
@@ -1,4 +1,4 @@
-package se.scalablesolutions.akka.api;
+package se.scalablesolutions.akka.actor;
public interface Bar {
void bar(String msg);
diff --git a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/BarImpl.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/BarImpl.java
similarity index 50%
rename from akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/BarImpl.java
rename to akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/BarImpl.java
index bb93a1ad03..9cb41a85cf 100644
--- a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/BarImpl.java
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/BarImpl.java
@@ -1,13 +1,16 @@
-package se.scalablesolutions.akka.api;
+package se.scalablesolutions.akka.actor;
import com.google.inject.Inject;
+import se.scalablesolutions.akka.actor.*;
-public class BarImpl implements Bar {
+public class BarImpl extends TypedActor implements Bar {
@Inject
private Ext ext;
+
public Ext getExt() {
return ext;
}
+
public void bar(String msg) {
}
}
diff --git a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Ext.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Ext.java
similarity index 50%
rename from akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Ext.java
rename to akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Ext.java
index 1929058fac..c37219cf00 100644
--- a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Ext.java
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Ext.java
@@ -1,4 +1,4 @@
-package se.scalablesolutions.akka.api;
+package se.scalablesolutions.akka.actor;
public interface Ext {
void ext();
diff --git a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/ExtImpl.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/ExtImpl.java
similarity index 62%
rename from akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/ExtImpl.java
rename to akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/ExtImpl.java
index 3c9c9fd3f4..dd8ca55089 100644
--- a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/ExtImpl.java
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/ExtImpl.java
@@ -1,4 +1,4 @@
-package se.scalablesolutions.akka.api;
+package se.scalablesolutions.akka.actor;
public class ExtImpl implements Ext {
public void ext() {
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Foo.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Foo.java
new file mode 100644
index 0000000000..a64f975bce
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/Foo.java
@@ -0,0 +1,14 @@
+package se.scalablesolutions.akka.actor;
+
+public interface Foo {
+ public Foo body();
+ public Bar getBar();
+
+ public String foo(String msg);
+ public void bar(String msg);
+
+ public String longRunning();
+ public String throwsException();
+
+ public int $tag() throws java.rmi.RemoteException;
+}
diff --git a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Foo.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/FooImpl.java
similarity index 70%
rename from akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Foo.java
rename to akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/FooImpl.java
index 5849eb902d..ded09f4e07 100644
--- a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/Foo.java
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/FooImpl.java
@@ -1,34 +1,40 @@
-package se.scalablesolutions.akka.api;
+package se.scalablesolutions.akka.actor;
import com.google.inject.Inject;
+import se.scalablesolutions.akka.actor.*;
-public class Foo extends se.scalablesolutions.akka.serialization.Serializable.JavaJSON {
+public class FooImpl extends TypedActor implements Foo {
@Inject
private Bar bar;
+
public Foo body() { return this; }
+
public Bar getBar() {
return bar;
}
+
public String foo(String msg) {
return msg + "return_foo ";
}
+
public void bar(String msg) {
bar.bar(msg);
}
+
public String longRunning() {
try {
- Thread.sleep(10000);
+ Thread.sleep(1200);
} catch (InterruptedException e) {
}
return "test";
}
+
public String throwsException() {
if (true) throw new RuntimeException("Expected exception; to test fault-tolerance");
return "test";
}
- public int $tag() throws java.rmi.RemoteException
- {
+ public int $tag() throws java.rmi.RemoteException {
return 0;
}
}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/NestedTransactionalTypedActor.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/NestedTransactionalTypedActor.java
new file mode 100644
index 0000000000..fbd241763f
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/NestedTransactionalTypedActor.java
@@ -0,0 +1,12 @@
+package se.scalablesolutions.akka.actor;
+
+public interface NestedTransactionalTypedActor {
+ public String getMapState(String key);
+ public String getVectorState();
+ public String getRefState();
+ public void setMapState(String key, String msg);
+ public void setVectorState(String msg);
+ public void setRefState(String msg);
+ public void success(String key, String msg);
+ public String failure(String key, String msg, TypedActorFailer failer);
+}
diff --git a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/InMemStatefulNested.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/NestedTransactionalTypedActorImpl.java
similarity index 58%
rename from akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/InMemStatefulNested.java
rename to akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/NestedTransactionalTypedActorImpl.java
index 9cd92bd075..1b95517c22 100644
--- a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/InMemStatefulNested.java
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/NestedTransactionalTypedActorImpl.java
@@ -1,17 +1,15 @@
-package se.scalablesolutions.akka.api;
+package se.scalablesolutions.akka.actor;
-import se.scalablesolutions.akka.actor.annotation.transactionrequired;
-import se.scalablesolutions.akka.actor.annotation.inittransactionalstate;
+import se.scalablesolutions.akka.actor.*;
import se.scalablesolutions.akka.stm.*;
-@transactionrequired
-public class InMemStatefulNested {
+public class NestedTransactionalTypedActorImpl extends TypedTransactor implements NestedTransactionalTypedActor {
private TransactionalMap mapState;
private TransactionalVector vectorState;
private Ref refState;
private boolean isInitialized = false;
- @inittransactionalstate
+ @Override
public void init() {
if (!isInitialized) {
mapState = new TransactionalMap();
@@ -25,62 +23,37 @@ public class InMemStatefulNested {
return (String) mapState.get(key).get();
}
-
public String getVectorState() {
return (String) vectorState.last();
}
-
public String getRefState() {
- return (String) refState.get().get();
+ return (String) refState.get();
}
-
public void setMapState(String key, String msg) {
mapState.put(key, msg);
}
-
public void setVectorState(String msg) {
vectorState.add(msg);
}
-
public void setRefState(String msg) {
refState.swap(msg);
}
-
public void success(String key, String msg) {
mapState.put(key, msg);
vectorState.add(msg);
refState.swap(msg);
}
-
- public String failure(String key, String msg, InMemFailer failer) {
+ public String failure(String key, String msg, TypedActorFailer failer) {
mapState.put(key, msg);
vectorState.add(msg);
refState.swap(msg);
failer.fail();
return msg;
}
-
-
- public void thisMethodHangs(String key, String msg, InMemFailer failer) {
- setMapState(key, msg);
- }
-
- /*
- public void clashOk(String key, String msg, InMemClasher clasher) {
- mapState.put(key, msg);
- clasher.clash();
- }
-
- public void clashNotOk(String key, String msg, InMemClasher clasher) {
- mapState.put(key, msg);
- clasher.clash();
- this.success("clash", "clash");
- }
- */
}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/ProtobufProtocol.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/ProtobufProtocol.java
new file mode 100644
index 0000000000..683f008729
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/ProtobufProtocol.java
@@ -0,0 +1,1060 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ProtobufProtocol.proto
+
+package se.scalablesolutions.akka.actor;
+
+public final class ProtobufProtocol {
+ private ProtobufProtocol() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ public static final class ProtobufPOJO extends
+ com.google.protobuf.GeneratedMessage {
+ // Use ProtobufPOJO.newBuilder() to construct.
+ private ProtobufPOJO() {
+ initFields();
+ }
+ private ProtobufPOJO(boolean noInit) {}
+
+ private static final ProtobufPOJO defaultInstance;
+ public static ProtobufPOJO getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public ProtobufPOJO getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.internal_static_se_scalablesolutions_akka_actor_ProtobufPOJO_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.internal_static_se_scalablesolutions_akka_actor_ProtobufPOJO_fieldAccessorTable;
+ }
+
+ // required uint64 id = 1;
+ public static final int ID_FIELD_NUMBER = 1;
+ private boolean hasId;
+ private long id_ = 0L;
+ public boolean hasId() { return hasId; }
+ public long getId() { return id_; }
+
+ // required string name = 2;
+ public static final int NAME_FIELD_NUMBER = 2;
+ private boolean hasName;
+ private java.lang.String name_ = "";
+ public boolean hasName() { return hasName; }
+ public java.lang.String getName() { return name_; }
+
+ // required bool status = 3;
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private boolean hasStatus;
+ private boolean status_ = false;
+ public boolean hasStatus() { return hasStatus; }
+ public boolean getStatus() { return status_; }
+
+ private void initFields() {
+ }
+ public final boolean isInitialized() {
+ if (!hasId) return false;
+ if (!hasName) return false;
+ if (!hasStatus) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasId()) {
+ output.writeUInt64(1, getId());
+ }
+ if (hasName()) {
+ output.writeString(2, getName());
+ }
+ if (hasStatus()) {
+ output.writeBool(3, getStatus());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasId()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, getId());
+ }
+ if (hasName()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeStringSize(2, getName());
+ }
+ if (hasStatus()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, getStatus());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO result;
+
+ // Construct using se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO) {
+ return mergeFrom((se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO other) {
+ if (other == se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO.getDefaultInstance()) return this;
+ if (other.hasId()) {
+ setId(other.getId());
+ }
+ if (other.hasName()) {
+ setName(other.getName());
+ }
+ if (other.hasStatus()) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 8: {
+ setId(input.readUInt64());
+ break;
+ }
+ case 18: {
+ setName(input.readString());
+ break;
+ }
+ case 24: {
+ setStatus(input.readBool());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required uint64 id = 1;
+ public boolean hasId() {
+ return result.hasId();
+ }
+ public long getId() {
+ return result.getId();
+ }
+ public Builder setId(long value) {
+ result.hasId = true;
+ result.id_ = value;
+ return this;
+ }
+ public Builder clearId() {
+ result.hasId = false;
+ result.id_ = 0L;
+ return this;
+ }
+
+ // required string name = 2;
+ public boolean hasName() {
+ return result.hasName();
+ }
+ public java.lang.String getName() {
+ return result.getName();
+ }
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasName = true;
+ result.name_ = value;
+ return this;
+ }
+ public Builder clearName() {
+ result.hasName = false;
+ result.name_ = getDefaultInstance().getName();
+ return this;
+ }
+
+ // required bool status = 3;
+ public boolean hasStatus() {
+ return result.hasStatus();
+ }
+ public boolean getStatus() {
+ return result.getStatus();
+ }
+ public Builder setStatus(boolean value) {
+ result.hasStatus = true;
+ result.status_ = value;
+ return this;
+ }
+ public Builder clearStatus() {
+ result.hasStatus = false;
+ result.status_ = false;
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:se.scalablesolutions.akka.actor.ProtobufPOJO)
+ }
+
+ static {
+ defaultInstance = new ProtobufPOJO(true);
+ se.scalablesolutions.akka.actor.ProtobufProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:se.scalablesolutions.akka.actor.ProtobufPOJO)
+ }
+
+ public static final class Counter extends
+ com.google.protobuf.GeneratedMessage {
+ // Use Counter.newBuilder() to construct.
+ private Counter() {
+ initFields();
+ }
+ private Counter(boolean noInit) {}
+
+ private static final Counter defaultInstance;
+ public static Counter getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Counter getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.internal_static_se_scalablesolutions_akka_actor_Counter_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.internal_static_se_scalablesolutions_akka_actor_Counter_fieldAccessorTable;
+ }
+
+ // required uint32 count = 1;
+ public static final int COUNT_FIELD_NUMBER = 1;
+ private boolean hasCount;
+ private int count_ = 0;
+ public boolean hasCount() { return hasCount; }
+ public int getCount() { return count_; }
+
+ private void initFields() {
+ }
+ public final boolean isInitialized() {
+ if (!hasCount) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasCount()) {
+ output.writeUInt32(1, getCount());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasCount()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, getCount());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.Counter parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.actor.ProtobufProtocol.Counter prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.actor.ProtobufProtocol.Counter result;
+
+ // Construct using se.scalablesolutions.akka.actor.ProtobufProtocol.Counter.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.actor.ProtobufProtocol.Counter();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.actor.ProtobufProtocol.Counter internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.actor.ProtobufProtocol.Counter();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.Counter.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.Counter getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.Counter.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.Counter build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.actor.ProtobufProtocol.Counter buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.Counter buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.actor.ProtobufProtocol.Counter returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.actor.ProtobufProtocol.Counter) {
+ return mergeFrom((se.scalablesolutions.akka.actor.ProtobufProtocol.Counter)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.actor.ProtobufProtocol.Counter other) {
+ if (other == se.scalablesolutions.akka.actor.ProtobufProtocol.Counter.getDefaultInstance()) return this;
+ if (other.hasCount()) {
+ setCount(other.getCount());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 8: {
+ setCount(input.readUInt32());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required uint32 count = 1;
+ public boolean hasCount() {
+ return result.hasCount();
+ }
+ public int getCount() {
+ return result.getCount();
+ }
+ public Builder setCount(int value) {
+ result.hasCount = true;
+ result.count_ = value;
+ return this;
+ }
+ public Builder clearCount() {
+ result.hasCount = false;
+ result.count_ = 0;
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:se.scalablesolutions.akka.actor.Counter)
+ }
+
+ static {
+ defaultInstance = new Counter(true);
+ se.scalablesolutions.akka.actor.ProtobufProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:se.scalablesolutions.akka.actor.Counter)
+ }
+
+ public static final class DualCounter extends
+ com.google.protobuf.GeneratedMessage {
+ // Use DualCounter.newBuilder() to construct.
+ private DualCounter() {
+ initFields();
+ }
+ private DualCounter(boolean noInit) {}
+
+ private static final DualCounter defaultInstance;
+ public static DualCounter getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public DualCounter getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.internal_static_se_scalablesolutions_akka_actor_DualCounter_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.internal_static_se_scalablesolutions_akka_actor_DualCounter_fieldAccessorTable;
+ }
+
+ // required uint32 count1 = 1;
+ public static final int COUNT1_FIELD_NUMBER = 1;
+ private boolean hasCount1;
+ private int count1_ = 0;
+ public boolean hasCount1() { return hasCount1; }
+ public int getCount1() { return count1_; }
+
+ // required uint32 count2 = 2;
+ public static final int COUNT2_FIELD_NUMBER = 2;
+ private boolean hasCount2;
+ private int count2_ = 0;
+ public boolean hasCount2() { return hasCount2; }
+ public int getCount2() { return count2_; }
+
+ private void initFields() {
+ }
+ public final boolean isInitialized() {
+ if (!hasCount1) return false;
+ if (!hasCount2) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasCount1()) {
+ output.writeUInt32(1, getCount1());
+ }
+ if (hasCount2()) {
+ output.writeUInt32(2, getCount2());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasCount1()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, getCount1());
+ }
+ if (hasCount2()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, getCount2());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder {
+ private se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter result;
+
+ // Construct using se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter();
+ return builder;
+ }
+
+ protected se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter.getDescriptor();
+ }
+
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter getDefaultInstanceForType() {
+ return se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter) {
+ return mergeFrom((se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter other) {
+ if (other == se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter.getDefaultInstance()) return this;
+ if (other.hasCount1()) {
+ setCount1(other.getCount1());
+ }
+ if (other.hasCount2()) {
+ setCount2(other.getCount2());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 8: {
+ setCount1(input.readUInt32());
+ break;
+ }
+ case 16: {
+ setCount2(input.readUInt32());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required uint32 count1 = 1;
+ public boolean hasCount1() {
+ return result.hasCount1();
+ }
+ public int getCount1() {
+ return result.getCount1();
+ }
+ public Builder setCount1(int value) {
+ result.hasCount1 = true;
+ result.count1_ = value;
+ return this;
+ }
+ public Builder clearCount1() {
+ result.hasCount1 = false;
+ result.count1_ = 0;
+ return this;
+ }
+
+ // required uint32 count2 = 2;
+ public boolean hasCount2() {
+ return result.hasCount2();
+ }
+ public int getCount2() {
+ return result.getCount2();
+ }
+ public Builder setCount2(int value) {
+ result.hasCount2 = true;
+ result.count2_ = value;
+ return this;
+ }
+ public Builder clearCount2() {
+ result.hasCount2 = false;
+ result.count2_ = 0;
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:se.scalablesolutions.akka.actor.DualCounter)
+ }
+
+ static {
+ defaultInstance = new DualCounter(true);
+ se.scalablesolutions.akka.actor.ProtobufProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:se.scalablesolutions.akka.actor.DualCounter)
+ }
+
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_se_scalablesolutions_akka_actor_ProtobufPOJO_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_se_scalablesolutions_akka_actor_ProtobufPOJO_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_se_scalablesolutions_akka_actor_Counter_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_se_scalablesolutions_akka_actor_Counter_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_se_scalablesolutions_akka_actor_DualCounter_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_se_scalablesolutions_akka_actor_DualCounter_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\026ProtobufProtocol.proto\022\037se.scalablesol" +
+ "utions.akka.actor\"8\n\014ProtobufPOJO\022\n\n\002id\030" +
+ "\001 \002(\004\022\014\n\004name\030\002 \002(\t\022\016\n\006status\030\003 \002(\010\"\030\n\007C" +
+ "ounter\022\r\n\005count\030\001 \002(\r\"-\n\013DualCounter\022\016\n\006" +
+ "count1\030\001 \002(\r\022\016\n\006count2\030\002 \002(\r"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ internal_static_se_scalablesolutions_akka_actor_ProtobufPOJO_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_se_scalablesolutions_akka_actor_ProtobufPOJO_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_se_scalablesolutions_akka_actor_ProtobufPOJO_descriptor,
+ new java.lang.String[] { "Id", "Name", "Status", },
+ se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO.class,
+ se.scalablesolutions.akka.actor.ProtobufProtocol.ProtobufPOJO.Builder.class);
+ internal_static_se_scalablesolutions_akka_actor_Counter_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_se_scalablesolutions_akka_actor_Counter_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_se_scalablesolutions_akka_actor_Counter_descriptor,
+ new java.lang.String[] { "Count", },
+ se.scalablesolutions.akka.actor.ProtobufProtocol.Counter.class,
+ se.scalablesolutions.akka.actor.ProtobufProtocol.Counter.Builder.class);
+ internal_static_se_scalablesolutions_akka_actor_DualCounter_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_se_scalablesolutions_akka_actor_DualCounter_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_se_scalablesolutions_akka_actor_DualCounter_descriptor,
+ new java.lang.String[] { "Count1", "Count2", },
+ se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter.class,
+ se.scalablesolutions.akka.actor.ProtobufProtocol.DualCounter.Builder.class);
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ }
+
+ public static void internalForceInit() {}
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorOne.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorOne.java
new file mode 100644
index 0000000000..dd03a45d12
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorOne.java
@@ -0,0 +1,6 @@
+package se.scalablesolutions.akka.actor;
+
+public interface RemoteTypedActorOne {
+ public String requestReply(String s) throws Exception;
+ public void oneWay() throws Exception;
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorOneImpl.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorOneImpl.java
new file mode 100644
index 0000000000..715e5366a4
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorOneImpl.java
@@ -0,0 +1,29 @@
+package se.scalablesolutions.akka.actor.remote;
+
+import se.scalablesolutions.akka.actor.*;
+
+import java.util.concurrent.CountDownLatch;
+
+public class RemoteTypedActorOneImpl extends TypedActor implements RemoteTypedActorOne {
+
+ public static CountDownLatch latch = new CountDownLatch(1);
+
+ public String requestReply(String s) throws Exception {
+ if (s.equals("ping")) {
+ RemoteTypedActorLog.messageLog().put("ping");
+ return "pong";
+ } else if (s.equals("die")) {
+ throw new RuntimeException("Expected exception; to test fault-tolerance");
+ } else return null;
+ }
+
+ public void oneWay() throws Exception {
+ RemoteTypedActorLog.oneWayLog().put("oneway");
+ }
+
+ @Override
+ public void preRestart(Throwable e) {
+ try { RemoteTypedActorLog.messageLog().put(e.getMessage()); } catch(Exception ex) {}
+ latch.countDown();
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorTwo.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorTwo.java
new file mode 100644
index 0000000000..5fd289b8c2
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorTwo.java
@@ -0,0 +1,6 @@
+package se.scalablesolutions.akka.actor;
+
+public interface RemoteTypedActorTwo {
+ public String requestReply(String s) throws Exception;
+ public void oneWay() throws Exception;
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorTwoImpl.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorTwoImpl.java
new file mode 100644
index 0000000000..a5882fd4e6
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/RemoteTypedActorTwoImpl.java
@@ -0,0 +1,29 @@
+package se.scalablesolutions.akka.actor.remote;
+
+import se.scalablesolutions.akka.actor.*;
+
+import java.util.concurrent.CountDownLatch;
+
+public class RemoteTypedActorTwoImpl extends TypedActor implements RemoteTypedActorTwo {
+
+ public static CountDownLatch latch = new CountDownLatch(1);
+
+ public String requestReply(String s) throws Exception {
+ if (s.equals("ping")) {
+ RemoteTypedActorLog.messageLog().put("ping");
+ return "pong";
+ } else if (s.equals("die")) {
+ throw new RuntimeException("Expected exception; to test fault-tolerance");
+ } else return null;
+ }
+
+ public void oneWay() throws Exception {
+ RemoteTypedActorLog.oneWayLog().put("oneway");
+ }
+
+ @Override
+ public void preRestart(Throwable e) {
+ try { RemoteTypedActorLog.messageLog().put(e.getMessage()); } catch(Exception ex) {}
+ latch.countDown();
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SamplePojo.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SamplePojo.java
new file mode 100644
index 0000000000..5d06afdc9c
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SamplePojo.java
@@ -0,0 +1,8 @@
+package se.scalablesolutions.akka.actor;
+
+import java.util.concurrent.CountDownLatch;
+
+public interface SamplePojo {
+ public String greet(String s);
+ public String fail();
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SamplePojoImpl.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SamplePojoImpl.java
new file mode 100644
index 0000000000..12985c72ce
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SamplePojoImpl.java
@@ -0,0 +1,45 @@
+package se.scalablesolutions.akka.actor;
+
+import se.scalablesolutions.akka.actor.*;
+
+import java.util.concurrent.CountDownLatch;
+
+public class SamplePojoImpl extends TypedActor implements SamplePojo {
+
+ public static CountDownLatch latch = new CountDownLatch(1);
+
+ public static boolean _pre = false;
+ public static boolean _post = false;
+ public static boolean _down = false;
+ public static void reset() {
+ _pre = false;
+ _post = false;
+ _down = false;
+ }
+
+ public String greet(String s) {
+ return "hello " + s;
+ }
+
+ public String fail() {
+ throw new RuntimeException("expected");
+ }
+
+ @Override
+ public void preRestart(Throwable e) {
+ _pre = true;
+ latch.countDown();
+ }
+
+ @Override
+ public void postRestart(Throwable e) {
+ _post = true;
+ latch.countDown();
+ }
+
+ @Override
+ public void shutdown() {
+ _down = true;
+ latch.countDown();
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojo.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojo.java
new file mode 100644
index 0000000000..d3a18abbd9
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojo.java
@@ -0,0 +1,14 @@
+package se.scalablesolutions.akka.actor;
+
+import se.scalablesolutions.akka.dispatch.Future;
+import se.scalablesolutions.akka.dispatch.CompletableFuture;
+import se.scalablesolutions.akka.dispatch.Future;
+
+public interface SimpleJavaPojo {
+ public Object getSender();
+ public Object getSenderFuture();
+ public Future square(int value);
+ public void setName(String name);
+ public String getName();
+ public void throwException();
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoCaller.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoCaller.java
new file mode 100644
index 0000000000..e35702846f
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoCaller.java
@@ -0,0 +1,9 @@
+package se.scalablesolutions.akka.actor;
+
+import se.scalablesolutions.akka.dispatch.CompletableFuture;
+
+public interface SimpleJavaPojoCaller {
+ public void setPojo(SimpleJavaPojo pojo);
+ public Object getSenderFromSimpleJavaPojo();
+ public Object getSenderFutureFromSimpleJavaPojo();
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoCallerImpl.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoCallerImpl.java
new file mode 100644
index 0000000000..760b69f8b9
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoCallerImpl.java
@@ -0,0 +1,26 @@
+package se.scalablesolutions.akka.actor;
+
+import se.scalablesolutions.akka.actor.*;
+import se.scalablesolutions.akka.dispatch.Future;
+
+public class SimpleJavaPojoCallerImpl extends TypedActor implements SimpleJavaPojoCaller {
+
+ SimpleJavaPojo pojo;
+
+ public void setPojo(SimpleJavaPojo pojo) {
+ this.pojo = pojo;
+ }
+
+ public Object getSenderFromSimpleJavaPojo() {
+ Object sender = pojo.getSender();
+ return sender;
+ }
+
+ public Object getSenderFutureFromSimpleJavaPojo() {
+ return pojo.getSenderFuture();
+ }
+
+ public Future square(int value) {
+ return future(value * value);
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoImpl.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoImpl.java
new file mode 100644
index 0000000000..c02d266ce8
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/SimpleJavaPojoImpl.java
@@ -0,0 +1,53 @@
+package se.scalablesolutions.akka.actor;
+
+import se.scalablesolutions.akka.actor.*;
+import se.scalablesolutions.akka.dispatch.Future;
+import se.scalablesolutions.akka.dispatch.CompletableFuture;
+
+public class SimpleJavaPojoImpl extends TypedActor implements SimpleJavaPojo {
+
+ public static boolean _pre = false;
+ public static boolean _post = false;
+ public static boolean _down = false;
+ public static void reset() {
+ _pre = false;
+ _post = false;
+ _down = false;
+ }
+
+ private String name;
+
+ public Future square(int value) {
+ return future(value * value);
+ }
+
+ public Object getSender() {
+ return getContext().getSender();
+ }
+
+ public CompletableFuture getSenderFuture() {
+ return getContext().getSenderFuture().get();
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ @Override
+ public void preRestart(Throwable e) {
+ _pre = true;
+ }
+
+ @Override
+ public void postRestart(Throwable e) {
+ _post = true;
+ }
+
+ public void throwException() {
+ throw new RuntimeException();
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TransactionalTypedActor.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TransactionalTypedActor.java
new file mode 100644
index 0000000000..6e7c43745b
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TransactionalTypedActor.java
@@ -0,0 +1,14 @@
+package se.scalablesolutions.akka.actor;
+
+public interface TransactionalTypedActor {
+ public String getMapState(String key);
+ public String getVectorState();
+ public String getRefState();
+ public void setMapState(String key, String msg);
+ public void setVectorState(String msg);
+ public void setRefState(String msg);
+ public void success(String key, String msg);
+ public void success(String key, String msg, NestedTransactionalTypedActor nested);
+ public String failure(String key, String msg, TypedActorFailer failer);
+ public String failure(String key, String msg, NestedTransactionalTypedActor nested, TypedActorFailer failer);
+}
diff --git a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/InMemStateful.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TransactionalTypedActorImpl.java
similarity index 62%
rename from akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/InMemStateful.java
rename to akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TransactionalTypedActorImpl.java
index fdd1fd5b93..9b32f5d329 100644
--- a/akka-active-object-test/src/test/java/se/scalablesolutions/akka/api/InMemStateful.java
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TransactionalTypedActorImpl.java
@@ -1,20 +1,16 @@
-package se.scalablesolutions.akka.api;
+package se.scalablesolutions.akka.actor;
-import se.scalablesolutions.akka.actor.annotation.transactionrequired;
-import se.scalablesolutions.akka.actor.annotation.prerestart;
-import se.scalablesolutions.akka.actor.annotation.postrestart;
-import se.scalablesolutions.akka.actor.annotation.inittransactionalstate;
+import se.scalablesolutions.akka.actor.*;
import se.scalablesolutions.akka.stm.*;
-@transactionrequired
-public class InMemStateful {
+public class TransactionalTypedActorImpl extends TypedTransactor implements TransactionalTypedActor {
private TransactionalMap mapState;
private TransactionalVector vectorState;
private Ref refState;
private boolean isInitialized = false;
- @inittransactionalstate
- public void init() {
+ @Override
+ public void initTransactionalState() {
if (!isInitialized) {
mapState = new TransactionalMap();
vectorState = new TransactionalVector();
@@ -32,7 +28,7 @@ public class InMemStateful {
}
public String getRefState() {
- return (String)refState.get().get();
+ return (String)refState.get();
}
public void setMapState(String key, String msg) {
@@ -53,14 +49,14 @@ public class InMemStateful {
refState.swap(msg);
}
- public void success(String key, String msg, InMemStatefulNested nested) {
+ public void success(String key, String msg, NestedTransactionalTypedActor nested) {
mapState.put(key, msg);
vectorState.add(msg);
refState.swap(msg);
nested.success(key, msg);
}
- public String failure(String key, String msg, InMemFailer failer) {
+ public String failure(String key, String msg, TypedActorFailer failer) {
mapState.put(key, msg);
vectorState.add(msg);
refState.swap(msg);
@@ -68,7 +64,7 @@ public class InMemStateful {
return msg;
}
- public String failure(String key, String msg, InMemStatefulNested nested, InMemFailer failer) {
+ public String failure(String key, String msg, NestedTransactionalTypedActor nested, TypedActorFailer failer) {
mapState.put(key, msg);
vectorState.add(msg);
refState.swap(msg);
@@ -76,17 +72,13 @@ public class InMemStateful {
return msg;
}
- public void thisMethodHangs(String key, String msg, InMemFailer failer) {
- setMapState(key, msg);
- }
-
- @prerestart
- public void preRestart() {
+ @Override
+ public void preRestart(Throwable e) {
System.out.println("################ PRE RESTART");
}
- @postrestart
- public void postRestart() {
+ @Override
+ public void postRestart(Throwable e) {
System.out.println("################ POST RESTART");
}
}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TypedActorFailer.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TypedActorFailer.java
new file mode 100644
index 0000000000..e0b1e72c33
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TypedActorFailer.java
@@ -0,0 +1,5 @@
+package se.scalablesolutions.akka.actor;
+
+public interface TypedActorFailer extends java.io.Serializable {
+ public int fail();
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TypedActorFailerImpl.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TypedActorFailerImpl.java
new file mode 100644
index 0000000000..89a97330df
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/actor/TypedActorFailerImpl.java
@@ -0,0 +1,9 @@
+package se.scalablesolutions.akka.actor;
+
+import se.scalablesolutions.akka.actor.*;
+
+public class TypedActorFailerImpl extends TypedActor implements TypedActorFailer {
+ public int fail() {
+ throw new RuntimeException("expected");
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/Address.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/Address.java
new file mode 100644
index 0000000000..cb3057929f
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/Address.java
@@ -0,0 +1,13 @@
+package se.scalablesolutions.akka.stm;
+
+public class Address {
+ private String location;
+
+ public Address(String location) {
+ this.location = location;
+ }
+
+ @Override public String toString() {
+ return "Address(" + location + ")";
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/CounterExample.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/CounterExample.java
new file mode 100644
index 0000000000..57a9a07daa
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/CounterExample.java
@@ -0,0 +1,26 @@
+package se.scalablesolutions.akka.stm;
+
+import se.scalablesolutions.akka.stm.Ref;
+import se.scalablesolutions.akka.stm.local.Atomic;
+
+public class CounterExample {
+ final static Ref ref = new Ref(0);
+
+ public static int counter() {
+ return new Atomic() {
+ public Integer atomically() {
+ int inc = ref.get() + 1;
+ ref.set(inc);
+ return inc;
+ }
+ }.execute();
+ }
+
+ public static void main(String[] args) {
+ System.out.println();
+ System.out.println("Counter example");
+ System.out.println();
+ System.out.println("counter 1: " + counter());
+ System.out.println("counter 2: " + counter());
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/JavaStmTests.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/JavaStmTests.java
new file mode 100644
index 0000000000..7204013808
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/JavaStmTests.java
@@ -0,0 +1,91 @@
+package se.scalablesolutions.akka.stm;
+
+import static org.junit.Assert.*;
+import org.junit.Test;
+import org.junit.Before;
+
+import se.scalablesolutions.akka.stm.*;
+import se.scalablesolutions.akka.stm.local.Atomic;
+
+import org.multiverse.api.ThreadLocalTransaction;
+import org.multiverse.api.TransactionConfiguration;
+import org.multiverse.api.exceptions.ReadonlyException;
+
+public class JavaStmTests {
+
+ private Ref ref;
+
+ private int getRefValue() {
+ return new Atomic() {
+ public Integer atomically() {
+ return ref.get();
+ }
+ }.execute();
+ }
+
+ public int increment() {
+ return new Atomic() {
+ public Integer atomically() {
+ int inc = ref.get() + 1;
+ ref.set(inc);
+ return inc;
+ }
+ }.execute();
+ }
+
+ @Before public void initialise() {
+ ref = new Ref(0);
+ }
+
+ @Test public void incrementRef() {
+ assertEquals(0, getRefValue());
+ increment();
+ increment();
+ increment();
+ assertEquals(3, getRefValue());
+ }
+
+ @Test public void failSetRef() {
+ assertEquals(0, getRefValue());
+ try {
+ new Atomic() {
+ public Object atomically() {
+ ref.set(3);
+ throw new RuntimeException();
+ }
+ }.execute();
+ } catch(RuntimeException e) {}
+ assertEquals(0, getRefValue());
+ }
+
+ @Test public void configureTransaction() {
+ TransactionFactory txFactory = new TransactionFactoryBuilder()
+ .setFamilyName("example")
+ .setReadonly(true)
+ .build();
+
+ // get transaction config from multiverse
+ TransactionConfiguration config = new Atomic(txFactory) {
+ public TransactionConfiguration atomically() {
+ ref.get();
+ return ThreadLocalTransaction.getThreadLocalTransaction().getConfiguration();
+ }
+ }.execute();
+
+ assertEquals("example", config.getFamilyName());
+ assertEquals(true, config.isReadonly());
+ }
+
+ @Test(expected=ReadonlyException.class) public void failReadonlyTransaction() {
+ TransactionFactory txFactory = new TransactionFactoryBuilder()
+ .setFamilyName("example")
+ .setReadonly(true)
+ .build();
+
+ new Atomic(txFactory) {
+ public Object atomically() {
+ return ref.set(3);
+ }
+ }.execute();
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/RefExample.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/RefExample.java
new file mode 100644
index 0000000000..f590524fd7
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/RefExample.java
@@ -0,0 +1,36 @@
+package se.scalablesolutions.akka.stm;
+
+import se.scalablesolutions.akka.stm.Ref;
+import se.scalablesolutions.akka.stm.local.Atomic;
+
+public class RefExample {
+ public static void main(String[] args) {
+ System.out.println();
+ System.out.println("Ref example");
+ System.out.println();
+
+ final Ref ref = new Ref(0);
+
+ Integer value1 = new Atomic() {
+ public Integer atomically() {
+ return ref.get();
+ }
+ }.execute();
+
+ System.out.println("value 1: " + value1);
+
+ new Atomic() {
+ public Object atomically() {
+ return ref.set(5);
+ }
+ }.execute();
+
+ Integer value2 = new Atomic() {
+ public Integer atomically() {
+ return ref.get();
+ }
+ }.execute();
+
+ System.out.println("value 2: " + value2);
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/StmExamples.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/StmExamples.java
new file mode 100644
index 0000000000..a8526f2dd0
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/StmExamples.java
@@ -0,0 +1,18 @@
+package se.scalablesolutions.akka.stm;
+
+import se.scalablesolutions.akka.stm.Ref;
+import se.scalablesolutions.akka.stm.local.Atomic;
+
+public class StmExamples {
+ public static void main(String[] args) {
+ System.out.println();
+ System.out.println("STM examples");
+ System.out.println();
+
+ CounterExample.main(args);
+ RefExample.main(args);
+ TransactionFactoryExample.main(args);
+ TransactionalMapExample.main(args);
+ TransactionalVectorExample.main(args);
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionFactoryExample.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionFactoryExample.java
new file mode 100644
index 0000000000..00dd87b7c5
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionFactoryExample.java
@@ -0,0 +1,30 @@
+package se.scalablesolutions.akka.stm;
+
+import se.scalablesolutions.akka.stm.*;
+import se.scalablesolutions.akka.stm.local.Atomic;
+
+import org.multiverse.api.ThreadLocalTransaction;
+import org.multiverse.api.TransactionConfiguration;
+
+public class TransactionFactoryExample {
+ public static void main(String[] args) {
+ System.out.println();
+ System.out.println("TransactionFactory example");
+ System.out.println();
+
+ TransactionFactory txFactory = new TransactionFactoryBuilder()
+ .setFamilyName("example")
+ .setReadonly(true)
+ .build();
+
+ new Atomic(txFactory) {
+ public Object atomically() {
+ // check config has been passed to multiverse
+ TransactionConfiguration config = ThreadLocalTransaction.getThreadLocalTransaction().getConfiguration();
+ System.out.println("family name: " + config.getFamilyName());
+ System.out.println("readonly: " + config.isReadonly());
+ return null;
+ }
+ }.execute();
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionalMapExample.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionalMapExample.java
new file mode 100644
index 0000000000..7c4940c7a5
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionalMapExample.java
@@ -0,0 +1,35 @@
+package se.scalablesolutions.akka.stm;
+
+import se.scalablesolutions.akka.stm.*;
+import se.scalablesolutions.akka.stm.local.Atomic;
+
+public class TransactionalMapExample {
+ public static void main(String[] args) {
+ System.out.println();
+ System.out.println("TransactionalMap example");
+ System.out.println();
+
+ final TransactionalMap users = new TransactionalMap();
+
+ // fill users map (in a transaction)
+ new Atomic() {
+ public Object atomically() {
+ users.put("bill", new User("bill"));
+ users.put("mary", new User("mary"));
+ users.put("john", new User("john"));
+ return null;
+ }
+ }.execute();
+
+ System.out.println("users: " + users);
+
+ // access users map (in a transaction)
+ User user = new Atomic() {
+ public User atomically() {
+ return users.get("bill").get();
+ }
+ }.execute();
+
+ System.out.println("user: " + user);
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionalVectorExample.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionalVectorExample.java
new file mode 100644
index 0000000000..7274848beb
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/TransactionalVectorExample.java
@@ -0,0 +1,34 @@
+package se.scalablesolutions.akka.stm;
+
+import se.scalablesolutions.akka.stm.*;
+import se.scalablesolutions.akka.stm.local.Atomic;
+
+public class TransactionalVectorExample {
+ public static void main(String[] args) {
+ System.out.println();
+ System.out.println("TransactionalVector example");
+ System.out.println();
+
+ final TransactionalVector addresses = new TransactionalVector();
+
+ // fill addresses vector (in a transaction)
+ new Atomic() {
+ public Object atomically() {
+ addresses.add(new Address("somewhere"));
+ addresses.add(new Address("somewhere else"));
+ return null;
+ }
+ }.execute();
+
+ System.out.println("addresses: " + addresses);
+
+ // access addresses vector (in a transaction)
+ Address address = new Atomic() {
+ public Address atomically() {
+ return addresses.get(0);
+ }
+ }.execute();
+
+ System.out.println("address: " + address);
+ }
+}
diff --git a/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/User.java b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/User.java
new file mode 100644
index 0000000000..c9dc4b3723
--- /dev/null
+++ b/akka-typed-actors/src/test/java/se/scalablesolutions/akka/stm/User.java
@@ -0,0 +1,13 @@
+package se.scalablesolutions.akka.stm;
+
+public class User {
+ private String name;
+
+ public User(String name) {
+ this.name = name;
+ }
+
+ @Override public String toString() {
+ return "User(" + name + ")";
+ }
+}
diff --git a/akka-core/src/main/resources/META-INF/aop.xml b/akka-typed-actors/src/test/resources/META-INF/aop.xml
similarity index 100%
rename from akka-core/src/main/resources/META-INF/aop.xml
rename to akka-typed-actors/src/test/resources/META-INF/aop.xml
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/NestedTransactionalTypedActorSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/NestedTransactionalTypedActorSpec.scala
new file mode 100644
index 0000000000..7338e8df41
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/NestedTransactionalTypedActorSpec.scala
@@ -0,0 +1,102 @@
+ /**
+ * Copyright (C) 2009-2010 Scalable Solutions AB
+ */
+
+package se.scalablesolutions.akka.actor
+
+import org.scalatest.Spec
+import org.scalatest.Assertions
+import org.scalatest.matchers.ShouldMatchers
+import org.scalatest.BeforeAndAfterAll
+import org.scalatest.junit.JUnitRunner
+import org.junit.runner.RunWith
+
+import se.scalablesolutions.akka.actor._
+
+@RunWith(classOf[JUnitRunner])
+class NestedTransactionalTypedActorSpec extends
+ Spec with
+ ShouldMatchers with
+ BeforeAndAfterAll {
+
+ private var messageLog = ""
+
+ override def afterAll {
+ // ActorRegistry.shutdownAll
+ }
+
+ describe("Declaratively nested supervised transactional in-memory TypedActor") {
+
+ it("map should not rollback state for stateful server in case of success") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setMapState("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "init") // set init state
+ val nested = TypedActor.newInstance(classOf[NestedTransactionalTypedActor], classOf[NestedTransactionalTypedActorImpl])
+ nested.setMapState("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "init") // set init state
+ stateful.success("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "new state", nested) // transactionrequired
+ stateful.getMapState("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess") should equal("new state")
+ nested.getMapState("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess") should equal("new state")
+ }
+
+ it("map should rollback state for stateful server in case of failure") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure", "init") // set init state
+ val nested = TypedActor.newInstance(classOf[NestedTransactionalTypedActor], classOf[NestedTransactionalTypedActorImpl])
+ nested.setMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure", "init") // set init state
+ val failer = TypedActor.newInstance(classOf[TypedActorFailer], classOf[TypedActorFailerImpl])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", nested, failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure") should equal("init")
+ nested.getMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure") should equal("init")
+ }
+
+ it("vector should not rollback state for stateful server in case of success") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setVectorState("init") // set init state
+ val nested = TypedActor.newInstance(classOf[NestedTransactionalTypedActor], classOf[NestedTransactionalTypedActorImpl])
+ nested.setVectorState("init") // set init state
+ stateful.success("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "new state", nested) // transactionrequired
+ stateful.getVectorState should equal("new state")
+ nested.getVectorState should equal("new state")
+ }
+
+ it("vector should rollback state for stateful server in case of failure") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setVectorState("init") // set init state
+ val nested = TypedActor.newInstance(classOf[NestedTransactionalTypedActor], classOf[NestedTransactionalTypedActorImpl])
+ nested.setVectorState("init") // set init state
+ val failer = TypedActor.newInstance(classOf[TypedActorFailer], classOf[TypedActorFailerImpl])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", nested, failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getVectorState should equal("init")
+ nested.getVectorState should equal("init")
+ }
+
+ it("ref should not rollback state for stateful server in case of success") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ val nested = TypedActor.newInstance(classOf[NestedTransactionalTypedActor], classOf[NestedTransactionalTypedActorImpl])
+ stateful.setRefState("init") // set init state
+ nested.setRefState("init") // set init state
+ stateful.success("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "new state", nested)
+ stateful.getRefState should equal("new state")
+ nested.getRefState should equal("new state")
+ }
+
+ it("ref should rollback state for stateful server in case of failure") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ val nested = TypedActor.newInstance(classOf[NestedTransactionalTypedActor], classOf[NestedTransactionalTypedActorImpl])
+ stateful.setRefState("init") // set init state
+ nested.setRefState("init") // set init state
+ val failer = TypedActor.newInstance(classOf[TypedActorFailer], classOf[TypedActorFailerImpl])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", nested, failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getRefState should equal("init")
+ nested.getRefState should equal("init")
+ }
+ }
+}
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/RestartNestedTransactionalTypedActorSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/RestartNestedTransactionalTypedActorSpec.scala
new file mode 100644
index 0000000000..1769a5c47b
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/RestartNestedTransactionalTypedActorSpec.scala
@@ -0,0 +1,118 @@
+/**
+ * Copyright (C) 2009-2010 Scalable Solutions AB
+ */
+
+package se.scalablesolutions.akka.actor
+
+import org.scalatest.Spec
+import org.scalatest.Assertions
+import org.scalatest.matchers.ShouldMatchers
+import org.scalatest.BeforeAndAfterAll
+import org.scalatest.junit.JUnitRunner
+import org.junit.runner.RunWith
+
+import se.scalablesolutions.akka.config.Config
+import se.scalablesolutions.akka.config._
+import se.scalablesolutions.akka.config.TypedActorConfigurator
+import se.scalablesolutions.akka.config.JavaConfig._
+import se.scalablesolutions.akka.actor._
+
+@RunWith(classOf[JUnitRunner])
+class RestartNestedTransactionalTypedActorSpec extends
+ Spec with
+ ShouldMatchers with
+ BeforeAndAfterAll {
+
+ private val conf = new TypedActorConfigurator
+ private var messageLog = ""
+
+ override def beforeAll {
+ /*
+ Config.config
+ conf.configure(
+ new RestartStrategy(new AllForOne, 3, 5000, List(classOf[Exception]).toArray),
+ List(
+ new Component(classOf[TransactionalTypedActor],
+ new LifeCycle(new Permanent),
+ 10000),
+ new Component(classOf[NestedTransactionalTypedActor],
+ new LifeCycle(new Permanent),
+ 10000),
+ new Component(classOf[TypedActorFailer],
+ new LifeCycle(new Permanent),
+ 10000)
+ ).toArray).supervise
+ */
+ }
+
+ override def afterAll {
+ /*
+ conf.stop
+ ActorRegistry.shutdownAll
+ */
+ }
+
+ describe("Restart nested supervised transactional Typed Actor") {
+/*
+ it("map should rollback state for stateful server in case of failure") {
+ val stateful = conf.getInstance(classOf[TransactionalTypedActor])
+ stateful.init
+ stateful.setMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure", "init") // set init state
+
+ val nested = conf.getInstance(classOf[NestedTransactionalTypedActor])
+ nested.init
+ nested.setMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure", "init") // set init state
+
+ val failer = conf.getInstance(classOf[TypedActorFailer])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", nested, failer)
+
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure") should equal("init")
+
+ nested.getMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure") should equal("init")
+ }
+
+ it("vector should rollback state for stateful server in case of failure") {
+ val stateful = conf.getInstance(classOf[TransactionalTypedActor])
+ stateful.init
+ stateful.setVectorState("init") // set init state
+
+ val nested = conf.getInstance(classOf[NestedTransactionalTypedActor])
+ nested.init
+ nested.setVectorState("init") // set init state
+
+ val failer = conf.getInstance(classOf[TypedActorFailer])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", nested, failer)
+
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getVectorState should equal("init")
+
+ nested.getVectorState should equal("init")
+ }
+
+ it("ref should rollback state for stateful server in case of failure") {
+ val stateful = conf.getInstance(classOf[TransactionalTypedActor])
+ stateful.init
+ val nested = conf.getInstance(classOf[NestedTransactionalTypedActor])
+ nested.init
+ stateful.setRefState("init") // set init state
+
+ nested.setRefState("init") // set init state
+
+ val failer = conf.getInstance(classOf[TypedActorFailer])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", nested, failer)
+
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getRefState should equal("init")
+
+ nested.getRefState should equal("init")
+ }
+ */
+ }
+}
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/RestartTransactionalTypedActorSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/RestartTransactionalTypedActorSpec.scala
new file mode 100644
index 0000000000..56b1e6ec5b
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/RestartTransactionalTypedActorSpec.scala
@@ -0,0 +1,92 @@
+/**
+ * Copyright (C) 2009-2010 Scalable Solutions AB
+ */
+
+package se.scalablesolutions.akka.actor
+
+import org.scalatest.Spec
+import org.scalatest.Assertions
+import org.scalatest.matchers.ShouldMatchers
+import org.scalatest.BeforeAndAfterAll
+import org.scalatest.junit.JUnitRunner
+import org.junit.runner.RunWith
+
+import se.scalablesolutions.akka.config.Config
+import se.scalablesolutions.akka.config._
+import se.scalablesolutions.akka.config.TypedActorConfigurator
+import se.scalablesolutions.akka.config.JavaConfig._
+import se.scalablesolutions.akka.actor._
+
+@RunWith(classOf[JUnitRunner])
+class RestartTransactionalTypedActorSpec extends
+ Spec with
+ ShouldMatchers with
+ BeforeAndAfterAll {
+
+ private val conf = new TypedActorConfigurator
+ private var messageLog = ""
+
+ def before {
+ Config.config
+ conf.configure(
+ new RestartStrategy(new AllForOne, 3, 5000, List(classOf[Exception]).toArray),
+ List(
+ new Component(
+ classOf[TransactionalTypedActor],
+ new LifeCycle(new Temporary),
+ 10000),
+ new Component(
+ classOf[TypedActorFailer],
+ new LifeCycle(new Temporary),
+ 10000)
+ ).toArray).supervise
+ }
+
+ def after {
+ conf.stop
+ ActorRegistry.shutdownAll
+ }
+
+ describe("Restart supervised transactional Typed Actor ") {
+/*
+ it("map should rollback state for stateful server in case of failure") {
+ before
+ val stateful = conf.getInstance(classOf[TransactionalTypedActor])
+ stateful.init
+ stateful.setMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure", "init")
+ val failer = conf.getInstance(classOf[TypedActorFailer])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure") should equal("init")
+ after
+ }
+
+ it("vector should rollback state for stateful server in case of failure") {
+ before
+ val stateful = conf.getInstance(classOf[TransactionalTypedActor])
+ stateful.init
+ stateful.setVectorState("init") // set init state
+ val failer = conf.getInstance(classOf[TypedActorFailer])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getVectorState should equal("init")
+ after
+ }
+
+ it("ref should rollback state for stateful server in case of failure") {
+ val stateful = conf.getInstance(classOf[TransactionalTypedActor])
+ stateful.init
+ stateful.setRefState("init") // set init state
+ val failer = conf.getInstance(classOf[TypedActorFailer])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getRefState should equal("init")
+ }
+*/ }
+}
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/TransactionalTypedActorSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/TransactionalTypedActorSpec.scala
new file mode 100644
index 0000000000..b55f52c875
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/TransactionalTypedActorSpec.scala
@@ -0,0 +1,83 @@
+/**
+ * Copyright (C) 2009-2010 Scalable Solutions AB
+ */
+
+package se.scalablesolutions.akka.actor
+
+import org.scalatest.Spec
+import org.scalatest.Assertions
+import org.scalatest.matchers.ShouldMatchers
+import org.scalatest.BeforeAndAfterAll
+import org.scalatest.junit.JUnitRunner
+import org.junit.runner.RunWith
+
+import se.scalablesolutions.akka.actor._
+
+@RunWith(classOf[JUnitRunner])
+class TransactionalTypedActorSpec extends
+ Spec with
+ ShouldMatchers with
+ BeforeAndAfterAll {
+
+ private var messageLog = ""
+
+ override def afterAll {
+// ActorRegistry.shutdownAll
+ }
+
+ describe("Declaratively supervised transactional in-memory Typed Actor ") {
+ it("map should not rollback state for stateful server in case of success") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setMapState("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "init")
+ stateful.success("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "new state")
+ stateful.getMapState("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess") should equal("new state")
+ }
+
+ it("map should rollback state for stateful server in case of failure") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure", "init")
+ val failer = TypedActor.newInstance(classOf[TypedActorFailer], classOf[TypedActorFailerImpl])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getMapState("testShouldRollbackStateForStatefulServerInCaseOfFailure") should equal("init")
+ }
+
+ it("vector should not rollback state for stateful server in case of success") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setVectorState("init") // set init state
+ stateful.success("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "new state")
+ stateful.getVectorState should equal("new state")
+ }
+
+ it("vector should rollback state for stateful server in case of failure") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setVectorState("init") // set init state
+ val failer = TypedActor.newInstance(classOf[TypedActorFailer], classOf[TypedActorFailerImpl])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getVectorState should equal("init")
+ }
+
+ it("ref should not rollback state for stateful server in case of success") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setRefState("init") // set init state
+ stateful.success("testShouldNotRollbackStateForStatefulServerInCaseOfSuccess", "new state")
+ stateful.getRefState should equal("new state")
+ }
+
+ it("ref should rollback state for stateful server in case of failure") {
+ val stateful = TypedActor.newInstance(classOf[TransactionalTypedActor], classOf[TransactionalTypedActorImpl])
+ stateful.setRefState("init") // set init state
+ val failer = TypedActor.newInstance(classOf[TypedActorFailer], classOf[TypedActorFailerImpl])
+ try {
+ stateful.failure("testShouldRollbackStateForStatefulServerInCaseOfFailure", "new state", failer)
+ fail("should have thrown an exception")
+ } catch { case e => {} }
+ stateful.getRefState should equal("init")
+ }
+ }
+}
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorContextSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorContextSpec.scala
new file mode 100644
index 0000000000..adc0879c84
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorContextSpec.scala
@@ -0,0 +1,38 @@
+/**
+ * Copyright (C) 2009-2010 Scalable Solutions AB
+ */
+
+package se.scalablesolutions.akka.actor
+
+import org.scalatest.Spec
+import org.scalatest.Assertions
+import org.scalatest.matchers.ShouldMatchers
+import org.scalatest.BeforeAndAfterAll
+import org.scalatest.junit.JUnitRunner
+import org.junit.runner.RunWith
+
+import se.scalablesolutions.akka.dispatch.DefaultCompletableFuture;
+
+@RunWith(classOf[JUnitRunner])
+class TypedActorContextSpec extends
+ Spec with
+ ShouldMatchers with
+ BeforeAndAfterAll {
+
+ describe("TypedActorContext") {
+ it("context.sender should return the sender TypedActor reference") {
+ val pojo = TypedActor.newInstance(classOf[SimpleJavaPojo], classOf[SimpleJavaPojoImpl])
+ val pojoCaller = TypedActor.newInstance(classOf[SimpleJavaPojoCaller], classOf[SimpleJavaPojoCallerImpl])
+ pojoCaller.setPojo(pojo)
+ pojoCaller.getSenderFromSimpleJavaPojo.isInstanceOf[Option[_]] should equal (true)
+ pojoCaller.getSenderFromSimpleJavaPojo.asInstanceOf[Option[_]].isDefined should equal (true)
+ pojoCaller.getSenderFromSimpleJavaPojo.asInstanceOf[Option[_]].get should equal (pojoCaller)
+ }
+ it("context.senderFuture should return the senderFuture TypedActor reference") {
+ val pojo = TypedActor.newInstance(classOf[SimpleJavaPojo], classOf[SimpleJavaPojoImpl])
+ val pojoCaller = TypedActor.newInstance(classOf[SimpleJavaPojoCaller], classOf[SimpleJavaPojoCallerImpl])
+ pojoCaller.setPojo(pojo)
+ pojoCaller.getSenderFutureFromSimpleJavaPojo.getClass.getName should equal (classOf[DefaultCompletableFuture[_]].getName)
+ }
+ }
+}
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorGuiceConfiguratorSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorGuiceConfiguratorSpec.scala
new file mode 100644
index 0000000000..d076ec52cf
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorGuiceConfiguratorSpec.scala
@@ -0,0 +1,131 @@
+/**
+ * Copyright (C) 2009-2010 Scalable Solutions AB
+ */
+
+package se.scalablesolutions.akka.actor
+
+import com.google.inject.AbstractModule
+import com.google.inject.Scopes
+
+import org.scalatest.Spec
+import org.scalatest.Assertions
+import org.scalatest.matchers.ShouldMatchers
+import org.scalatest.BeforeAndAfterAll
+import org.scalatest.junit.JUnitRunner
+import org.junit.runner.RunWith
+
+import se.scalablesolutions.akka.config.Config
+import se.scalablesolutions.akka.config.TypedActorConfigurator
+import se.scalablesolutions.akka.config.JavaConfig._
+import se.scalablesolutions.akka.dispatch._
+import se.scalablesolutions.akka.dispatch.FutureTimeoutException
+
+@RunWith(classOf[JUnitRunner])
+class TypedActorGuiceConfiguratorSpec extends
+ Spec with
+ ShouldMatchers with
+ BeforeAndAfterAll {
+
+ private val conf = new TypedActorConfigurator
+ private var messageLog = ""
+
+ override def beforeAll {
+ Config.config
+ val dispatcher = Dispatchers.newExecutorBasedEventDrivenDispatcher("test")
+
+ conf.addExternalGuiceModule(new AbstractModule {
+ def configure = bind(classOf[Ext]).to(classOf[ExtImpl]).in(Scopes.SINGLETON)
+ }).configure(
+ new RestartStrategy(new AllForOne, 3, 5000, List(classOf[Exception]).toArray),
+ List(
+ new Component(
+ classOf[Foo],
+ classOf[FooImpl],
+ new LifeCycle(new Permanent),
+ 1000,
+ dispatcher),
+ new Component(
+ classOf[Bar],
+ classOf[BarImpl],
+ new LifeCycle(new Permanent),
+ 1000,
+ dispatcher)
+ ).toArray).inject.supervise
+
+ }
+
+ override def afterAll = conf.stop
+
+ describe("TypedActorGuiceConfigurator") {
+/*
+ it("should inject typed actor using guice") {
+ messageLog = ""
+ val foo = conf.getInstance(classOf[Foo])
+ val bar = conf.getInstance(classOf[Bar])
+ bar should equal(foo.getBar)
+ }
+
+ it("should inject external dependency using guice") {
+ messageLog = ""
+ val bar = conf.getInstance(classOf[Bar])
+ val ext = conf.getExternalDependency(classOf[Ext])
+ ext.toString should equal(bar.getExt.toString)
+ }
+
+ it("should lookup non-supervised instance") {
+ try {
+ val str = conf.getInstance(classOf[String])
+ fail("exception should have been thrown")
+ } catch {
+ case e: Exception =>
+ classOf[IllegalStateException] should equal(e.getClass)
+ }
+ }
+
+ it("should be able to invoke typed actor") {
+ messageLog = ""
+ val foo = conf.getInstance(classOf[Foo])
+ messageLog += foo.foo("foo ")
+ foo.bar("bar ")
+ messageLog += "before_bar "
+ Thread.sleep(500)
+ messageLog should equal("foo return_foo before_bar ")
+ }
+
+ it("should be able to invoke typed actor's invocation") {
+ messageLog = ""
+ val foo = conf.getInstance(classOf[Foo])
+ val bar = conf.getInstance(classOf[Bar])
+ messageLog += foo.foo("foo ")
+ foo.bar("bar ")
+ messageLog += "before_bar "
+ Thread.sleep(500)
+ messageLog should equal("foo return_foo before_bar ")
+ }
+
+ it("should throw FutureTimeoutException on time-out") {
+ messageLog = ""
+ val foo = conf.getInstance(classOf[Foo])
+ try {
+ foo.longRunning
+ fail("exception should have been thrown")
+ } catch {
+ case e: FutureTimeoutException =>
+ classOf[FutureTimeoutException] should equal(e.getClass)
+ }
+ }
+
+ it("should propagate exception") {
+ messageLog = ""
+ val foo = conf.getInstance(classOf[Foo])
+ try {
+ foo.throwsException
+ fail("exception should have been thrown")
+ } catch {
+ case e: RuntimeException =>
+ classOf[RuntimeException] should equal(e.getClass)
+ }
+ }
+ */
+ }
+}
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorLifecycleSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorLifecycleSpec.scala
new file mode 100644
index 0000000000..10fc40493b
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorLifecycleSpec.scala
@@ -0,0 +1,169 @@
+package se.scalablesolutions.akka.actor
+
+import org.junit.runner.RunWith
+import org.scalatest.{BeforeAndAfterAll, Spec}
+import org.scalatest.junit.JUnitRunner
+import org.scalatest.matchers.ShouldMatchers
+
+import se.scalablesolutions.akka.actor.TypedActor._
+
+import se.scalablesolutions.akka.config.{OneForOneStrategy, TypedActorConfigurator}
+import se.scalablesolutions.akka.config.JavaConfig._
+
+import java.util.concurrent.CountDownLatch
+
+/**
+ * @author Martin Krasser
+ */
+@RunWith(classOf[JUnitRunner])
+class TypedActorLifecycleSpec extends Spec with ShouldMatchers with BeforeAndAfterAll {
+ var conf1: TypedActorConfigurator = _
+ var conf2: TypedActorConfigurator = _
+
+ override protected def beforeAll() = {
+ val strategy = new RestartStrategy(new AllForOne(), 3, 1000, Array(classOf[Exception]))
+ val comp3 = new Component(classOf[SamplePojo], classOf[SamplePojoImpl], new LifeCycle(new Permanent()), 1000)
+ val comp4 = new Component(classOf[SamplePojo], classOf[SamplePojoImpl], new LifeCycle(new Temporary()), 1000)
+ conf1 = new TypedActorConfigurator().configure(strategy, Array(comp3)).supervise
+ conf2 = new TypedActorConfigurator().configure(strategy, Array(comp4)).supervise
+ }
+
+ override protected def afterAll() = {
+ conf1.stop
+ conf2.stop
+ }
+
+ describe("TypedActor lifecycle management") {
+ it("should restart supervised, non-annotated typed actor on failure") {
+ SamplePojoImpl.reset
+ val obj = conf1.getInstance[SamplePojo](classOf[SamplePojo])
+ val cdl = new CountDownLatch(2)
+ SamplePojoImpl.latch = cdl
+ assert(AspectInitRegistry.initFor(obj) ne null)
+ try {
+ obj.fail
+ fail("expected exception not thrown")
+ } catch {
+ case e: RuntimeException => {
+ cdl.await
+ assert(SamplePojoImpl._pre)
+ assert(SamplePojoImpl._post)
+ assert(!SamplePojoImpl._down)
+// assert(AspectInitRegistry.initFor(obj) ne null)
+ }
+ }
+ }
+
+ it("should shutdown supervised, non-annotated typed actor on failure") {
+ SamplePojoImpl.reset
+ val obj = conf2.getInstance[SamplePojo](classOf[SamplePojo])
+ val cdl = new CountDownLatch(1)
+ SamplePojoImpl.latch = cdl
+ assert(AspectInitRegistry.initFor(obj) ne null)
+ try {
+ obj.fail
+ fail("expected exception not thrown")
+ } catch {
+ case e: RuntimeException => {
+ cdl.await
+ assert(!SamplePojoImpl._pre)
+ assert(!SamplePojoImpl._post)
+ assert(SamplePojoImpl._down)
+ // assert(AspectInitRegistry.initFor(obj) eq null)
+ }
+ }
+ }
+
+ it("should shutdown non-supervised, non-initialized typed actor on TypedActor.stop") {
+ SamplePojoImpl.reset
+ val obj = TypedActor.newInstance(classOf[SamplePojo], classOf[SamplePojoImpl])
+ TypedActor.stop(obj)
+ assert(!SamplePojoImpl._pre)
+ assert(!SamplePojoImpl._post)
+ assert(SamplePojoImpl._down)
+ }
+
+ it("both preRestart and postRestart methods should be invoked when an actor is restarted") {
+ SamplePojoImpl.reset
+ val pojo = TypedActor.newInstance(classOf[SimpleJavaPojo], classOf[SimpleJavaPojoImpl])
+ val supervisor = TypedActor.newInstance(classOf[SimpleJavaPojo], classOf[SimpleJavaPojoImpl])
+ link(supervisor, pojo, new OneForOneStrategy(3, 2000), Array(classOf[Throwable]))
+ pojo.throwException
+ Thread.sleep(500)
+ SimpleJavaPojoImpl._pre should be(true)
+ SimpleJavaPojoImpl._post should be(true)
+ }
+
+ /*
+ it("should shutdown non-supervised, annotated typed actor on TypedActor.stop") {
+ val obj = TypedActor.newInstance(classOf[SamplePojoAnnotated])
+ assert(AspectInitRegistry.initFor(obj) ne null)
+ assert("hello akka" === obj.greet("akka"))
+ TypedActor.stop(obj)
+ assert(AspectInitRegistry.initFor(obj) eq null)
+ assert(!obj.pre)
+ assert(!obj.post)
+ assert(obj.down)
+ try {
+ obj.greet("akka")
+ fail("access to stopped typed actor")
+ } catch {
+ case e: Exception => {}
+ }
+ }
+
+ it("should shutdown non-supervised, annotated typed actor on ActorRegistry.shutdownAll") {
+ val obj = TypedActor.newInstance(classOf[SamplePojoAnnotated])
+ assert(AspectInitRegistry.initFor(obj) ne null)
+ assert("hello akka" === obj.greet("akka"))
+ ActorRegistry.shutdownAll
+ assert(AspectInitRegistry.initFor(obj) eq null)
+ assert(!obj.pre)
+ assert(!obj.post)
+ assert(obj.down)
+ try {
+ obj.greet("akka")
+ fail("access to stopped typed actor")
+ } catch {
+ case e: Exception => { }
+ }
+ }
+
+ it("should restart supervised, annotated typed actor on failure") {
+ val obj = conf1.getInstance[SamplePojoAnnotated](classOf[SamplePojoAnnotated])
+ val cdl = obj.newCountdownLatch(2)
+ assert(AspectInitRegistry.initFor(obj) ne null)
+ try {
+ obj.fail
+ fail("expected exception not thrown")
+ } catch {
+ case e: RuntimeException => {
+ cdl.await
+ assert(obj.pre)
+ assert(obj.post)
+ assert(!obj.down)
+ assert(AspectInitRegistry.initFor(obj) ne null)
+ }
+ }
+ }
+
+ it("should shutdown supervised, annotated typed actor on failure") {
+ val obj = conf2.getInstance[SamplePojoAnnotated](classOf[SamplePojoAnnotated])
+ val cdl = obj.newCountdownLatch(1)
+ assert(AspectInitRegistry.initFor(obj) ne null)
+ try {
+ obj.fail
+ fail("expected exception not thrown")
+ } catch {
+ case e: RuntimeException => {
+ cdl.await
+ assert(!obj.pre)
+ assert(!obj.post)
+ assert(obj.down)
+ assert(AspectInitRegistry.initFor(obj) eq null)
+ }
+ }
+ }
+ */
+ }
+}
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorSpec.scala
new file mode 100644
index 0000000000..7de0a8f5df
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorSpec.scala
@@ -0,0 +1,31 @@
+/**
+ * Copyright (C) 2009-2010 Scalable Solutions AB
+ */
+
+package se.scalablesolutions.akka.actor
+
+import org.scalatest.Spec
+import org.scalatest.Assertions
+import org.scalatest.matchers.ShouldMatchers
+import org.scalatest.BeforeAndAfterAll
+import org.scalatest.junit.JUnitRunner
+import org.junit.runner.RunWith
+
+import se.scalablesolutions.akka.dispatch.DefaultCompletableFuture;
+
+@RunWith(classOf[JUnitRunner])
+class TypedActorSpec extends
+ Spec with
+ ShouldMatchers with
+ BeforeAndAfterAll {
+
+ describe("TypedActor") {
+ it("should resolve Future return from method defined to return a Future") {
+ val pojo = TypedActor.newInstance(classOf[SimpleJavaPojo], classOf[SimpleJavaPojoImpl])
+ val future = pojo.square(10)
+ future.await
+ future.result.isDefined should equal (true)
+ future.result.get should equal (100)
+ }
+ }
+}
diff --git a/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorUtilFunctionsSpec.scala b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorUtilFunctionsSpec.scala
new file mode 100644
index 0000000000..48424f3c17
--- /dev/null
+++ b/akka-typed-actors/src/test/scala/actor/typed-actor/TypedActorUtilFunctionsSpec.scala
@@ -0,0 +1,23 @@
+package se.scalablesolutions.akka.actor
+
+import org.scalatest.Suite
+import org.junit.runner.RunWith
+import org.scalatest.junit.JUnitRunner
+import org.scalatest.matchers.MustMatchers
+import org.junit.{Before, After, Test}
+import java.util.concurrent.{ CountDownLatch, TimeUnit }
+
+@RunWith(classOf[JUnitRunner])
+class ActorObjectUtilFunctionsSpec extends junit.framework.TestCase with Suite with MustMatchers {
+ import Actor._
+ @Test def testSpawn = {
+ val latch = new CountDownLatch(1)
+
+ spawn {
+ latch.countDown
+ }
+
+ val done = latch.await(10,TimeUnit.SECONDS)
+ done must be (true)
+ }
+}
diff --git a/project/build/AkkaProject.scala b/project/build/AkkaProject.scala
index a06e5ec3d8..e6c243c201 100644
--- a/project/build/AkkaProject.scala
+++ b/project/build/AkkaProject.scala
@@ -216,17 +216,19 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) {
// Subprojects
// -------------------------------------------------------------------------------------------------------------------
- lazy val akka_core = project("akka-core", "akka-core", new AkkaCoreProject(_))
- lazy val akka_amqp = project("akka-amqp", "akka-amqp", new AkkaAMQPProject(_), akka_core)
- lazy val akka_http = project("akka-http", "akka-http", new AkkaHttpProject(_), akka_core, akka_camel)
- lazy val akka_camel = project("akka-camel", "akka-camel", new AkkaCamelProject(_), akka_core)
- lazy val akka_persistence = project("akka-persistence", "akka-persistence", new AkkaPersistenceParentProject(_))
- lazy val akka_spring = project("akka-spring", "akka-spring", new AkkaSpringProject(_), akka_core, akka_camel)
- lazy val akka_jta = project("akka-jta", "akka-jta", new AkkaJTAProject(_), akka_core)
- lazy val akka_kernel = project("akka-kernel", "akka-kernel", new AkkaKernelProject(_),
- akka_core, akka_http, akka_spring, akka_camel, akka_persistence, akka_amqp)
- lazy val akka_osgi = project("akka-osgi", "akka-osgi", new AkkaOSGiParentProject(_))
- lazy val akka_samples = project("akka-samples", "akka-samples", new AkkaSamplesParentProject(_))
+ lazy val akka_actors = project("akka-actors", "akka-actors", new AkkaCoreProject(_))
+ lazy val akka_typed_actors = project("akka-typed-actors", "akka-typed-actors", new AkkaCoreProject(_), akka_actors)
+ lazy val akka_core = project("akka-core", "akka-core", new AkkaCoreProject(_), akka_typed_actors)
+ lazy val akka_amqp = project("akka-amqp", "akka-amqp", new AkkaAMQPProject(_), akka_core)
+ lazy val akka_http = project("akka-http", "akka-http", new AkkaHttpProject(_), akka_core, akka_camel)
+ lazy val akka_camel = project("akka-camel", "akka-camel", new AkkaCamelProject(_), akka_core)
+ lazy val akka_persistence = project("akka-persistence", "akka-persistence", new AkkaPersistenceParentProject(_))
+ lazy val akka_spring = project("akka-spring", "akka-spring", new AkkaSpringProject(_), akka_core, akka_camel)
+ lazy val akka_jta = project("akka-jta", "akka-jta", new AkkaJTAProject(_), akka_core)
+ lazy val akka_kernel = project("akka-kernel", "akka-kernel", new AkkaKernelProject(_),
+ akka_core, akka_http, akka_spring, akka_camel, akka_persistence, akka_amqp)
+ lazy val akka_osgi = project("akka-osgi", "akka-osgi", new AkkaOSGiParentProject(_))
+ lazy val akka_samples = project("akka-samples", "akka-samples", new AkkaSamplesParentProject(_))
// -------------------------------------------------------------------------------------------------------------------
// Miscellaneous
@@ -307,53 +309,71 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) {
- // publish to local mvn
- import Process._
- lazy val publishLocalMvn = runMvnInstall
- def runMvnInstall = task {
- for (absPath <- akkaArtifacts.getPaths) {
- val artifactRE = """(.*)/dist/(.*)-(.*).jar""".r
- val artifactRE(path, artifactId, artifactVersion) = absPath
- val command = "mvn install:install-file" +
- " -Dfile=" + absPath +
- " -DgroupId=se.scalablesolutions.akka" +
- " -DartifactId=" + artifactId +
- " -Dversion=" + version +
- " -Dpackaging=jar -DgeneratePom=true"
- command ! log
- }
- None
- } dependsOn(dist) describedAs("Run mvn install for artifacts in dist.")
+ // publish to local mvn
+ import Process._
+ lazy val publishLocalMvn = runMvnInstall
+ def runMvnInstall = task {
+ for (absPath <- akkaArtifacts.getPaths) {
+ val artifactRE = """(.*)/dist/(.*)-(.*).jar""".r
+ val artifactRE(path, artifactId, artifactVersion) = absPath
+ val command = "mvn install:install-file" +
+ " -Dfile=" + absPath +
+ " -DgroupId=se.scalablesolutions.akka" +
+ " -DartifactId=" + artifactId +
+ " -Dversion=" + version +
+ " -Dpackaging=jar -DgeneratePom=true"
+ command ! log
+ }
+ None
+ } dependsOn(dist) describedAs("Run mvn install for artifacts in dist.")
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // akka-actors subproject
+ // -------------------------------------------------------------------------------------------------------------------
+
+ class AkkaActorsProject(info: ProjectInfo) extends AkkaDefaultProject(info, distPath) {
+ val configgy = Dependencies.configgy
+ val hawtdispatch = Dependencies.hawtdispatch
+ val multiverse = Dependencies.multiverse
+ val jsr166x = Dependencies.jsr166x
+ val slf4j = Dependencies.slf4j
+ val logback = Dependencies.logback
+ val logback_core = Dependencies.logback_core
+
+ // testing
+ val junit = Dependencies.junit
+ val scalatest = Dependencies.scalatest
+ }
+
+ class AkkaTypedActorsProject(info: ProjectInfo) extends AkkaDefaultProject(info, distPath) {
+ val aopalliance = Dependencies.aopalliance
+ val werkz = Dependencies.werkz
+ val werkz_core = Dependencies.werkz_core
+
+ // testing
+ val junit = Dependencies.junit
+ val scalatest = Dependencies.scalatest
+ }
// -------------------------------------------------------------------------------------------------------------------
// akka-core subproject
// -------------------------------------------------------------------------------------------------------------------
class AkkaCoreProject(info: ProjectInfo) extends AkkaDefaultProject(info, distPath) {
- val aopalliance = Dependencies.aopalliance
val commons_codec = Dependencies.commons_codec
val commons_io = Dependencies.commons_io
- val configgy = Dependencies.configgy
val dispatch_http = Dependencies.dispatch_http
val dispatch_json = Dependencies.dispatch_json
val guicey = Dependencies.guicey
val h2_lzf = Dependencies.h2_lzf
- val hawtdispatch = Dependencies.hawtdispatch
val jackson = Dependencies.jackson
val jackson_core = Dependencies.jackson_core
val jgroups = Dependencies.jgroups
- val jsr166x = Dependencies.jsr166x
val jta_1_1 = Dependencies.jta_1_1
- val multiverse = Dependencies.multiverse
val netty = Dependencies.netty
val protobuf = Dependencies.protobuf
val sbinary = Dependencies.sbinary
val sjson = Dependencies.sjson
- val werkz = Dependencies.werkz
- val werkz_core = Dependencies.werkz_core
- val slf4j = Dependencies.slf4j
- val logback = Dependencies.logback
- val logback_core = Dependencies.logback_core
// testing
val junit = Dependencies.junit