hudson.plugins.hadoop
Class PluginImpl

java.lang.Object
  extended by hudson.Plugin
      extended by hudson.plugins.hadoop.PluginImpl
All Implemented Interfaces:
hudson.model.Saveable

public class PluginImpl
extends hudson.Plugin

Hadoop plugin.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
static int JOB_TRACKER_PORT_NUMBER
          Job tracker port number.
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PluginImpl()
           
 
Method Summary
 org.apache.hadoop.hdfs.DFSClient createDFSClient()
          Connects to this HDFS.
static PluginImpl get()
           
 java.net.InetSocketAddress getHdfsAddress()
          Determines the HDFS connection endpoint.
 java.lang.String getHdfsUrl()
          Determines the HDFS URL.
 java.lang.String getJobTrackerAddress()
          Determines the job tracker address.
 void postInit()
           
 void start()
           
 void stop()
           
 
Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, load, postInitialize, save, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_TRACKER_PORT_NUMBER

public static final int JOB_TRACKER_PORT_NUMBER
Job tracker port number.

See Also:
Constant Field Values
Constructor Detail

PluginImpl

public PluginImpl()
Method Detail

start

public void start()
           throws java.lang.Exception
Overrides:
start in class hudson.Plugin
Throws:
java.lang.Exception

getHdfsUrl

public java.lang.String getHdfsUrl()
                            throws java.net.MalformedURLException
Determines the HDFS URL.

Throws:
java.net.MalformedURLException

getHdfsAddress

public java.net.InetSocketAddress getHdfsAddress()
                                          throws java.net.MalformedURLException
Determines the HDFS connection endpoint.

Throws:
java.net.MalformedURLException

createDFSClient

public org.apache.hadoop.hdfs.DFSClient createDFSClient()
                                                 throws java.io.IOException
Connects to this HDFS.

Throws:
java.io.IOException

getJobTrackerAddress

public java.lang.String getJobTrackerAddress()
                                      throws java.net.MalformedURLException
Determines the job tracker address.

Throws:
java.net.MalformedURLException

postInit

public void postInit()
              throws java.io.IOException,
                     java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

stop

public void stop()
          throws java.lang.Exception
Overrides:
stop in class hudson.Plugin
Throws:
java.lang.Exception

get

public static PluginImpl get()


Copyright © 2004-2011. All Rights Reserved.