iota-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tonyfaust...@apache.org
Subject [18/31] incubator-iota git commit: Removed scalastyle in utils and jsonRecieverActor
Date Tue, 29 Nov 2016 23:29:17 GMT
Removed scalastyle in utils and jsonRecieverActor


Project: http://git-wip-us.apache.org/repos/asf/incubator-iota/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-iota/commit/bf4a2806
Tree: http://git-wip-us.apache.org/repos/asf/incubator-iota/tree/bf4a2806
Diff: http://git-wip-us.apache.org/repos/asf/incubator-iota/diff/bf4a2806

Branch: refs/heads/master
Commit: bf4a2806310a9dacea806dabacd7aa7243741948
Parents: 290d67b
Author: Shivansh <shiv4nsh@gmail.com>
Authored: Fri Nov 4 00:41:22 2016 +0530
Committer: Shivansh <shiv4nsh@gmail.com>
Committed: Fri Nov 4 00:41:22 2016 +0530

----------------------------------------------------------------------
 .../main/scala/org/apache/iota/fey/JsonReceiverActor.scala  | 1 -
 fey-core/src/main/scala/org/apache/iota/fey/Utils.scala     | 9 ++++++---
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/bf4a2806/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiverActor.scala
----------------------------------------------------------------------
diff --git a/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiverActor.scala b/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiverActor.scala
index 3fb5330..875009b 100644
--- a/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiverActor.scala
+++ b/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiverActor.scala
@@ -1,4 +1,3 @@
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with

http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/bf4a2806/fey-core/src/main/scala/org/apache/iota/fey/Utils.scala
----------------------------------------------------------------------
diff --git a/fey-core/src/main/scala/org/apache/iota/fey/Utils.scala b/fey-core/src/main/scala/org/apache/iota/fey/Utils.scala
index ff4e574..fda1a30 100644
--- a/fey-core/src/main/scala/org/apache/iota/fey/Utils.scala
+++ b/fey-core/src/main/scala/org/apache/iota/fey/Utils.scala
@@ -211,6 +211,9 @@ object CONFIG{
   val CONSOLE_APPENDER = "FEY-CONSOLE"
   val CONTROL_AWARE_MAILBOX = "akka.fey-dispatchers.control-aware-dispatcher"
 
+  val DEFAULT_MESSAGE = 500
+  val DEFAULT_PORT = 8080
+
   var CHECKPOINT_DIR = ""
   var JSON_REPOSITORY = ""
   var JSON_EXTENSION = ""
@@ -218,13 +221,13 @@ object CONFIG{
   var CHEKPOINT_ENABLED = true
   var LOG_LEVEL = ""
   var LOG_APPENDER = ""
-  var MESSAGES_PER_RESIZE:Int = 500
+  var MESSAGES_PER_RESIZE: Int = DEFAULT_MESSAGE
   var DYNAMIC_JAR_REPO = ""
   var DYNAMIC_JAR_FORCE_PULL = false
   var CUSTOM_DISPATCHERS: ConfigValue = null
   var MONITORING_ENABLED: Boolean = true
   var MONITORING_TYPE: String = "COMPLETE"
-  var PORT = 8080
+  var PORT = DEFAULT_PORT
   var URL_PATH = "localhost"
 
   def loadUserConfiguration(path: String) : Unit = {
@@ -325,4 +328,4 @@ case class NetworkAlreadyDefined(message:String)  extends Exception(message)
 case class IllegalPerformerCreation(message:String)  extends Exception(message)
 case class NetworkNotDefined(message:String)  extends Exception(message)
 case class CommandNotRecognized(message:String)  extends Exception(message)
-case class RestartEnsemble(message:String)  extends Exception(message)
\ No newline at end of file
+case class RestartEnsemble(message:String)  extends Exception(message)


Mime
View raw message