summaryrefslogtreecommitdiff
path: root/hadoop-hdfs-project/hadoop-hdfs/src/main
diff options
context:
space:
mode:
authorXiaoyu Yao <xyao@apache.org>2018-04-10 11:28:52 -0700
committerOwen O'Malley <omalley@apache.org>2018-04-26 05:36:04 -0700
commit25f2398bbdaac5ad3c259089f23abb6f3f1d25a2 (patch)
tree78fb613fdb4b23aa47544b2d416fae3116da4c93 /hadoop-hdfs-project/hadoop-hdfs/src/main
parent0ec88ea42be7178d5fbc832ac393ded6c2aca8c8 (diff)
HDFS-13395. Ozone: Plugins support in HDSL Datanode Service. Contributed by Nanda Kumar.
Diffstat (limited to 'hadoop-hdfs-project/hadoop-hdfs/src/main')
-rw-r--r--hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNodeServicePlugin.java48
1 files changed, 0 insertions, 48 deletions
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNodeServicePlugin.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNodeServicePlugin.java
deleted file mode 100644
index 08aae8ba0b..0000000000
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNodeServicePlugin.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * 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.hadoop.hdfs.server.datanode;
-
-import org.apache.hadoop.hdfs.protocol.DatanodeID;
-import org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration;
-import org.apache.hadoop.util.ServicePlugin;
-
-/**
- * Datanode specific service plugin with additional hooks.
- */
-public interface DataNodeServicePlugin extends ServicePlugin{
-
- /**
- * Extension point to modify the datanode id.
- *
- * @param dataNodeId
- */
- default void onDatanodeIdCreation(DatanodeID dataNodeId) {
- //NOOP
- }
-
- /**
- * Extension point to modify the datanode id.
- *
- * @param dataNodeId
- */
- default void onDatanodeSuccessfulNamenodeRegisration(
- DatanodeRegistration dataNodeId) {
- //NOOP
- }
-}