Search in sources :

Example 11 with TopologyEditorMetadata

use of com.hortonworks.streamline.streams.catalog.TopologyEditorMetadata in project streamline by hortonworks.

the class RestIntegrationTest method createTopologyEditorMetadata.

private TopologyEditorMetadata createTopologyEditorMetadata(Long topologyId, String info) {
    TopologyEditorMetadata topologyEditorMetadata = new TopologyEditorMetadata();
    topologyEditorMetadata.setTopologyId(topologyId);
    topologyEditorMetadata.setData(info);
    topologyEditorMetadata.setTimestamp(System.currentTimeMillis());
    return topologyEditorMetadata;
}
Also used : TopologyEditorMetadata(com.hortonworks.streamline.streams.catalog.TopologyEditorMetadata)

Aggregations

TopologyEditorMetadata (com.hortonworks.streamline.streams.catalog.TopologyEditorMetadata)11 Timed (com.codahale.metrics.annotation.Timed)5 Path (javax.ws.rs.Path)5 QueryParam (com.hortonworks.registries.common.QueryParam)3 WSUtils.buildEdgesFromQueryParam (com.hortonworks.streamline.common.util.WSUtils.buildEdgesFromQueryParam)3 WSUtils.buildEdgesToQueryParam (com.hortonworks.streamline.common.util.WSUtils.buildEdgesToQueryParam)3 WSUtils.currentVersionQueryParam (com.hortonworks.streamline.common.util.WSUtils.currentVersionQueryParam)3 WSUtils.versionIdQueryParam (com.hortonworks.streamline.common.util.WSUtils.versionIdQueryParam)3 BaseTopologyRule (com.hortonworks.streamline.streams.catalog.BaseTopologyRule)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 TypeReference (com.fasterxml.jackson.core.type.TypeReference)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 Function (com.google.common.base.Function)1 Joiner (com.google.common.base.Joiner)1 Preconditions (com.google.common.base.Preconditions)1 Collections2 (com.google.common.collect.Collections2)1 ImmutableList (com.google.common.collect.ImmutableList)1 ImmutableSet (com.google.common.collect.ImmutableSet)1 Lists (com.google.common.collect.Lists)1