SLIDER-302 Add a provider startup event...need to think through how best to use 
this


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/b7b9a158
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/b7b9a158
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/b7b9a158

Branch: refs/heads/feature/SLIDER-149_Support_a_YARN_service_registry
Commit: b7b9a158b7f7da3c4deb5009eb48c3a8a301838b
Parents: 8f777f3
Author: Steve Loughran <ste...@apache.org>
Authored: Fri Aug 8 19:15:58 2014 +0100
Committer: Steve Loughran <ste...@apache.org>
Committed: Fri Aug 8 19:16:30 2014 +0100

----------------------------------------------------------------------
 .../actions/ProviderStartupCompleted.java       | 37 ++++++++++++++++++++
 1 file changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/b7b9a158/slider-core/src/main/java/org/apache/slider/server/appmaster/actions/ProviderStartupCompleted.java
----------------------------------------------------------------------
diff --git 
a/slider-core/src/main/java/org/apache/slider/server/appmaster/actions/ProviderStartupCompleted.java
 
b/slider-core/src/main/java/org/apache/slider/server/appmaster/actions/ProviderStartupCompleted.java
new file mode 100644
index 0000000..293492f
--- /dev/null
+++ 
b/slider-core/src/main/java/org/apache/slider/server/appmaster/actions/ProviderStartupCompleted.java
@@ -0,0 +1,37 @@
+/*
+ * 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.slider.server.appmaster.actions;
+
+import org.apache.slider.server.appmaster.SliderAppMaster;
+
+public class ProviderStartupCompleted extends AsyncAction {
+
+  public ProviderStartupCompleted() {
+    super("ProviderStartupCompleted");
+  }
+
+  public ProviderStartupCompleted(int delayMillis) {
+    super("ProviderStartupCompleted", delayMillis);
+  }
+
+  @Override
+  public void execute(SliderAppMaster appMaster) throws Exception {
+    appMaster.eventCallbackEvent(null);
+  }
+}

Reply via email to