public class TopologyServiceImpl extends java.lang.Object implements TopologyService
| Constructor and Description |
|---|
TopologyServiceImpl(TopologyDao topologyDao)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
protected void |
cleanUpComponents() |
protected void |
cleanUpComponents(java.lang.Long serverId,
java.lang.Long moduleId,
java.lang.String flowName,
java.util.List<java.lang.String> discoveredComponentNames) |
protected void |
cleanUpFlows() |
protected void |
cleanUpFlows(Module module,
java.lang.Long serverId,
java.lang.Long moduleId,
java.util.List<java.lang.String> discoveredFlowNames) |
protected void |
cleanUpModules() |
Filter |
createFilter(java.lang.String name,
java.lang.String description,
java.lang.String createdBy,
java.util.Set<Component> components)
Create a filter.
|
void |
delete(Notification notification) |
void |
deleteBusinessStream(BusinessStream businessStream)
Delete a business stream
|
void |
deleteBusinessStreamFlow(BusinessStreamFlow businessStreamFlow)
Delete a business stream flow
|
void |
deleteFilter(Filter filter) |
void |
deleteFilterComponents(java.lang.Long filterId) |
void |
deleteRoleFilter(RoleFilter roleFilter) |
void |
discover(java.util.List<Server> servers,
IkasanAuthentication authentication)
Method to discovery and populate Ikasan topology
|
void |
discover(Server server,
Module module,
java.util.List<Flow> flows)
Performs module discovery aka updates given module topology view with new latest flows and its components.
|
protected java.util.Set<Flow> |
discoverFlows(java.lang.Long serverId,
Module module,
java.util.List<Flow> flowList) |
java.util.List<BusinessStream> |
getAllBusinessStreams()
Get all BusinessStreams
|
java.util.List<Filter> |
getAllFilters() |
java.util.List<Flow> |
getAllFlows()
Get all flows.
|
java.util.List<Module> |
getAllModules()
Get all modules
|
java.util.List<Notification> |
getAllNotifications() |
java.util.List<Server> |
getAllServers()
Get all servers
|
java.util.List<BusinessStream> |
getBusinessStreamsByUserId(java.util.List<java.lang.Long> ids)
Get all BusinessStreams by a list of ids.
|
java.util.List<BusinessStream> |
getBusinessStreamsByUserId(java.lang.Long userId)
Get all BusinessStreams associated with a given user.
|
protected Component |
getComponent(java.util.Set<Component> components,
Component component) |
Filter |
getFilterByName(java.lang.String name) |
java.util.List<Flow> |
getFlowsByServerIdAndModuleId(java.lang.Long serverId,
java.lang.Long moduleId)
Get all flows by server id and module id.
|
Module |
getModuleByName(java.lang.String name)
Method to get a Module by its name.
|
Notification |
getNotificationByName(java.lang.String name) |
RoleFilter |
getRoleFilterByFilterId(java.lang.Long filterId) |
java.util.List<RoleFilter> |
getRoleFilters(java.util.List<java.lang.Long> roleIds) |
void |
initialiseModuleMetaData(Server server,
java.lang.String applicationName,
Module module)
Creates the Module metadata in IkasanModule DB table for the module or updates existing metadata
|
void |
save(Component component)
Save a component.
|
void |
save(Flow flow)
Save a flow.
|
void |
save(Module module)
Save a module.
|
void |
save(Notification notification) |
void |
save(Server server)
Save a server.
|
void |
saveBusinessStream(BusinessStream businessStream)
Save a BusinessStream.
|
void |
saveFilter(Filter filter) |
void |
saveRoleFilter(RoleFilter roleFilter) |
public TopologyServiceImpl(TopologyDao topologyDao)
topologyDao - public java.util.List<Server> getAllServers()
TopologyServicegetAllServers in interface TopologyServicepublic void save(Server server)
TopologyServicesave in interface TopologyServicepublic java.util.List<Module> getAllModules()
TopologyServicegetAllModules in interface TopologyServicepublic void save(Module module)
TopologyServicesave in interface TopologyServicepublic java.util.List<Flow> getAllFlows()
TopologyServicegetAllFlows in interface TopologyServicepublic void save(Flow flow)
TopologyServicesave in interface TopologyServicepublic java.util.List<BusinessStream> getAllBusinessStreams()
TopologyServicegetAllBusinessStreams in interface TopologyServicepublic void save(Component component)
TopologyServicesave in interface TopologyServicepublic void saveBusinessStream(BusinessStream businessStream)
TopologyServicesaveBusinessStream in interface TopologyServicepublic java.util.List<BusinessStream> getBusinessStreamsByUserId(java.lang.Long userId)
TopologyServicegetBusinessStreamsByUserId in interface TopologyServicepublic java.util.List<Flow> getFlowsByServerIdAndModuleId(java.lang.Long serverId, java.lang.Long moduleId)
TopologyServicegetFlowsByServerIdAndModuleId in interface TopologyServicepublic void deleteBusinessStreamFlow(BusinessStreamFlow businessStreamFlow)
TopologyServicedeleteBusinessStreamFlow in interface TopologyServicepublic Module getModuleByName(java.lang.String name)
TopologyServicegetModuleByName in interface TopologyServicepublic java.util.List<BusinessStream> getBusinessStreamsByUserId(java.util.List<java.lang.Long> ids)
TopologyServicegetBusinessStreamsByUserId in interface TopologyServicepublic void discover(java.util.List<Server> servers, IkasanAuthentication authentication) throws DiscoveryException
TopologyServicediscover in interface TopologyServiceDiscoveryExceptionpublic void initialiseModuleMetaData(Server server, java.lang.String applicationName, Module module)
initialiseModuleMetaData in interface TopologyServiceserver - applicationName - module - public void discover(Server server, Module module, java.util.List<Flow> flows) throws DiscoveryException
TopologyServicediscover in interface TopologyServiceserver - server wher given module residesmodule - module to be updatedflows - list of flows dto containing high level information about flowDiscoveryException - exceprotected java.util.Set<Flow> discoverFlows(java.lang.Long serverId, Module module, java.util.List<Flow> flowList)
protected void cleanup()
protected void cleanUpModules()
protected void cleanUpFlows()
protected void cleanUpComponents()
protected void cleanUpFlows(Module module, java.lang.Long serverId, java.lang.Long moduleId, java.util.List<java.lang.String> discoveredFlowNames)
protected void cleanUpComponents(java.lang.Long serverId,
java.lang.Long moduleId,
java.lang.String flowName,
java.util.List<java.lang.String> discoveredComponentNames)
protected Component getComponent(java.util.Set<Component> components, Component component)
public void deleteBusinessStream(BusinessStream businessStream)
TopologyServicedeleteBusinessStream in interface TopologyServicepublic Filter createFilter(java.lang.String name, java.lang.String description, java.lang.String createdBy, java.util.Set<Component> components)
TopologyServicecreateFilter in interface TopologyServicepublic java.util.List<Filter> getAllFilters()
getAllFilters in interface TopologyServicepublic void saveFilter(Filter filter)
saveFilter in interface TopologyServicepublic void deleteFilter(Filter filter)
deleteFilter in interface TopologyServicepublic void saveRoleFilter(RoleFilter roleFilter)
saveRoleFilter in interface TopologyServicepublic java.util.List<RoleFilter> getRoleFilters(java.util.List<java.lang.Long> roleIds)
getRoleFilters in interface TopologyServicepublic void deleteRoleFilter(RoleFilter roleFilter)
deleteRoleFilter in interface TopologyServicepublic RoleFilter getRoleFilterByFilterId(java.lang.Long filterId)
getRoleFilterByFilterId in interface TopologyServicepublic void deleteFilterComponents(java.lang.Long filterId)
deleteFilterComponents in interface TopologyServicepublic Filter getFilterByName(java.lang.String name)
getFilterByName in interface TopologyServicepublic void save(Notification notification)
save in interface TopologyServicepublic void delete(Notification notification)
delete in interface TopologyServicepublic Notification getNotificationByName(java.lang.String name)
getNotificationByName in interface TopologyServicepublic java.util.List<Notification> getAllNotifications()
getAllNotifications in interface TopologyServiceCopyright © 2007-2020 Ikasan. All Rights Reserved.