Examples of RetCode


Examples of com.github.fge.jsonschema.main.cli.RetCode

    private void proceed(final Reporter reporter, final List<File> files,
        final boolean isSyntax)
        throws IOException, ProcessingException
    {

        final RetCode retCode = isSyntax ? doSyntax(reporter, files)
            : doValidation(reporter, files);
        System.exit(retCode.get());
    }
View Full Code Here

Examples of com.github.fge.jsonschema.main.cli.RetCode

    }

    private RetCode doSyntax(final Reporter reporter, final List<File> files)
        throws IOException
    {
        RetCode retcode, ret = ALL_OK;
        String fileName;
        JsonNode node;

        for (final File file: files) {
            fileName = file.toString();
View Full Code Here

Examples of com.github.fge.jsonschema.main.cli.RetCode

            return SCHEMA_SYNTAX_ERROR;
        }

        final JsonSchema schema = factory.getJsonSchema(uri);

        RetCode ret = ALL_OK, retcode;

        for (final File file: files) {
            node = MAPPER.readTree(file);
            retcode = reporter.validateInstance(schema, file.toString(), node);
            if (retcode != ALL_OK)
View Full Code Here

Examples of com.linkedin.helix.manager.zk.ZkBaseDataAccessor.RetCode

    {
      try
      {
        cache.lockWrite();
        List<String> pathsCreated = new ArrayList<String>();
        RetCode rc = _baseAccessor.create(serverPath, data, pathsCreated, options);
        boolean success = (rc == RetCode.OK);

        updateCache(cache, pathsCreated, success, serverPath, data, ZNode.ZERO_STAT);

        return success;
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkBaseDataAccessor.RetCode

    {
      try
      {
        cache.lockWrite();
        List<String> pathsCreated = new ArrayList<String>();
        RetCode rc = _baseAccessor.create(serverPath, data, pathsCreated, options);
        boolean success = (rc == RetCode.OK);

        updateCache(cache, pathsCreated, success, serverPath, data, ZNode.ZERO_STAT);

        return success;
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkBaseDataAccessor.RetCode

    {
      try
      {
        cache.lockWrite();
        List<String> pathsCreated = new ArrayList<String>();
        RetCode rc = _baseAccessor.create(serverPath, data, pathsCreated, options);
        boolean success = (rc == RetCode.OK);

        updateCache(cache, pathsCreated, success, serverPath, data, ZNode.ZERO_STAT);

        return success;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.