This project has retired. For details please refer to its Attic page.
Apache REEF: Org.Apache.REEF.Common.Jar.ResourceHelper Class Reference
Apache REEF  0.15.0
Retainable Evaluator Execution Framework
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Org.Apache.REEF.Common.Jar.ResourceHelper Class Reference

Helps with retrieval of embedded resources. More...

Public Member Functions

 ResourceHelper (Assembly assembly)
 Given an assembly, returns a ResourceSet for it. More...
 
string GetString (string resourceName)
 Given resource name, returns corresponding resource More...
 
byte[] GetBytes (string resourceName)
 Given resource name, returns corresponding resource More...
 

Public Attributes

const string ClientJarFullName = "ClientJarFullName"
 
const string DriverJarFullName = "DriverJarFullName"
 
const string ClrDriverFullName = "ClrDriverFullName"
 

Static Public Attributes

static readonly Dictionary< string, string > FileResources
 

Detailed Description

Helps with retrieval of embedded resources.

See Org.Apache.REEF.Client.csproj for embedding resources and use this class to retrieve them.

Constructor & Destructor Documentation

Org.Apache.REEF.Common.Jar.ResourceHelper.ResourceHelper ( Assembly  assembly)
inline

Given an assembly, returns a ResourceSet for it.

Parameters
assembly
Returns
ResourceSet

Member Function Documentation

byte [] Org.Apache.REEF.Common.Jar.ResourceHelper.GetBytes ( string  resourceName)
inline

Given resource name, returns corresponding resource

Parameters
resourceName
Returns
T
string Org.Apache.REEF.Common.Jar.ResourceHelper.GetString ( string  resourceName)
inline

Given resource name, returns corresponding resource

Parameters
resourceName
Returns
T

Member Data Documentation

const string Org.Apache.REEF.Common.Jar.ResourceHelper.ClientJarFullName = "ClientJarFullName"
const string Org.Apache.REEF.Common.Jar.ResourceHelper.ClrDriverFullName = "ClrDriverFullName"
const string Org.Apache.REEF.Common.Jar.ResourceHelper.DriverJarFullName = "DriverJarFullName"
readonly Dictionary<string, string> Org.Apache.REEF.Common.Jar.ResourceHelper.FileResources
static
Initial value:
= new Dictionary<string, string>
{
{ ClientJarFullName, "reef_bridge_client" },
{ DriverJarFullName, "reef_bridge_driver" },
{ ClrDriverFullName, "reef_clrdriver" },
}

The documentation for this class was generated from the following file: