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

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

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

Utils.callConstructor介绍

[英]Call the class constructor with the given arguments
[中]使用给定的参数调用类构造函数

代码示例

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

public TriggerAction createAction(final String type, final Object... args) {
 TriggerAction action = null;
 final Class<? extends TriggerAction> actionClass = actionToClass.get(type);
 action = (TriggerAction) Utils.callConstructor(actionClass, args);
 return action;
}

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

public ConditionChecker createChecker(final String type, final Object... args) {
 ConditionChecker checker = null;
 final Class<? extends ConditionChecker> checkerClass = checkerToClass.get(type);
 checker = (ConditionChecker) Utils.callConstructor(checkerClass, args);
 return checker;
}

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

public static Object callConstructor(final Class<?> c, final Object... args) {
 return callConstructor(c, getTypes(args), args);
}

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

clazz = (Class<? extends DependencyCheck>) dependencyClassloader.loadClass(pluginConfig.get
   (DEPENDENCY_CLASS));
 return (DependencyCheck) Utils.callConstructor(clazz);
} catch (final Exception ex) {
 throw new FlowTriggerDependencyPluginException(ex);

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

final Props fakeJobProps = new Props(pluginJobProps);
 final Job job =
   (Job) Utils.callConstructor(clazz, "dummy", fakeSysProps,
     fakeJobProps, logger);
} catch (final Throwable t) {

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

(Job) Utils.callConstructor(executorClass, jobId, pluginLoadProps,
     jobProps, logger);
} catch (final Exception e) {

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

public TriggerAction createAction(final String type, final Object... args) {
 TriggerAction action = null;
 final Class<? extends TriggerAction> actionClass = actionToClass.get(type);
 action = (TriggerAction) Utils.callConstructor(actionClass, args);
 return action;
}

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

public ConditionChecker createChecker(String type, Object ... args) {
  ConditionChecker checker = null;
  Class<? extends ConditionChecker> checkerClass = checkerToClass.get(type);		
  checker = (ConditionChecker) Utils.callConstructor(checkerClass, args);
  
  return checker;
}

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

public TriggerAction createAction(String type, Object ... args) {
  TriggerAction action = null;
  Class<? extends TriggerAction> actionClass = actionToClass.get(type);		
  action = (TriggerAction) Utils.callConstructor(actionClass, args);
  
  return action;
}

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

public ConditionChecker createChecker(final String type, final Object... args) {
 ConditionChecker checker = null;
 final Class<? extends ConditionChecker> checkerClass = checkerToClass.get(type);
 checker = (ConditionChecker) Utils.callConstructor(checkerClass, args);
 return checker;
}

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

public static Object callConstructor(Class<?> c, Object... args) {
  return callConstructor(c, getTypes(args), args);
}

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

public static Object callConstructor(final Class<?> c, final Object... args) {
 return callConstructor(c, getTypes(args), args);
}

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

Job job = (Job)Utils.callConstructor(clazz, "dummy", fakeSysProps, fakeJobProps, logger);

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

job = (Job) Utils.callConstructor(
    executorClass, jobId, sysConf, jobConf, logger);

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

final Props fakeJobProps = new Props(pluginJobProps);
 final Job job =
   (Job) Utils.callConstructor(clazz, "dummy", fakeSysProps,
     fakeJobProps, logger);
} catch (final Throwable t) {

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

(Job) Utils.callConstructor(executorClass, jobId, pluginLoadProps,
     jobProps, logger);
} catch (final Exception e) {

相关文章