Subscribe

What is the difference between runner.run(request) and runner.list(request)?

I can get List of VserverInfo in these two ways:

 

1)  VserverGetIterRequest vServerListReq = new VserverGetIterRequest();
      List<VserverInfo> vServers = runner.list(vServerListReq);

 

2)

VserverGetIterRequest vServerListReq = new VserverGetIterRequest();
VserverGetIterResponse vServerListResp = runner.run(vServerListReq);

List<VserverInfo> vServers = vServerListResp.getAttributesList();

 

Are they equivalent? Which one is better besides that first way saves one line of code?

Thanks!