org.apache.hadoop.yarn.api.records.impl.pb
Class URLPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.URLProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.URLPBImpl
All Implemented Interfaces:
URL

public class URLPBImpl
extends ProtoBase<YarnProtos.URLProto>
implements URL


Constructor Summary
URLPBImpl()
           
URLPBImpl(YarnProtos.URLProto proto)
           
 
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.
 YarnProtos.URLProto getProto()
           
 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
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLPBImpl

public URLPBImpl()

URLPBImpl

public URLPBImpl(YarnProtos.URLProto proto)
Method Detail

getProto

public YarnProtos.URLProto getProto()
Specified by:
getProto in class ProtoBase<YarnProtos.URLProto>

getFile

public String getFile()
Description copied from interface: URL
Get the file of the URL.

Specified by:
getFile in interface URL
Returns:
file of the URL

setFile

public void setFile(String file)
Description copied from interface: URL
Set the file of the URL.

Specified by:
setFile in interface URL
Parameters:
file - file of the URL

getScheme

public String getScheme()
Description copied from interface: URL
Get the scheme of the URL.

Specified by:
getScheme in interface URL
Returns:
scheme of the URL

setScheme

public void setScheme(String scheme)
Description copied from interface: URL
Set the scheme of the URL

Specified by:
setScheme in interface URL
Parameters:
scheme - scheme of the URL

getHost

public String getHost()
Description copied from interface: URL
Get the host of the URL.

Specified by:
getHost in interface URL
Returns:
host of the URL

setHost

public void setHost(String host)
Description copied from interface: URL
Set the host of the URL.

Specified by:
setHost in interface URL
Parameters:
host - host of the URL

getPort

public int getPort()
Description copied from interface: URL
Get the port of the URL.

Specified by:
getPort in interface URL
Returns:
port of the URL

setPort

public void setPort(int port)
Description copied from interface: URL
Set the port of the URL

Specified by:
setPort in interface URL
Parameters:
port - port of the URL


Copyright © 2012 Apache Software Foundation. All Rights Reserved.