Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/incubator-flink/pull/283#discussion_r22514865
--- Diff:
flink-runtime/src/main/scala/org/apache/flink/runtime/messages/TaskManagerMessages.scala
---
@@ -113,4 +114,28 @@ object TaskManagerMessages {
* @param cause reason for the external failure
*/
case class FailTask(executionID: ExecutionAttemptID, cause: Throwable)
+
+ //
--------------------------------------------------------------------------
+ // Utility methods to allow simpler case object access from Java
+ //
--------------------------------------------------------------------------
+
+ def getNotifyWhenRegisteredAtJobManagerMessage() : AnyRef = {
+ NotifyWhenRegisteredAtJobManager
+ }
+
+ def getRegisteredAtJobManagerMessage() : AnyRef = {
+ RegisteredAtJobManager
+ }
+
+ def getRegisterAtJobManagerMessage() : AnyRef = {
+ RegisterAtJobManager
+ }
+
+ def getSendHeartbeatMessage() : AnyRef = {
+ SendHeartbeat
+ }
+
+ def getLogMemoryUsageMessage() : AnyRef = {
+ RegisteredAtJobManager
+ }
--- End diff --
I thought that when I drop the parenthesis, it compiles to a variable, not
a static function. It makes no difference for Scala, but for Java accessing it.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---