org.das2.catalog.DasNodeFactory

Public static generator functions for das2 federated catalog node objects.

DasNodeFactory( )


defaultDataPath

defaultDataPath( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


defaultTestPath

defaultTestPath( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getNearestNode

getNearestNode( String sUrl, ProgressMonitor mon, boolean bReload ) → org.das2.catalog.DasNode

Kind of like traceroute, try to resolve successively longer paths until you get to one that fails. For filesystem type URLS (http:, file:, etc.) this is the same as getNode().

Parameters

sUrl - An autoplot URL
mon - a ProgressMonitor
bReload - a boolean

Returns:

The nearest loadable DasNode for the path specified.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getNode

getNode( String sUrl, ProgressMonitor mon, boolean bReload ) → org.das2.catalog.DasNode

Get a node from the global node map by URL. This function tries to load and return the node for the given URL. If the file portion of the node is a recognized filesystem type then that exact URL is attempted. For example: https://space.physics.uiowa.edu/juno/test/random_source.data would trigger a filesystem type lookup that expects an exact match. While a URL such as: tag:das2.org,2012:test:/uiowa/juno/random_collection/das2 For space savings, tag:das2.org,2012: may be left off of the given URLs. If nothing can be matched, null is return. The resulting parsed node is saved in a cache to avoid repeated network traffic.

Parameters

sUrl - a String
mon - a ProgressMonitor
bReload - - Reload the node definition from the original source

Returns:

The node requested, or throws an error

[search for examples] [view on GitHub] [view on old javadoc] [view source]