Skip to content

Primitives

salboaie edited this page Nov 13, 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 name > ) : specify also a node name Link: swarm

  • honey() : swarm home (in client or in the current request)

  • honey() : specify also phase Link: honey

  • 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