Retrieve CORBA Server associated with deferred task.

Usage

getRequestServer(name, index=1)

Arguments

name The name under which the task was stored.
index The index of the task within the named group.

Description

This returns the IOR of the CORBA server to which the task was dispatched as a deferred (background) call. This is done via the .deferred argument of the .Corba function. This function is most useful in distributed task management when we determine the server associated with a task that has just completed.

Value

A character vector of one or more CORBA IOR strings identifying the CORBA server associated with the deferred task indicated by group name and index.

Author(s)

Duncan Temple Lang

See Also

getRequestStatus, getRequestValue, .Corba

Examples


 for(i in servers)
   .Corba(i, "bar", 1,2,3,.deferred="groupName")
 while(deferredRequestList()[["groupName"]] > 0) {
  for(i in 1:length(servers)) {
       # check if this one has completed
    if(getRequestStatus("groupName",i) == 0) {
        # since it has completed, use the server for another
        # task and remove this current task.
      .Corba(getRequestServer(),1,2,3,.deferred="groupName")
       values[[length(values)+1]] <- getRequestValue("groupName", i)
       removeRequest("groupName", i)
    }
  }
 }


[Package Contents]