|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.service.ShareLibService
public class ShareLibService
| Field Summary | |
|---|---|
static SimpleDateFormat |
dateFormat
|
static String |
FAIL_FAST_ON_STARTUP
|
static String |
LAUNCHER_PREFIX
|
static String |
LAUNCHERJAR_LIB_RETENTION
|
static String |
PURGE_INTERVAL
|
static String |
SHARE_LIB_CONF_PREFIX
|
static String |
SHARED_LIB_PREFIX
|
static String |
SHARELIB_MAPPING_FILE
|
static String |
SHIP_LAUNCHER_JAR
|
| Fields inherited from interface org.apache.oozie.service.Service |
|---|
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND |
| Constructor Summary | |
|---|---|
ShareLibService()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy the service. |
protected String |
findContainingJar(Class clazz)
Find containing jar containing. |
org.apache.hadoop.fs.FileSystem |
getFileSystem()
Returns file system for shared libraries. |
Class<? extends Service> |
getInterface()
Return the public interface of the service. |
org.apache.hadoop.fs.Path |
getLatestLibPath(org.apache.hadoop.fs.Path rootDir,
String prefix)
Gets the Latest lib path. |
Map<String,List<org.apache.hadoop.fs.Path>> |
getShareLib()
|
List<org.apache.hadoop.fs.Path> |
getShareLibJars(String actionKey)
Gets the action system lib common jars. |
List<org.apache.hadoop.fs.Path> |
getSystemLibJars(String actionKey)
Gets the launcher jars. |
void |
init(Services services)
Initialize the service. |
void |
instrument(Instrumentation instr)
Instruments the log service. |
Map<String,String> |
updateShareLib()
Update share lib cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LAUNCHERJAR_LIB_RETENTION
public static final String SHARELIB_MAPPING_FILE
public static final String SHIP_LAUNCHER_JAR
public static final String PURGE_INTERVAL
public static final String FAIL_FAST_ON_STARTUP
public static final String LAUNCHER_PREFIX
public static final String SHARED_LIB_PREFIX
public static final SimpleDateFormat dateFormat
public static String SHARE_LIB_CONF_PREFIX
| Constructor Detail |
|---|
public ShareLibService()
| Method Detail |
|---|
public void init(Services services)
throws ServiceException
ServiceService singleton at start up time.
init in interface Serviceservices - services singleton initializing the service.
ServiceException - thrown if the service could not initialize.public Map<String,List<org.apache.hadoop.fs.Path>> getShareLib()
public List<org.apache.hadoop.fs.Path> getShareLibJars(String actionKey)
throws IOException
actionKey - the action key
IOException
public List<org.apache.hadoop.fs.Path> getSystemLibJars(String actionKey)
throws IOException
actionKey - the action key
ClassNotFoundException
IOExceptionprotected String findContainingJar(Class clazz)
clazz - the clazz
public void destroy()
ServiceService singleton at shutdown time.
destroy in interface Servicepublic Class<? extends Service> getInterface()
Service
getInterface in interface Service
public Map<String,String> updateShareLib()
throws IOException
IOException - Signals that an I/O exception has occurred.
public org.apache.hadoop.fs.Path getLatestLibPath(org.apache.hadoop.fs.Path rootDir,
String prefix)
throws IOException
rootDir - the root dirprefix - the prefix
IOException - Signals that an I/O exception has occurred.public void instrument(Instrumentation instr)
instrument in interface Instrumentableinstr - instrumentation to use.public org.apache.hadoop.fs.FileSystem getFileSystem()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||