public class DefaultTopologyService extends Object implements TopologyService
Constructor and Description |
---|
DefaultTopologyService() |
DefaultTopologyService(long cacheTimeout) |
Modifier and Type | Method and Description |
---|---|
Graph |
getGraph(String metaTopologyId,
String namespace,
Criteria[] criteria,
int semanticZoomLevel) |
GraphProvider |
getGraphProvider(String metaTopologyId,
String namespace) |
MetaTopologyProvider |
getMetaTopologyProvider(String metaTopologyId) |
LayoutAlgorithm |
getPreferredLayoutAlgorithm(String metaTopologyId,
String namespace) |
void |
invalidate(String namespace) |
void |
invalidate(String metaTopologyId,
String namespace) |
void |
invalidateAll() |
boolean |
isCategoryAware(String namespace) |
void |
setServiceLocator(ServiceLocator serviceLocator) |
void |
setTopologyEntityCache(TopologyEntityCache topologyEntityCache) |
public DefaultTopologyService()
public DefaultTopologyService(long cacheTimeout)
cacheTimeout
- The cache timeout in seconds.
0 disables caching.public Graph getGraph(String metaTopologyId, String namespace, Criteria[] criteria, int semanticZoomLevel)
getGraph
in interface TopologyService
public GraphProvider getGraphProvider(String metaTopologyId, String namespace)
getGraphProvider
in interface TopologyService
public LayoutAlgorithm getPreferredLayoutAlgorithm(String metaTopologyId, String namespace)
getPreferredLayoutAlgorithm
in interface TopologyService
public MetaTopologyProvider getMetaTopologyProvider(String metaTopologyId) throws NoSuchProviderException
getMetaTopologyProvider
in interface TopologyService
NoSuchProviderException
public boolean isCategoryAware(String namespace)
isCategoryAware
in interface TopologyService
public void setServiceLocator(ServiceLocator serviceLocator)
public void setTopologyEntityCache(TopologyEntityCache topologyEntityCache)
public void invalidate(String namespace)
invalidate
in interface TopologyCache
public void invalidate(String metaTopologyId, String namespace)
invalidate
in interface TopologyCache
public void invalidateAll()
invalidateAll
in interface TopologyCache
Copyright © 2021. All rights reserved.