Skip to content

Commit

Permalink
Merge pull request linkedin#102 from jjyao/master
Browse files Browse the repository at this point in the history
Give a chance for DarkCanaryResponseHandler to initialize
  • Loading branch information
sungjuc committed Jun 17, 2015
2 parents 46d6c2e + 7c6243e commit 78c3652
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.6.98
version=0.6.99
defaultScalaVersion=2.10.3
targetScalaVersions=2.10.3
crossBuild=false
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,6 @@ class ResponseProcessorMBeanImpl(clientName: Option[String], serviceName: String

abstract class DarkCanaryResponseHandler()
{
def initialize() {}
def upstreamCallback(isDark: Boolean, requestId: UUID, request: Request[Any, Any], response: NorbertProtos.NorbertMessage);
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ class DarkCanaryChannelHandler extends Logging {
clientConfig.clientName,
serviceName
))

darkCanaryResponseHandler match {
case Some(responseHandler) => {
responseHandler.initialize()
}
case None =>
}
}
}
}
Expand Down

0 comments on commit 78c3652

Please sign in to comment.