org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer
Class LocalResourceRequest

java.lang.Object
  extended by org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalResourceRequest
All Implemented Interfaces:
Comparable<LocalResourceRequest>, org.apache.hadoop.yarn.api.records.LocalResource

public class LocalResourceRequest
extends Object
implements org.apache.hadoop.yarn.api.records.LocalResource, Comparable<LocalResourceRequest>


Constructor Summary
LocalResourceRequest(org.apache.hadoop.yarn.api.records.LocalResource resource)
          Wrap API resource to match against cache of localized resources.
 
Method Summary
 int compareTo(LocalResourceRequest other)
           
 boolean equals(Object o)
           
 org.apache.hadoop.fs.Path getPath()
           
 org.apache.hadoop.yarn.api.records.URL getResource()
           
 long getSize()
           
 long getTimestamp()
           
 org.apache.hadoop.yarn.api.records.LocalResourceType getType()
           
 org.apache.hadoop.yarn.api.records.LocalResourceVisibility getVisibility()
           
 int hashCode()
           
 void setResource(org.apache.hadoop.yarn.api.records.URL resource)
           
 void setSize(long size)
           
 void setTimestamp(long timestamp)
           
 void setType(org.apache.hadoop.yarn.api.records.LocalResourceType type)
           
 void setVisibility(org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalResourceRequest

public LocalResourceRequest(org.apache.hadoop.yarn.api.records.LocalResource resource)
                     throws URISyntaxException
Wrap API resource to match against cache of localized resources.

Parameters:
resource - Resource requested by container
Throws:
URISyntaxException - If the path is malformed
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(LocalResourceRequest other)
Specified by:
compareTo in interface Comparable<LocalResourceRequest>

getPath

public org.apache.hadoop.fs.Path getPath()

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface org.apache.hadoop.yarn.api.records.LocalResource

getType

public org.apache.hadoop.yarn.api.records.LocalResourceType getType()
Specified by:
getType in interface org.apache.hadoop.yarn.api.records.LocalResource

getResource

public org.apache.hadoop.yarn.api.records.URL getResource()
Specified by:
getResource in interface org.apache.hadoop.yarn.api.records.LocalResource

getSize

public long getSize()
Specified by:
getSize in interface org.apache.hadoop.yarn.api.records.LocalResource

getVisibility

public org.apache.hadoop.yarn.api.records.LocalResourceVisibility getVisibility()
Specified by:
getVisibility in interface org.apache.hadoop.yarn.api.records.LocalResource

setResource

public void setResource(org.apache.hadoop.yarn.api.records.URL resource)
Specified by:
setResource in interface org.apache.hadoop.yarn.api.records.LocalResource

setSize

public void setSize(long size)
Specified by:
setSize in interface org.apache.hadoop.yarn.api.records.LocalResource

setTimestamp

public void setTimestamp(long timestamp)
Specified by:
setTimestamp in interface org.apache.hadoop.yarn.api.records.LocalResource

setType

public void setType(org.apache.hadoop.yarn.api.records.LocalResourceType type)
Specified by:
setType in interface org.apache.hadoop.yarn.api.records.LocalResource

setVisibility

public void setVisibility(org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility)
Specified by:
setVisibility in interface org.apache.hadoop.yarn.api.records.LocalResource

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Apache Software Foundation. All Rights Reserved.