N
- The node class for this DataAccessor. Must extend Serializable.E
- The edge class for this DataAccessor. Must extend Serializable.public class DataAccessorClient<N extends java.io.Serializable,E extends java.io.Serializable> extends java.lang.Object implements DataAccessor<N,E>
RecordAccessorServlet
, and retrieves
the various data through servlet invocations. The data received from the
servlet is transmitted as serialized objects to enhance performance.Constructor and Description |
---|
DataAccessorClient(java.net.URL documentBase)
Creates a new DataAccessorClient object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
extendGraph(java.lang.String graphName,
Graph<N,E> graph,
N node)
Extend the given graph around the specified node.
|
boolean |
extendTree(java.lang.String treeName,
Tree<N> tree,
N node)
Extend the given tree around the specified node.
|
java.util.Set<N> |
getDataset(java.lang.String datasetName)
Retrieve the dataset from the underlying data source.
|
java.util.Set<java.lang.String> |
getDatasetNames()
Get the names of the available datasets from this accessor.
|
Graph<N,E> |
getGraph(java.lang.String graphName)
Retrieve the graph from the underlying data source.
|
java.util.Set<java.lang.String> |
getGraphNames()
Get the names of the available graphs from this accessor.
|
Grid<N> |
getGrid(java.lang.String gridName)
Retrieve the grid from the underlying data source.
|
java.util.Set<java.lang.String> |
getGridNames()
Get the names of the available grids from this accessor.This method
issues a servlet call to retrieve the grid names.
|
DataStructureType |
getStructureType(java.lang.String dataName)
Get the data type for the specified dataName.
|
Tree<N> |
getTree(java.lang.String treeName)
Retrieve the tree from the underlying data source.
|
java.util.Set<java.lang.String> |
getTreeNames()
Get the names of the available trees from this accessor.
|
void |
setConfig(java.io.InputStream inStream)
Set the configuration information from an input stream.
|
void |
setDocBase(java.net.URL documentBase)
Set the document base for this DataAccessorClient.
|
void |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Set any initialization parameters required by this data accessor.
|
public DataAccessorClient(java.net.URL documentBase)
documentBase
- The document basepublic boolean extendGraph(java.lang.String graphName, Graph<N,E> graph, N node)
extendGraph
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
graphName
- The name of the graphgraph
- The graph to extendnode
- The node to use as an extension point.public boolean extendTree(java.lang.String treeName, Tree<N> tree, N node)
extendTree
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
treeName
- The name of the graphtree
- The graph to extendnode
- The node to use as an extension point.public java.util.Set<N> getDataset(java.lang.String datasetName)
getDataset
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
datasetName
- the name of the datasetpublic java.util.Set<java.lang.String> getDatasetNames()
getDatasetNames
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
public Graph<N,E> getGraph(java.lang.String graphName)
getGraph
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
graphName
- the name of the graphpublic java.util.Set<java.lang.String> getGraphNames()
getGraphNames
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
public Grid<N> getGrid(java.lang.String gridName)
getGrid
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
gridName
- the name of the gridpublic java.util.Set<java.lang.String> getGridNames()
getGridNames
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
public DataStructureType getStructureType(java.lang.String dataName)
getStructureType
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
dataName
- the name of the datapublic Tree<N> getTree(java.lang.String treeName)
getTree
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
treeName
- the name of the treepublic java.util.Set<java.lang.String> getTreeNames()
getTreeNames
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
public void setConfig(java.io.InputStream inStream)
setConfig
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
inStream
- Input stream which is the source of the configuration
informationpublic void setDocBase(java.net.URL documentBase)
documentBase
- The document basepublic void setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
docBase
parameter, and
initializes itself to the specifiedsetInitParameters
in interface DataAccessor<N extends java.io.Serializable,E extends java.io.Serializable>
parameters
- a map of initialization parameters