| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.apache.gearpump.streaming |
| |
| import org.apache.gearpump.streaming.partitioner._ |
| |
| object Constants { |
| |
| val GEARPUMP_STREAMING_OPERATOR = "gearpump.streaming.dsl.operator" |
| val GEARPUMP_STREAMING_SOURCE = "gearpump.streaming.source" |
| val GEARPUMP_STREAMING_GROUPBY_FUNCTION = "gearpump.streaming.dsl.groupby-function" |
| val GEARPUMP_STREAMING_WINDOW_FUNCTION = "gearpump.streaming.dsl.window-function" |
| |
| val GEARPUMP_STREAMING_LOCALITIES = "gearpump.streaming.localities" |
| |
| val GEARPUMP_STREAMING_REGISTER_TASK_TIMEOUT_MS = "gearpump.streaming.register-task-timeout-ms" |
| |
| val GEARPUMP_STREAMING_MAX_PENDING_MESSAGE_COUNT = |
| "gearpump.streaming.max-pending-message-count-per-connection" |
| |
| val GEARPUMP_STREAMING_ACK_ONCE_EVERY_MESSAGE_COUNT = |
| "gearpump.streaming.ack-once-every-message-count" |
| |
| val GEARPUMP_STREAMING_EXECUTOR_RESTART_TIME_WINDOW = |
| "gearpump.streaming.executor-restart-time-window" |
| |
| // The partitioners provided by Gearpump |
| val BUILTIN_PARTITIONERS = Array( |
| classOf[BroadcastPartitioner], |
| classOf[CoLocationPartitioner], |
| classOf[HashPartitioner], |
| classOf[ShuffleGroupingPartitioner], |
| classOf[ShufflePartitioner]) |
| } |