save
public boolean save(String routerId,
InputStream is)
Save the graph data, but don't load it in memory. The file location is based on the
router id. If the graph already exists, the graph will be overwritten. The relationship
between router IDs and paths in the filesystem is determined by the graphService
implementation.
- Specified by:
save
in interface GraphSource.Factory
- Parameters:
routerId
- the routerId of the graph
is
- graph data as input stream
- Returns:
- true if the operation succedded, false otherwise (will catch IOExceptions).