org.apache.hadoop.yarn.api.records
Class URL

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.URL

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class URL
extends Object

URL represents a serializable URL.


Constructor Summary
URL()
           
 
Method Summary
abstract  String getFile()
          Get the file of the URL.
abstract  String getHost()
          Get the host of the URL.
abstract  int getPort()
          Get the port of the URL.
abstract  String getScheme()
          Get the scheme of the URL.
abstract  String getUserInfo()
          Get the user info of the URL.
static URL newInstance(String scheme, String host, int port, String file)
           
abstract  void setFile(String file)
          Set the file of the URL.
abstract  void setHost(String host)
          Set the host of the URL.
abstract  void setPort(int port)
          Set the port of the URL
abstract  void setScheme(String scheme)
          Set the scheme of the URL
abstract  void setUserInfo(String userInfo)
          Set the user info of the URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URL

public URL()
Method Detail

newInstance

@InterfaceAudience.Public
@InterfaceStability.Stable
public static URL newInstance(String scheme,
                                                                                 String host,
                                                                                 int port,
                                                                                 String file)

getScheme

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getScheme()
Get the scheme of the URL.

Returns:
scheme of the URL

setScheme

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setScheme(String scheme)
Set the scheme of the URL

Parameters:
scheme - scheme of the URL

getUserInfo

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getUserInfo()
Get the user info of the URL.

Returns:
user info of the URL

setUserInfo

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setUserInfo(String userInfo)
Set the user info of the URL.

Parameters:
userInfo - user info of the URL

getHost

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getHost()
Get the host of the URL.

Returns:
host of the URL

setHost

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setHost(String host)
Set the host of the URL.

Parameters:
host - host of the URL

getPort

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract int getPort()
Get the port of the URL.

Returns:
port of the URL

setPort

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setPort(int port)
Set the port of the URL

Parameters:
port - port of the URL

getFile

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getFile()
Get the file of the URL.

Returns:
file of the URL

setFile

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setFile(String file)
Set the file of the URL.

Parameters:
file - file of the URL


Copyright © 2014 Apache Software Foundation. All Rights Reserved.