@Test public void listTopologies() { }
public List<Topology> listTopologies(String userId) { List<Topology> topologies = topologyDao.findAll(userId); for (Topology topology : topologies) { TopologyInfo topologyInfo = stormEngine.getTopologyInfo(topology); topology.setStatus(topologyInfo.getStatus()); } return topologies; }
TopologyService { public List<Topology> listTopologies(String userId) { List<Topology> topologies = topologyDao.findAll(userId); for (Topology topology : topologies) { TopologyInfo topologyInfo = stormEngine.getTopologyInfo(topology); topology.setStatus(topologyInfo.getStatus()); } return topologies; } }
TopologyService { public List<Topology> listTopologies(String userId) { List<Topology> topologies = topologyDao.findAll(userId); for (Topology topology : topologies) { TopologyInfo topologyInfo = stormEngine.getTopologyInfo(topology); topology.setStatus(topologyInfo.getStatus()); } return topologies; } @Inject  TopologyService(TopologyDao topologyDao, ComponentService componentService, 
            ResourceService resourceService, ResourceEntryService resourceEntryService, 
            SerializationService serializationService, FileService fileService, 
            FrameworkService frameworkService, ClusterService clusterService, 
            LogService logService, StormEngine stormEngine, StreamflowConfig streamflowConfig); }
TopologyService { public List<Topology> listTopologies(String userId) { List<Topology> topologies = topologyDao.findAll(userId); for (Topology topology : topologies) { TopologyInfo topologyInfo = stormEngine.getTopologyInfo(topology); topology.setStatus(topologyInfo.getStatus()); } return topologies; } @Inject  TopologyService(TopologyDao topologyDao, ComponentService componentService, 
            ResourceService resourceService, ResourceEntryService resourceEntryService, 
            SerializationService serializationService, FileService fileService, 
            FrameworkService frameworkService, ClusterService clusterService, 
            LogService logService, StormEngine stormEngine, StreamflowConfig streamflowConfig); List<Topology> listAllTopologies(); List<Topology> listTopologies(String userId); Topology createTopology(Topology topology, String userId); Topology getTopology(String topologyId, String userId); boolean hasTopology(String topologyName, String userId); void deleteTopology(String topologyId, String userId); void updateTopology(String topologyId, Topology topology, String userId); Topology submitTopology(String topologyId, String userId, String clusterId,
            String logLevel, String classLoaderPolicy); void killTopology(String topologyId, int waitTimeSecs, boolean async, String userId); void clearTopology(String topologyId, String userId); TopologyInfo getTopologyInfo(String topologyId, String userId); TopologyLog getTopologyLogLocal(String topologyId, String userId, long offset, long limit); TopologyLogPage getTopologyLogCluster(String topologyId, String userId, 
            TopologyLogCriteria criteria); void clearTopologyLog(String topologyId, String userId); Topology initializeTopologyObject(Topology topology); String generateTopologyJar(Topology topology, Cluster cluster); }
TopologyService { public List<Topology> listTopologies(String userId) { List<Topology> topologies = topologyDao.findAll(userId); for (Topology topology : topologies) { TopologyInfo topologyInfo = stormEngine.getTopologyInfo(topology); topology.setStatus(topologyInfo.getStatus()); } return topologies; } @Inject  TopologyService(TopologyDao topologyDao, ComponentService componentService, 
            ResourceService resourceService, ResourceEntryService resourceEntryService, 
            SerializationService serializationService, FileService fileService, 
            FrameworkService frameworkService, ClusterService clusterService, 
            LogService logService, StormEngine stormEngine, StreamflowConfig streamflowConfig); List<Topology> listAllTopologies(); List<Topology> listTopologies(String userId); Topology createTopology(Topology topology, String userId); Topology getTopology(String topologyId, String userId); boolean hasTopology(String topologyName, String userId); void deleteTopology(String topologyId, String userId); void updateTopology(String topologyId, Topology topology, String userId); Topology submitTopology(String topologyId, String userId, String clusterId,
            String logLevel, String classLoaderPolicy); void killTopology(String topologyId, int waitTimeSecs, boolean async, String userId); void clearTopology(String topologyId, String userId); TopologyInfo getTopologyInfo(String topologyId, String userId); TopologyLog getTopologyLogLocal(String topologyId, String userId, long offset, long limit); TopologyLogPage getTopologyLogCluster(String topologyId, String userId, 
            TopologyLogCriteria criteria); void clearTopologyLog(String topologyId, String userId); Topology initializeTopologyObject(Topology topology); String generateTopologyJar(Topology topology, Cluster cluster); static final Logger LOG; }