[ https://issues.apache.org/jira/browse/BEAM-6872?focusedWorklogId=241837&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-241837 ]
ASF GitHub Bot logged work on BEAM-6872: ---------------------------------------- Author: ASF GitHub Bot Created on: 14/May/19 16:38 Start Date: 14/May/19 16:38 Worklog Time Spent: 10m Work Description: lukecwik commented on pull request #8104: [BEAM-6872] Add hook for user-defined JVM initialization in workers URL: https://github.com/apache/beam/pull/8104#discussion_r283894078 ########## File path: sdks/java/core/src/main/java/org/apache/beam/sdk/harness/JvmInitializer.java ########## @@ -0,0 +1,56 @@ +/* + * 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.beam.sdk.harness; + +import org.apache.beam.sdk.annotations.Experimental; +import org.apache.beam.sdk.options.PipelineOptions; + +/** + * A service interface for defining one-time initialization for Beam workers. + * + * <p>Beam workers will run every registered implementation's {@code onStartup} and {@code Review comment: ```suggestion * <p>During pipeline execution, {@code onStartup} and {@code beforeProcessing} will be invoked ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 241837) Time Spent: 6.5h (was: 6h 20m) > Add hook for user-defined JVM initialization in workers > ------------------------------------------------------- > > Key: BEAM-6872 > URL: https://issues.apache.org/jira/browse/BEAM-6872 > Project: Beam > Issue Type: New Feature > Components: runner-dataflow > Reporter: Brian Hulette > Assignee: Brian Hulette > Priority: Minor > Time Spent: 6.5h > Remaining Estimate: 0h > > Expose an interface for users to run some one-time initialization code when a > worker starts up. > This can be useful for things like overriding the Default ZoneRulesProvider, > or setting up custom SSL providers. -- This message was sent by Atlassian JIRA (v7.6.3#76005)