@Path("/datasources") @GET public List<Kafka2TupleMetadata> listDataSources() { return dao.listDataSources(); }
@Path("/publishments") @GET public List<Publishment> listPublishment() { return dao.listPublishment(); }
public void doUninstall() { // we should remove alert data source and stream definition while we do uninstall if (metadata.getStreams() == null) { return; } // iterate each stream descriptor and create alert datasource for each for (StreamDesc streamDesc : metadata.getStreams()) { alertMetadataService.removeDataSource(streamDesc.getStreamId()); alertMetadataService.removeStream(streamDesc.getStreamId()); } }
@Path("/streams") @POST public OpResult createStream(StreamDefinition stream) { return dao.createStream(stream); }
@Path("/datasources") @POST public OpResult addDataSource(Kafka2TupleMetadata dataSource) { return dao.addDataSource(dataSource); }
@Path("/publishments") @POST public OpResult addPublishment(Publishment publishment) { return dao.addPublishment(publishment); }
@Path("/topologies") @POST public OpResult addTopology(Topology t) { return dao.addTopology(t); }
@Path("/clear") @POST public OpResult clear() { return dao.clear(); }
@Path("/import") @POST public OpResult importModels(Models model) { return dao.importModels(model); }
@Path("/clusters") @GET public List<StreamingCluster> listClusters() { return dao.listClusters(); }
@Path("/clear/schedulestates") @POST public OpResult clearScheduleStates(int capacity) { return dao.clearScheduleState(capacity); }
@Path("/assignments") @GET public List<PolicyAssignment> listAssignmenets() { return dao.listAssignments(); }
@Path("/topologies") @GET public List<Topology> listTopologies() { return dao.listTopologies(); }
@Path("/export") @POST public Models export() { return dao.export(); }
@Path("/clusters") @POST public OpResult addCluster(StreamingCluster cluster) { return dao.addCluster(cluster); }
@Path("/schedulestates") @GET public ScheduleState latestScheduleState() { return dao.getScheduleState(); }
@Path("/assignments") @POST public OpResult addAssignmenet(PolicyAssignment pa) { return dao.addAssignment(pa); }
@Path("/alerts") @POST public OpResult addAlertPublishEvent(AlertPublishEvent event) { return dao.addAlertPublishEvent(event); }
@Override public boolean test(T t) { if (MetadataUtils.getKey(t).equalsIgnoreCase(id)) { return true; } return false; } }).toArray();