Example usage for org.apache.commons.lang NotImplementedException NotImplementedException

List of usage examples for org.apache.commons.lang NotImplementedException NotImplementedException

Introduction

In this page you can find the example usage for org.apache.commons.lang NotImplementedException NotImplementedException.

Prototype

public NotImplementedException(Class clazz) 

Source Link

Document

Constructs a new NotImplementedException referencing the specified class.

Usage

From source file:com.rapleaf.hank.hadoop.HadoopDomainBuilder.java

public static void main(String[] args) throws IOException, InvalidConfigurationException {
    CommandLineChecker.check(args,/*from  w w  w.  j av  a2s . c om*/
            new String[] { "domain name", "config path", "jobjar", "input path", "output_path" },
            HadoopDomainBuilder.class);
    String domainName = args[0];
    CoordinatorConfigurator configurator = new YamlClientConfigurator(args[1]);
    String jobJar = args[2];
    String inputPath = args[3];
    String outputPath = args[4];

    DomainBuilderProperties properties = new DomainBuilderProperties(domainName, configurator, outputPath);
    JobConf conf = new JobConf();
    conf.setJar(jobJar);
    conf.setJobName(HadoopDomainBuilder.class.getSimpleName() + " Domain " + domainName + ", Output path: "
            + outputPath);
    HadoopDomainBuilder builder = new HadoopDomainBuilder(conf, inputPath, SequenceFileInputFormat.class,
            DomainBuilderMapperDefault.class);
    LOG.info("Building Hank domain " + domainName + " from input " + inputPath
            + " and coordinator configuration " + configurator);
    // TODO: Create DomainVersionProperties
    throw new NotImplementedException("TODO: Create DomainVersionProperties");
    // builder.buildHankDomain(properties, null);
}

From source file:com.liveramp.hank.hadoop.HadoopDomainBuilder.java

public static void main(String[] args) throws IOException, InvalidConfigurationException {
    CommandLineChecker.check(args,//w w  w . j a  v a  2s  .  c  o m
            new String[] { "domain name", "config path", "jobjar", "input path", "output_path" },
            HadoopDomainBuilder.class);
    String domainName = args[0];
    CoordinatorConfigurator configurator = new YamlCoordinatorConfigurator(args[1]);
    String jobJar = args[2];
    String inputPath = args[3];
    String outputPath = args[4];

    DomainBuilderProperties properties = new DomainBuilderProperties(domainName, configurator)
            .setOutputPath(outputPath);
    JobConf conf = new JobConf();
    conf.setJar(jobJar);
    conf.setJobName(HadoopDomainBuilder.class.getSimpleName() + " Domain " + domainName + ", Output path: "
            + outputPath);
    HadoopDomainBuilder builder = new HadoopDomainBuilder(conf, inputPath, SequenceFileInputFormat.class,
            DomainBuilderMapperDefault.class);
    LOG.info("Building Hank domain " + domainName + " from input " + inputPath
            + " and coordinator configuration " + configurator);
    // TODO: Create DomainVersionProperties
    throw new NotImplementedException("TODO: Create DomainVersionProperties");
    // builder.buildHankDomain(properties, null);
}

From source file:com.toddbodnar.simpleHive.helpers.controlCharacterConverter.java

public static String convertToReadable(String c) {
    if (c.length() > 1)
        throw new NotImplementedException("Not implemented multi-character seperators yet");
    if ((int) c.charAt(0) > 15)
        return c;
    return ("CONTROL_" + ((int) c.charAt(0)));
}

From source file:io.pravega.test.system.framework.TestExecutorFactory.java

public static TestExecutor getTestExecutor(TestExecutorType type) {
    switch (type) {
    case REMOTE_SEQUENTIAL:
        return MARATHON_SEQUENTIAL_EXECUTOR;
    case REMOTE_DISTRIBUTED:
        throw new NotImplementedException("Distributed execution not implemented");
    case LOCAL:/*from   w w w . j  ava2 s . com*/
    default:
        throw new IllegalArgumentException("Invalid Executor specified: " + type);
    }
}

From source file:com.intuit.tank.script.ScriptStepDataLookup.java

public static String getData(ScriptStep scriptStep) {
    if (scriptStep.getType().equals(ScriptConstants.THINK_TIME)) {
        return getThinkTimeRepresentation(scriptStep.getData());
    } else if (scriptStep.getType().equals(ScriptConstants.SLEEP)) {
        return getSleepTimeRepresentation(scriptStep.getData());
    } else if (scriptStep.getType().equals(ScriptConstants.VARIABLE)) {
        return getVariableRepresentation(scriptStep.getData());
    } else if (scriptStep.getType().equals(ScriptConstants.REQUEST)) {
        return getRequestRepresentation(scriptStep);
    } else {//w  w  w .java 2 s  . c om
        throw new NotImplementedException("Request representation is not implemented.");
    }
}

From source file:com.opengamma.financial.analytics.model.riskfactor.option.UnderlyingTypeToValueRequirementMapper.java

public static ValueRequirement getValueRequirement(final UnderlyingType underlying, final Security security) {
    if (security instanceof EquityOptionSecurity) {
        final EquityOptionSecurity option = (EquityOptionSecurity) security;
        switch (underlying) {
        case SPOT_PRICE:
            return new ValueRequirement(MarketDataRequirementNames.MARKET_VALUE, ComputationTargetType.SECURITY,
                    option.getUnderlyingId());
        case SPOT_VOLATILITY:
            throw new NotImplementedException(
                    "Don't know how to get spot volatility for " + option.getUniqueId());
        case IMPLIED_VOLATILITY:
            throw new NotImplementedException(
                    "Don't know how to get implied volatility for " + option.getUniqueId());
        case INTEREST_RATE:
            return new ValueRequirement(ValueRequirementNames.YIELD_CURVE, ComputationTargetType.SECURITY,
                    option.getUniqueId());
        case COST_OF_CARRY:
            throw new NotImplementedException(
                    "Don't know how to get cost of carry for " + option.getUniqueId());
        default://from   w  w w. j a  v a2  s  .  c  om
            throw new NotImplementedException("Don't know how to get ValueRequirement for " + underlying);
        }
    } else if (security instanceof EquitySecurity) {
        final EquitySecurity equity = (EquitySecurity) security;
        if (underlying == UnderlyingType.SPOT_PRICE) {
            return new ValueRequirement(MarketDataRequirementNames.MARKET_VALUE, ComputationTargetType.SECURITY,
                    equity.getUniqueId());
        } else {
            throw new NotImplementedException("Don't know how to get ValueRequirement for " + underlying);
        }
    } else {
        throw new NotImplementedException(
                "Can only get ValueRequirements for EquityOptionSecurity and EquitySecurity. Was " + security
                        + ")");
    }
}

From source file:com.opengamma.financial.convention.daycount.FlatDayCount.java

@Override
public double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate) {
    throw new NotImplementedException("Cannot get day count fraction for a flat day count");
}

From source file:com.ms.commons.test.tool.exportdata.ConsoleCmdAnaylisysUtil.java

public static ConsoleCmd anaConsoleCmd(String cmd) {
    if (StringUtils.isBlank(cmd)) {
        throw new RuntimeException("Command cannot be empty!");
    }/*  w  w  w.  ja va 2  s  .  c o  m*/
    String trimedCmd = cmd.trim();
    for (CmdAnalysisor cmdAnalysisor : cmdAnalysisorList) {
        for (String pre : cmdAnalysisor.analysisCommandList()) {
            if (trimedCmd.startsWith(pre + " ")) {
                return cmdAnalysisor.analysisConsoleCmd(cmd, trimedCmd.substring((pre + " ").length()));
            }
        }
    }
    if (trimedCmd.startsWith("convert ")) {
        throw new NotImplementedException("Not supported!");
    }
    throw new RuntimeException("Unknow command: " + cmd);
}

From source file:com.opengamma.financial.convention.daycount.ThirtyEThreeSixtyISDA.java

@Override
public double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate) {
    throw new NotImplementedException("Need to know whether the second date is the maturity");
}

From source file:com.ms.commons.test.datawriter.impl.JsonDataWriter.java

public void write(MemoryDatabase memoryDatabase, OutputStream outputStream, String encode) {
    throw new NotImplementedException("Not implemented!");
}