Skip to content

Primitives

salboaie edited this page Dec 10, 2012 · 7 revisions

Special functions that you can use:

In swarming code as members of the current swarm (with "this." )

  • swarm( < phase name >) : swarm in another phase

  • swarm(< phase name >, < adapter|group name > ) : specify also a node or group name Link: swarm

  • home() : send current swarm to the home node (the node that started current swarm)

  • home() : specify also phase Link: home

  • getSwarmName()

  • safeSwarm(phaseName, nodeHint,timeOut,retryTimes) // not ready for use, experimental

  • ...

in adapters (in APIs and phases too, but not with "this" because these are global functions)

  • startSwarm(< swarm name >, < ctor> , ...args)
  • startRemoteSwarm(, , < swarm name >, < ctor> , ...args)
  • getCurrentSession()
  • getCurrentTenant()

in clients (examples in tests)

  • createClient(ClientAdapterHost, ClientAdapterPort, user, securityToken, tenant)
  • startSwarm(< swarm name >, < ctor> , ...args)
  • startRemoteSwarm(, < swarm name >, < ctor> , ...args)
  • wsStartSwarm
Clone this wiki locally