@@ -0,0 +1,3286 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.apache.flink.runtime.entrypoint;%0A%0Aimport org.apache.flink.configuration.Configuration;%0Aimport org.apache.flink.runtime.clusterframework.FlinkResourceManager;%0Aimport org.apache.flink.runtime.clusterframework.types.ResourceID;%0Aimport org.apache.flink.runtime.heartbeat.HeartbeatServices;%0Aimport org.apache.flink.runtime.highavailability.HighAvailabilityServices;%0Aimport org.apache.flink.runtime.metrics.MetricRegistry;%0Aimport org.apache.flink.runtime.resourcemanager.ResourceManager;%0Aimport org.apache.flink.runtime.resourcemanager.ResourceManagerConfiguration;%0Aimport org.apache.flink.runtime.resourcemanager.ResourceManagerRuntimeServices;%0Aimport org.apache.flink.runtime.resourcemanager.ResourceManagerRuntimeServicesConfiguration;%0Aimport org.apache.flink.runtime.resourcemanager.StandaloneResourceManager;%0Aimport org.apache.flink.runtime.rpc.FatalErrorHandler;%0Aimport org.apache.flink.runtime.rpc.RpcService;%0A%0A/**%0A * Entry point for the standalone session cluster.%0A */%0Apublic class StandaloneSessionClusterEntrypoint extends SessionClusterEntrypoint %7B%0A%0A%09@Override%0A%09protected ResourceManager%3C?%3E createResourceManager(%0A%09%09%09Configuration configuration,%0A%09%09%09ResourceID resourceId,%0A%09%09%09RpcService rpcService,%0A%09%09%09HighAvailabilityServices highAvailabilityServices,%0A%09%09%09HeartbeatServices heartbeatServices,%0A%09%09%09MetricRegistry metricRegistry,%0A%09%09%09FatalErrorHandler fatalErrorHandler) throws Exception %7B%0A%09%09final ResourceManagerConfiguration resourceManagerConfiguration = ResourceManagerConfiguration.fromConfiguration(configuration);%0A%09%09final ResourceManagerRuntimeServicesConfiguration resourceManagerRuntimeServicesConfiguration = ResourceManagerRuntimeServicesConfiguration.fromConfiguration(configuration);%0A%09%09final ResourceManagerRuntimeServices resourceManagerRuntimeServices = ResourceManagerRuntimeServices.fromConfiguration(%0A%09%09%09resourceManagerRuntimeServicesConfiguration,%0A%09%09%09highAvailabilityServices,%0A%09%09%09rpcService.getScheduledExecutor());%0A%0A%09%09return new StandaloneResourceManager(%0A%09%09%09rpcService,%0A%09%09%09FlinkResourceManager.RESOURCE_MANAGER_NAME,%0A%09%09%09resourceId,%0A%09%09%09resourceManagerConfiguration,%0A%09%09%09highAvailabilityServices,%0A%09%09%09heartbeatServices,%0A%09%09%09resourceManagerRuntimeServices.getSlotManager(),%0A%09%09%09metricRegistry,%0A%09%09%09resourceManagerRuntimeServices.getJobLeaderIdService(),%0A%09%09%09fatalErrorHandler);%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09StandaloneSessionClusterEntrypoint entrypoint = new StandaloneSessionClusterEntrypoint();%0A%0A%09%09entrypoint.startCluster(args);%0A%09%7D%0A%7D%0A

Add Flip-6 standalone session cluster entry point