• 大小: 38.81MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-29
  • 语言: Java
  • 标签: hadoop-eclip  

资源简介

压缩包内含hadoop-eclipse-plugin-2.8.5.jar,原汁原味,放心食用!

资源截图

代码片段和文件信息

/**
 * 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.eclipse;

import org.apache.hadoop.eclipse.servers.ServerRegistry;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

/**
 * The activator class controls the plug-in life cycle
 */
public class Activator extends AbstractUIPlugin {

  /**
   * The plug-in ID
   */
  public static final String PLUGIN_ID = “org.apache.hadoop.eclipse“;

  /**
   * The shared unique instance (singleton)
   */
  private static Activator plugin;

  /**
   * Constructor
   */
  public Activator() {
    synchronized (Activator.class) {
      if (plugin != null) {
        // Not a singleton!?
        throw new RuntimeException(“Activator for “ + PLUGIN_ID
            + “ is not a singleton“);
      }
      plugin = this;
    }
  }

  /* @inheritDoc */
  @Override
  public void start(BundleContext context) throws Exception {
    super.start(context);
  }

  /* @inheritDoc */
  @Override
  public void stop(BundleContext context) throws Exception {
    ServerRegistry.getInstance().dispose();
    plugin = null;
    super.stop(context);
  }

  /**
   * Returns the shared unique instance (singleton)
   * 
   * @return the shared unique instance (singleton)
   */
  public static Activator getDefault() {
    return plugin;
  }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-18 23:48  Hadoop-eclipse-plugin-master\
     文件         105  2018-10-18 23:48  Hadoop-eclipse-plugin-master\README.md
     文件       10525  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy.xml
     目录           0  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\
     文件        3443  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\hadoop-client-pom-template.xml
     文件        4661  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\hadoop-core-pom-template.xml
     文件        8118  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\hadoop-core.pom
     文件        1427  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\hadoop-examples-pom-template.xml
     文件        1814  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\hadoop-minicluster-pom-template.xml
     文件        1432  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\hadoop-streaming-pom-template.xml
     文件        2051  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\hadoop-test-pom-template.xml
     文件        1424  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\hadoop-tools-pom-template.xml
     文件      910990  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\ivy-2.1.0.jar
     文件        3320  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\ivysettings.xml
     文件        2521  2018-10-18 23:48  Hadoop-eclipse-plugin-master\ivy\libraries.properties
     目录           0  2018-10-18 23:48  Hadoop-eclipse-plugin-master\release\
     文件    39532491  2018-10-18 23:48  Hadoop-eclipse-plugin-master\release\hadoop-eclipse-plugin-2.8.5.jar
     目录           0  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\
     目录           0  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\
     文件       22217  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\build-contrib.xml
     文件        4229  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\build.xml
     目录           0  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\
     文件         647  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\.project
     目录           0  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\.settings\
     文件       21972  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\.settings\org.eclipse.jdt.core.prefs
     文件         300  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\.settings\org.eclipse.jdt.ui.prefs
     文件        1803  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\.settings\org.eclipse.wst.validation.prefs
     目录           0  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\meta-INF\
     文件         752  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\meta-INF\MANIFEST.MF
     文件         735  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\build.properties
     文件        7804  2018-10-18 23:48  Hadoop-eclipse-plugin-master\src\contrib\eclipse-plugin\build.xml
............此处省略142个文件信息

评论

共有 条评论