def run():
    print 'machine echo side a'
    ma = Machine('proxy_runner')
    ma.add_peer(peer)
    n = ProxyNode('node.example.TestNode')
    ma.add(n)

    return ma
示例#2
0
def run():
    print 'running simple machine'
    m = Machine()
    m.add_peer('PYRO:obj_d49b952840174542be460c635eec8436@localhost:55090')
    a = A()
    m.add(a)

    print 'perform a.one += 4'
    a.one += 4
    return m
def run():
    ma = Machine('example')
    m1 = Machine('foo')
    m2 = Machine('bar')
    n = TestNode()
    n2 = OtherNode()
    pr = Prox()

    a = Address('example.TestNode')
    pr.address = a

    print '---add machines---'
    ma.add(n, n2, pr)
    ma.add_peer('PYRO:obj_47120b94fb6347e89c1ed65024e2061b@localhost:56894')
    ma.add_peer('PYRO:obj_fd447709e96f4ce4a20cfc6c6b3b5dc9@localhost:41106')
    return ma
def run():
    print 'running direction direction'
    m = Machine()
    a= A()
    nodes = [a, B()]
    m.add(*nodes)
    a.one += 1
    print '>  Step up one'
    a.one += 1
    print '>  Step up three'
    a.one += 3
    print '>  Step down two'
    a.one -= 2
    print '>  Step is 4'
    a.one = 100

    return a
def run():
    ma = Machine('example')
    n = TestNode()
    ma.add(n)
    return ma
def run():
    ma = Machine('example')
    n = AlphaNode()
    ma.add(n)
    return ma