@InterfaceAudience.Private @InterfaceStability.Unstable public class URLPBImpl extends URL
Constructor and Description |
---|
URLPBImpl() |
URLPBImpl(YarnProtos.URLProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
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.
|
String |
getUserInfo()
Get the user info of the URL.
|
int |
hashCode() |
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
|
void |
setUserInfo(String userInfo)
Set the user info of the URL.
|
String |
toString() |
newInstance
public URLPBImpl()
public URLPBImpl(YarnProtos.URLProto proto)
public YarnProtos.URLProto getProto()
public void setFile(String file)
URL
public void setScheme(String scheme)
URL
public String getUserInfo()
URL
getUserInfo
in class URL
public void setUserInfo(String userInfo)
URL
setUserInfo
in class URL
userInfo
- user info of the URLpublic void setHost(String host)
URL
public int getPort()
URL
Copyright © 2013 Apache Software Foundation. All rights reserved.