azkaban.utils.Utils.invokeStaticMethod()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中azkaban.utils.Utils.invokeStaticMethod()方法的一些代码示例,展示了Utils.invokeStaticMethod()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.invokeStaticMethod()方法的具体详情如下:
包路径:azkaban.utils.Utils
类名称:Utils
方法名:invokeStaticMethod

Utils.invokeStaticMethod介绍

暂无

代码示例

代码示例来源:origin: azkaban/azkaban

public TriggerAction createActionFromJson(final String type, final Object obj)
  throws Exception {
 TriggerAction action = null;
 final Class<? extends TriggerAction> actionClass = actionToClass.get(type);
 if (actionClass == null) {
  throw new Exception("Action Type " + type + " not supported!");
 }
 action =
   (TriggerAction) Utils.invokeStaticMethod(actionClass.getClassLoader(),
     actionClass.getName(), "createFromJson", obj);
 return action;
}

代码示例来源:origin: azkaban/azkaban

public ConditionChecker createCheckerFromJson(final String type, final Object obj)
  throws Exception {
 ConditionChecker checker = null;
 final Class<? extends ConditionChecker> checkerClass = checkerToClass.get(type);
 if (checkerClass == null) {
  throw new Exception("Checker type " + type + " not supported!");
 }
 checker =
   (ConditionChecker) Utils.invokeStaticMethod(
     checkerClass.getClassLoader(), checkerClass.getName(),
     "createFromJson", obj);
 return checker;
}

代码示例来源:origin: azkaban/azkaban

Utils.invokeStaticMethod(urlClassLoader, pluginClass,
   "initiateCheckerTypes", pluginProps, this);
} catch (final Exception e) {
 Utils.invokeStaticMethod(urlClassLoader, pluginClass,
   "initiateActionTypes", pluginProps, this);
} catch (final Exception e) {

代码示例来源:origin: com.linkedin.azkaban/azkaban

public ConditionChecker createCheckerFromJson(String type, Object obj) throws Exception {
  ConditionChecker checker = null;
  Class<? extends ConditionChecker> checkerClass = checkerToClass.get(type);	
  if(checkerClass == null) {
    throw new Exception("Checker type " + type + " not supported!");
  }
  checker = (ConditionChecker) Utils.invokeStaticMethod(checkerClass.getClassLoader(), checkerClass.getName(), "createFromJson", obj);
  
  return checker;
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

public TriggerAction createActionFromJson(String type, Object obj) throws Exception {
  TriggerAction action = null;
  Class<? extends TriggerAction> actionClass = actionToClass.get(type);		
  if(actionClass == null) {
    throw new Exception("Action Type " + type + " not supported!");
  }
  action = (TriggerAction) Utils.invokeStaticMethod(actionClass.getClassLoader(), actionClass.getName(), "createFromJson", obj);
  
  return action;
}

代码示例来源:origin: com.linkedin.azkaban/azkaban-common

public TriggerAction createActionFromJson(final String type, final Object obj)
  throws Exception {
 TriggerAction action = null;
 final Class<? extends TriggerAction> actionClass = actionToClass.get(type);
 if (actionClass == null) {
  throw new Exception("Action Type " + type + " not supported!");
 }
 action =
   (TriggerAction) Utils.invokeStaticMethod(actionClass.getClassLoader(),
     actionClass.getName(), "createFromJson", obj);
 return action;
}

代码示例来源:origin: com.linkedin.azkaban/azkaban-common

public ConditionChecker createCheckerFromJson(final String type, final Object obj)
  throws Exception {
 ConditionChecker checker = null;
 final Class<? extends ConditionChecker> checkerClass = checkerToClass.get(type);
 if (checkerClass == null) {
  throw new Exception("Checker type " + type + " not supported!");
 }
 checker =
   (ConditionChecker) Utils.invokeStaticMethod(
     checkerClass.getClassLoader(), checkerClass.getName(),
     "createFromJson", obj);
 return checker;
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

Utils.invokeStaticMethod(urlClassLoader, pluginClass, "initiateCheckerTypes", pluginProps, app);
} catch (Exception e) {
  logger.error("Unable to initiate checker types for " + pluginClass);
  Utils.invokeStaticMethod(urlClassLoader, pluginClass, "initiateActionTypes", pluginProps, app);
} catch (Exception e) {
  logger.error("Unable to initiate action types for " + pluginClass);

相关文章