2009-08-13 22:55:39 +05:30
|
|
|
####################
|
|
|
|
|
# Akka Config File #
|
|
|
|
|
####################
|
2009-08-14 00:05:02 +02:00
|
|
|
|
2009-11-11 14:17:18 +00:00
|
|
|
# This file has all the default settings, so all these could be removed with no visible effect.
|
2009-08-13 22:55:39 +05:30
|
|
|
# Modify as needed.
|
2009-08-14 00:05:02 +02:00
|
|
|
|
2009-08-13 22:55:39 +05:30
|
|
|
<log>
|
2009-08-14 00:05:02 +02:00
|
|
|
filename = "./logs/akka.log"
|
2009-09-30 20:08:55 +02:00
|
|
|
roll = "daily" # Options: never, hourly, daily, sunday/monday/...
|
2009-08-14 00:05:02 +02:00
|
|
|
level = "debug" # Options: fatal, critical, error, warning, info, debug, trace
|
2009-08-13 22:55:39 +05:30
|
|
|
console = on
|
|
|
|
|
# syslog_host = ""
|
|
|
|
|
# syslog_server_name = ""
|
|
|
|
|
</log>
|
2009-08-14 00:05:02 +02:00
|
|
|
|
2009-08-13 22:55:39 +05:30
|
|
|
<akka>
|
2009-08-14 00:05:02 +02:00
|
|
|
version = "0.6"
|
|
|
|
|
|
2009-09-30 20:08:55 +02:00
|
|
|
# FQN to the class doing initial active object/actor
|
|
|
|
|
# supervisor bootstrap, should be defined in default constructor
|
2009-12-21 21:12:44 +01:00
|
|
|
boot = ["sample.java.Boot",
|
|
|
|
|
"sample.scala.Boot",
|
2009-12-30 08:36:24 +01:00
|
|
|
"se.scalablesolutions.akka.security.samples.Boot"]
|
2009-09-30 20:08:55 +02:00
|
|
|
|
2009-08-13 22:55:39 +05:30
|
|
|
<actor>
|
2009-11-22 14:32:27 +01:00
|
|
|
timeout = 5000 # default timeout for future based invocations
|
|
|
|
|
serialize-messages = off # does a deep clone of (non-primitive) messages to ensure immutability
|
2009-08-13 22:55:39 +05:30
|
|
|
</actor>
|
2009-08-14 00:05:02 +02:00
|
|
|
|
2009-08-13 22:55:39 +05:30
|
|
|
<stm>
|
|
|
|
|
service = on
|
2009-11-30 10:11:52 +01:00
|
|
|
max-nr-of-retries = 100
|
2009-11-22 14:32:27 +01:00
|
|
|
distributed = off # not implemented yet
|
2009-08-13 22:55:39 +05:30
|
|
|
</stm>
|
2009-08-14 00:05:02 +02:00
|
|
|
|
2009-12-27 06:35:25 +01:00
|
|
|
<rest>
|
|
|
|
|
service = on
|
|
|
|
|
hostname = "localhost"
|
|
|
|
|
port = 9998
|
2010-01-03 19:31:20 +01:00
|
|
|
filters = ["se.scalablesolutions.akka.security.AkkaSecurityFilterFactory"] # List with all jersey filters to use
|
2009-12-27 06:35:25 +01:00
|
|
|
authenticator = "se.scalablesolutions.akka.security.samples.BasicAuthenticationService" # The authentication service to use
|
|
|
|
|
</rest>
|
|
|
|
|
|
2009-08-13 22:55:39 +05:30
|
|
|
<remote>
|
2009-11-22 14:32:27 +01:00
|
|
|
compression-scheme = "zlib" # Options: "zlib" (lzf to come), leave out for no compression
|
|
|
|
|
zlib-compression-level = 6 # Options: 0-9 (1 being fastest and 9 being the most compressed), default is 6
|
|
|
|
|
|
2009-12-21 21:12:44 +01:00
|
|
|
<cluster>
|
2009-12-26 22:14:06 +01:00
|
|
|
name = "default" # The name of the cluster
|
2010-01-27 23:41:15 +01:00
|
|
|
#actor = "se.scalablesolutions.akka.remote.JGroupsClusterActor" # FQN of an implementation of ClusterActor
|
2009-12-27 22:56:55 +01:00
|
|
|
serializer = "se.scalablesolutions.akka.serialization.Serializer$Java" # FQN of the serializer class
|
2009-12-12 17:52:23 +01:00
|
|
|
</cluster>
|
2009-12-13 15:40:01 +01:00
|
|
|
|
2009-12-12 17:52:23 +01:00
|
|
|
<server>
|
2009-10-22 11:14:36 +02:00
|
|
|
service = on
|
|
|
|
|
hostname = "localhost"
|
2009-12-13 15:40:32 +01:00
|
|
|
port = 9999
|
2009-10-22 11:14:36 +02:00
|
|
|
connection-timeout = 1000 # in millis (1 sec default)
|
|
|
|
|
<server>
|
2009-11-22 14:32:27 +01:00
|
|
|
|
2009-10-22 11:14:36 +02:00
|
|
|
<client>
|
|
|
|
|
reconnect-delay = 5000 # in millis (5 sec default)
|
|
|
|
|
read-timeout = 10000 # in millis (10 sec default)
|
|
|
|
|
<client>
|
2009-08-13 22:55:39 +05:30
|
|
|
</remote>
|
2009-08-14 00:05:02 +02:00
|
|
|
|
2009-08-13 22:55:39 +05:30
|
|
|
<storage>
|
|
|
|
|
<cassandra>
|
2009-08-14 00:05:02 +02:00
|
|
|
hostname = "127.0.0.1" # IP address or hostname of one of the Cassandra cluster's seeds
|
2009-08-13 22:55:39 +05:30
|
|
|
port = 9160
|
2009-10-17 00:37:56 +02:00
|
|
|
storage-format = "scala-json" # Options: java, scala-json, java-json, protobuf
|
2009-10-30 21:45:39 +01:00
|
|
|
consistency-level = "QUORUM" # Options: ZERO, ONE, QUORUM, ALL
|
2009-08-13 22:55:39 +05:30
|
|
|
</cassandra>
|
2009-11-22 14:32:27 +01:00
|
|
|
|
2009-08-13 22:55:39 +05:30
|
|
|
<mongodb>
|
2009-08-14 00:05:02 +02:00
|
|
|
hostname = "127.0.0.1" # IP address or hostname of the MongoDB DB instance
|
2009-08-13 22:55:39 +05:30
|
|
|
port = 27017
|
|
|
|
|
dbname = "mydb"
|
|
|
|
|
</mongodb>
|
2009-12-24 12:20:39 +05:30
|
|
|
|
|
|
|
|
<redis>
|
|
|
|
|
hostname = "127.0.0.1" # IP address or hostname of the Redis instance
|
2009-12-24 12:47:17 +05:30
|
|
|
port = 6379
|
2009-12-24 12:20:39 +05:30
|
|
|
</redis>
|
2009-08-13 22:55:39 +05:30
|
|
|
</storage>
|
|
|
|
|
</akka>
|