Examples of version()


Examples of org.elasticsearch.cluster.routing.MutableShardRouting.version()

                        }
                        /* now allocate on the cluster - if we are started we need to relocate the shard */
                        if (candidate.started()) {
                            RoutingNode lowRoutingNode = routingNodes.node(minNode.getNodeId());
                            routingNodes.assign(new MutableShardRouting(candidate.index(), candidate.id(), lowRoutingNode.nodeId(), candidate
                                    .currentNodeId(), candidate.restoreSource(), candidate.primary(), INITIALIZING, candidate.version() + 1), lowRoutingNode.nodeId());
                            routingNodes.relocate(candidate, lowRoutingNode.nodeId());

                        } else {
                            assert candidate.unassigned();
                            routingNodes.assign(candidate, routingNodes.node(minNode.getNodeId()).nodeId());
View Full Code Here

Examples of org.elasticsearch.cluster.routing.ShardRouting.version()

            return true; // lets true, so we reroute in this case
        }

        // add the failed shard to the unassigned shards
        allocation.routingNodes().unassigned().add(new MutableShardRouting(failedShard.index(), failedShard.id(),
                null, failedShard.primary(), ShardRoutingState.UNASSIGNED, failedShard.version() + 1));

        return true;
    }
}
View Full Code Here

Examples of org.elasticsearch.common.lucene.uid.UidField.version()

    private void innerCreate(Create create, IndexWriter writer) throws IOException {
        synchronized (dirtyLock(create.uid())) {
            UidField uidField = create.uidField();
            if (create.origin() == Operation.Origin.RECOVERY) {
                uidField.version(create.version());
                // we use update doc and not addDoc since we might get duplicates when using transient translog
                if (create.docs().size() > 1) {
                    writer.updateDocuments(create.uid(), create.docs(), create.analyzer());
                } else {
                    writer.updateDocument(create.uid(), create.docs().get(0), create.analyzer());
View Full Code Here

Examples of org.elasticsearch.index.get.GetResult.version()

        // Set some org.elasticsearch.test.integration.views.mappings.data required for view rendering
        viewContext.index(getResult.index())
                .type(getResult.type())
                .id(getResult.id())
                .version(getResult.version())
                .source(getResult.sourceAsMap());

        // Ok, let's render it with a ViewEngineService
        ViewResult result = viewService.render(viewContext);
View Full Code Here

Examples of org.elasticsearch.search.builder.SearchSourceBuilder.version()

            searchSourceBuilder.size(size);
        }


        searchSourceBuilder.explain(request.paramAsBoolean("explain", null));
        searchSourceBuilder.version(request.paramAsBoolean("version", null));

        String sField = request.param("fields");
        if (sField != null) {
            if (!Strings.hasText(sField)) {
                searchSourceBuilder.noFields();
View Full Code Here

Examples of org.enhydra.shark.api.client.wfmodel.WfProcessMgr.version()

                wp.setId(pm.name());
                wp.setPackageId(MiscUtilities.getProcessMgrPkgId(pm.name()));
                wp.setPackageName(packageName);
                wp.setName(ent.getName());
                wp.setVersion(pm.version());
                wp.setDescription(pm.description());
                wp.setCategory(pm.category());

                String currentVersion = pa.getCurrentPackageVersion(sessionHandle, wp.getPackageId());
                wp.setLatest(currentVersion == null || (currentVersion.equals(wp.getVersion())));
View Full Code Here

Examples of org.fusesource.mqtt.codec.CONNECT.version()

                break;
            }
            case CONNECT.TYPE: {
                CONNECT connect = new CONNECT().decode(frame);
                onMQTTConnect(connect);
                LOG.debug("MQTT Client {} connected. (version: {})", getClientId(), connect.version());
                break;
            }
            case DISCONNECT.TYPE: {
                LOG.debug("MQTT Client {} disconnecting", getClientId());
                onMQTTDisconnect();
View Full Code Here

Examples of org.geoserver.catalog.StyleHandler.version()

            throw new WicketRuntimeException(e);
        }
       
        // store in the catalog
        try {
            Version version = styleHandler.version(rawStyle);
            s.setSLDVersion(version);
            getCatalog().add(s);
        } catch (Exception e) {
            LOGGER.log(Level.SEVERE, "Error occurred saving the style", e);
            error(e);
View Full Code Here

Examples of org.gradle.performance.fixture.PerformanceResults.version()

                            tr();
                                td().text(format.timestamp(new Date(performanceResults.getTestTime()))).end();
                                td().text(performanceResults.getVersionUnderTest()).end();
                                td().text(performanceResults.getVcsBranch()).end();
                                for (String version : versions) {
                                    VersionResults versionResults = performanceResults.version(version);
                                    td().classAttr("numeric");
                                    if (versionResults.getResults().isEmpty()) {
                                        text("");
                                    } else {
                                        text(versionResults.getResults().getExecutionTime().getAverage().format());
View Full Code Here

Examples of org.h2.jaqu.Table.JQDatabase.version()

        if (!upgradeChecked.contains(dbUpgrader.getClass())) {
            // flag as checked immediately because calls are nested.
            upgradeChecked.add(dbUpgrader.getClass());

            JQDatabase model = dbUpgrader.getClass().getAnnotation(JQDatabase.class);
            if (model.version() > 0) {
                DbVersion v = new DbVersion();
                DbVersion dbVersion =
                    // (SCHEMA="" && TABLE="") == DATABASE
                    from(v).where(v.schema).is("").and(v.table).is("").selectFirst();
                if (dbVersion == null) {
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.