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


@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface URL

URL represents a serializable URL.


Method Summary
 String getFile()
          Get the file of the URL.
 String getHost()
          Get the host of the URL.
 int getPort()
          Get the port of the URL.
 String getScheme()
          Get the scheme of the URL.
 void setFile(String file)
          Set the file of the URL.
 void setHost(String host)
          Set the host of the URL.
 void setPort(int port)
          Set the port of the URL
 void setScheme(String scheme)
          Set the scheme of the URL
 

Method Detail

getScheme

@InterfaceAudience.Public
@InterfaceStability.Evolving
String getScheme()
Get the scheme of the URL.

Returns:
scheme of the URL

setScheme

@InterfaceAudience.Public
@InterfaceStability.Evolving
void setScheme(String scheme)
Set the scheme of the URL

Parameters:
scheme - scheme of the URL

getHost

@InterfaceAudience.Public
@InterfaceStability.Evolving
String getHost()
Get the host of the URL.

Returns:
host of the URL

setHost

@InterfaceAudience.Public
@InterfaceStability.Evolving
void setHost(String host)
Set the host of the URL.

Parameters:
host - host of the URL

getPort

@InterfaceAudience.Public
@InterfaceStability.Evolving
int getPort()
Get the port of the URL.

Returns:
port of the URL

setPort

@InterfaceAudience.Public
@InterfaceStability.Evolving
void setPort(int port)
Set the port of the URL

Parameters:
port - port of the URL

getFile

@InterfaceAudience.Public
@InterfaceStability.Evolving
String getFile()
Get the file of the URL.

Returns:
file of the URL

setFile

@InterfaceAudience.Public
@InterfaceStability.Evolving
void setFile(String file)
Set the file of the URL.

Parameters:
file - file of the URL


Copyright © 2012 Apache Software Foundation. All Rights Reserved.