Hi manish,
For replicating all asset you have to iterate through the child of given path using node api and get path of all child then use Replicator API to replicate the asset like below.
replicator.replicate(session, ReplicationActionType.ACTIVATE, asset.getPath());.
You can use recursive call to get the child of child path.