Examples of TargetDigest


Examples of org.netmelody.cieye.core.domain.TargetDigest

    public TargetDigestGroup targetsConstituting(Feature feature) {
        final String featureName = feature.name();
        final List<TargetDigest> digests = newArrayList();
       
        for (String targetName : demoCiServers.getUnchecked(featureName).getTargetNames()) {
            TargetDigest digest = new TargetDigest(featureName+targetName, "http://www.example.com/", targetName, UNKNOWN);
            digests.add(digest);
            recognisedTargets.put(digest.id(), new TargetInfo(featureName, targetName));
        }
       
        return new TargetDigestGroup(digests);
    }
View Full Code Here

Examples of org.netmelody.cieye.core.domain.TargetDigest

        final TargetDigestGroup untrustedResult = untrustedSpy.targetsConstituting(feature);
        final TargetDigestGroup result = (untrustedResult == null) ? new TargetDigestGroup() : untrustedResult;
       
        if (result.isEmpty()) {
            final TargetId noTargetId = new TargetId("UNK_" + feature.endpoint() + feature.name());
            TargetDigest noTarget = emptyFeatureTargets.get(noTargetId);
            if (null == noTarget) {
                noTarget = new TargetDigest(noTargetId.id(), feature.endpoint(), "EMPTY: " + feature.name(), Status.BROKEN);
                emptyFeatureTargets.put(noTargetId, noTarget);
            }
            return new TargetDigestGroup(ImmutableList.of(noTarget));
        }
        return result;
View Full Code Here

Examples of org.netmelody.cieye.core.domain.TargetDigest

    }

    @Override
    public TargetDetail statusOf(TargetId targetId) {
        if (emptyFeatureTargets.containsKey(targetId)) {
            final TargetDigest noTarget = emptyFeatureTargets.get(targetId);
            return new TargetDetail(targetId.id(), noTarget.webUrl(), noTarget.name(), noTarget.status(), 0L);
        }
        final TargetDetail untrustedResult = untrustedSpy.statusOf(targetId);
        return (untrustedResult == null) ? new TargetDetail(targetId.id(), "", "", Status.UNKNOWN, 0L) : untrustedResult;
    }
View Full Code Here

Examples of org.netmelody.cieye.core.domain.TargetDigest

    public TargetDigestGroup targetsConstituting(Feature feature) {
        final Collection<Job> jobs = jobsFor(feature);
        final List<TargetDigest> digests = newArrayList();
       
        for (Job job : jobs) {
            final TargetDigest targetDigest = new TargetDigest(job.url, job.url, job.name, job.status());
            digests.add(targetDigest);
            recognisedJobs.put(targetDigest.id(), job);
        }
       
        return new TargetDigestGroup(digests);
    }
View Full Code Here

Examples of org.netmelody.cieye.core.domain.TargetDigest

    public TargetDigestGroup targetsConstituting(Feature feature) {
        final Collection<BuildType> buildTypes = buildTypesFor(feature);
        final List<TargetDigest> digests = newArrayList();
       
        for (BuildType buildType : buildTypes) {
            final TargetDigest targetDigest = new TargetDigest(communicator.endpoint() + buildType.href, buildType.webUrl(), buildType.name, UNKNOWN);
            digests.add(targetDigest);
            recognisedBuildTypes.put(targetDigest.id(), buildType);
        }
       
        return new TargetDigestGroup(digests);
    }
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.