public class LocalResourceStatusPBImpl extends ProtoBase<YarnServerNodemanagerServiceProtos.LocalResourceStatusProto> implements LocalResourceStatus
Constructor and Description |
---|
LocalResourceStatusPBImpl() |
LocalResourceStatusPBImpl(YarnServerNodemanagerServiceProtos.LocalResourceStatusProto proto) |
Modifier and Type | Method and Description |
---|---|
SerializedException |
getException() |
URL |
getLocalPath() |
long |
getLocalSize() |
YarnServerNodemanagerServiceProtos.LocalResourceStatusProto |
getProto() |
LocalResource |
getResource() |
ResourceStatusType |
getStatus() |
void |
setException(SerializedException exception) |
void |
setLocalPath(URL localPath) |
void |
setLocalSize(long size) |
void |
setResource(LocalResource resource) |
void |
setStatus(ResourceStatusType status) |
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
public LocalResourceStatusPBImpl()
public LocalResourceStatusPBImpl(YarnServerNodemanagerServiceProtos.LocalResourceStatusProto proto)
public YarnServerNodemanagerServiceProtos.LocalResourceStatusProto getProto()
getProto
in class ProtoBase<YarnServerNodemanagerServiceProtos.LocalResourceStatusProto>
public LocalResource getResource()
getResource
in interface LocalResourceStatus
public ResourceStatusType getStatus()
getStatus
in interface LocalResourceStatus
public URL getLocalPath()
getLocalPath
in interface LocalResourceStatus
public long getLocalSize()
getLocalSize
in interface LocalResourceStatus
public SerializedException getException()
getException
in interface LocalResourceStatus
public void setResource(LocalResource resource)
setResource
in interface LocalResourceStatus
public void setStatus(ResourceStatusType status)
setStatus
in interface LocalResourceStatus
public void setLocalPath(URL localPath)
setLocalPath
in interface LocalResourceStatus
public void setLocalSize(long size)
setLocalSize
in interface LocalResourceStatus
public void setException(SerializedException exception)
setException
in interface LocalResourceStatus
Copyright © 2013 Apache Software Foundation. All rights reserved.