next up previous contents
Next: Parameters Up: Management Commands Previous: Example   Contents

replicateFile

public java.net.URI replicateFile(java.net.URI source,
                                  java.net.URI dest,
                                  java.lang.String protocol,
                                  int nstreams)

This method performs the task of replicating a file between grid-aware stores and registering the replica in the Replica Catalog as an atomic operation. This is the preferred method to `copy files around in the grid'. The difference to copyAndRegisterFile is that this operation only allows for GUID, LFN or SURL as the source file wheras copyAndRegisterFile explicitly forbids that. No new GUID is generated for the replica (hence the term).



2004-06-14