Example #1
0
 def test_deploy(self):
     global handler_id
     def handler(message):
         if message.body == "started":
             tu.test_complete()
     handler_id = EventBus.register_handler("test-handler", False, handler)
     conf = {'foo' : 'bar'}
     vertx.deploy_verticle("core/deploy/child.py", conf)
Example #2
0
def deployit(count):
    def handler(err, deploy_id):
        print "deployed ", count
        if deploy_id is not None:
            undeployit(deploy_id, count)
    #child_name = 'child%d.py' % count
    print "deploying ", count
    vertx.deploy_verticle("child.py", handler=handler)
    def test_deploy_fail(self):
        def deploy_handler(err, id):
            tu.azzert(err is not None)
            tu.azzert(id is None)
            tu.test_complete()

        vertx.deploy_verticle("core/deploy/notexists.py",
                              handler=deploy_handler)
Example #4
0
def deployit(count):
    def handler(deploy_id):
        print "deployed ", count
        if deploy_id is not None:
            undeployit(deploy_id, count)
    #child_name = 'child%d.py' % count
    print "deploying ", count
    vertx.deploy_verticle("child.py", handler=handler)
Example #5
0
    def test_deploy_fail(self):

        def deploy_handler(err, id):
            tu.azzert(err is not None)
            tu.azzert(id is None)
            tu.test_complete()

        vertx.deploy_verticle("core/deploy/notexists.py", handler=deploy_handler)
Example #6
0
 def test_deploy(self):
     global handler_id
     def handler(message):
         if message.body == "started":
             tu.test_complete()
     handler_id = EventBus.register_handler("test-handler", False, handler)
     conf = {'foo' : 'bar'}
     vertx.deploy_verticle("core/deploy/child.py", conf)
Example #7
0
    def test_deploy(self):

        def handler(message):
            if message.body == "started":
                tu.test_complete()
        EventBus.register_handler("test-handler", False, handler)
        conf = {'foo' : 'bar'}
        def deploy_handler(err, ok):
            tu.azzert(err == None)

        vertx.deploy_verticle("core/deploy/child.py", conf, 1, deploy_handler)
    def test_deploy(self):
        def handler(message):
            if message.body == "started":
                tu.test_complete()

        EventBus.register_handler("test-handler", False, handler)
        conf = {'foo': 'bar'}

        def deploy_handler(err, ok):
            tu.azzert(err == None)

        vertx.deploy_verticle("core/deploy/child.py", conf, 1, deploy_handler)
    def test_deploy2(self):
        def deploy_handler(err, id):

            tu.azzert(err is None)
            tu.azzert(id is not None)

            def undeploy_handler(err):
                tu.azzert(err is None)
                tu.test_complete()

            vertx.undeploy_verticle(id, handler=undeploy_handler)

        vertx.deploy_verticle("core/deploy/child2.py", handler=deploy_handler)
Example #10
0
    def test_deploy2(self):

        def deploy_handler(err, id):

            tu.azzert(err is None)
            tu.azzert(id is not None)

            def undeploy_handler(err):
                tu.azzert(err is None)
                tu.test_complete()

            vertx.undeploy_verticle(id, handler=undeploy_handler)

        vertx.deploy_verticle("core/deploy/child2.py", handler=deploy_handler)
Example #11
0
def deploy_mongo(err, dep_id):
    if err is not None:
        err.printStackTrace()
    else:
        def static_handler(err,dep_id):
            if err: logger.info(err.printStackTrace())
            else: 
                logger.info("MOD-STATIC-DATA-OK")
        logger.info("STATIC-DATA-START-DEPLOY")
        if (global_config.get("name") == "PRODUCTION"):
            logger.info("PRODUCTION ENVIROMENT")
            vertx.deploy_verticle('server/utils/prod_static_data.py', handler=static_handler)
        elif (global_config.get("name") == "TEST"):
            logger.info("TEST ENVIROMENT")
            vertx.deploy_verticle('server/utils/test_static_data.py', handler=static_handler)
        logger.info("MOD-MONGO-OK uid: %s"% dep_id)
Example #12
0
    def test_undeploy(self):
        print "in test undeploy"
        def handler(message):
            return

        EventBus.register_handler("test-handler", False, handler)

        conf = {'foo' : 'bar'}

        def undeploy_handler(err):
            tu.azzert(err == None)
            tu.test_complete()

        def deploy_handler(err, id):
            tu.azzert(err == None)
            vertx.undeploy_verticle(id, handler=undeploy_handler)

        vertx.deploy_verticle("core/deploy/child.py", conf, handler=deploy_handler)
    def test_undeploy(self):
        print "in test undeploy"

        def handler(message):
            return

        EventBus.register_handler("test-handler", False, handler)

        conf = {'foo': 'bar'}

        def undeploy_handler(err):
            tu.azzert(err == None)
            tu.test_complete()

        def deploy_handler(err, id):
            tu.azzert(err == None)
            vertx.undeploy_verticle(id, handler=undeploy_handler)

        vertx.deploy_verticle("core/deploy/child.py",
                              conf,
                              handler=deploy_handler)
Example #14
0
    else:
        logger.info("MOD-AUTH-MGR uid: %s" %dep_id)
def deploy_mailer(err, dep_id):
    if err is not None:
        err.printStackTrace()
    else:
        logger.info("MOD-MAILER uid: %s" %dep_id)


#vertx.deploy_module('io.vertx~mod-unzip~1.0.0-final', {"address":"unzip.module"}, 1,handler=deploy_handler)

#main server / route matcher / eventbus
logger.info("WEB-SERVER-START-DEPLOY")
logger.info("MOD-MONGO-START-DEPLOY")
logger.info("MOD-AUTH-MGR-START-DEPLOY")
logger.info("MOD-MAILER-START-DEPLOY")

vertx.deploy_module('io.vertx~mod-mongo-persistor~2.0.0-final', global_config.get("mongodb"), 1,handler=deploy_mongo)
vertx.deploy_module('io.vertx~mod-auth-mgr~2.0.0-final', None, 1,handler=deploy_auth)
vertx.deploy_module('io.vertx~mod-mailer~2.0.0-final', global_config.get("mailer"), 1,handler=deploy_mailer)
vertx.deploy_verticle('server/web_server.py', global_config, 1, handler=web_server_deploy)
vertx.deploy_verticle('server/sock_js_server.py', global_config, 1, handler=sock_js_server_deploy)
vertx.deploy_verticle('server/presenation_server.py', global_config, 1, handler=sock_js_server_deploy)

#logger.info("load config : %s"% config)
#logger.info("webserver config : %s"% config.main)
#logger.info("mongopersistor config: %s"% config.mongo)
#logger.info("webserver config: %s"% auth_config)
#cleaner.periodic_cleaner(5000,"files/temp/",".*\.uploaded")
#cleaner.periodic_cleaner(15000,"files/symlink/")
Example #15
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('ua.srgn.integration.java.SomeVerticle')
Example #16
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'br.com.ricardolonga.vertxpgpoc.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('pl.zdanek.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('net.ielatif.vertx.integration.java.SomeVerticle')
Example #19
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('fr.zenika.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('me.normanmaurer.vertx.integration.java.SomeVerticle')
Example #21
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'com.chris.FacilityManagerPro.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('SomeVerticle')
Example #23
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'com.mycompany.vertx_micro_services.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'import io.cozmic.test.test.integration.java.SomeVerticle')
Example #25
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('me.mayou.integration.java.SomeVerticle')
Example #26
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'com.mycompany.myproject.test.integration.java.SomeVerticle')
Example #27
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('org.jianyi.yibuyiqu.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('com.task.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('org.lima.vertx.was.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('import io.cozmic.test.test.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('us.coderscamp.blog.integration.java.SomeVerticle')
Example #32
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'com.sample.HelloWorld.integration.java.SomeVerticle')
Example #33
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'com.unrulymedia.vertx_demo.test.integration.java.SomeVerticle')
Example #34
0
import vertx
from config import app_config

vertx.deploy_verticle('WebSocketServer.py',app_config.get('socket.config'),1)
vertx.deploy_verticle('HttpServer.py',app_config.get('http.config'),1)
vertx.deploy_verticle('HttpClient.py',app_config.get('http.client.config'),1)
Example #35
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('org.affiliates.java.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('factoidstore.integration.java.SomeVerticle')
Example #37
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('org.jacpfx.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('com.mycompany.myproject.test.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'com.sample.HelloWebsocketClient.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle("com.sample.HelloWebsocket.integration.java.SomeVerticle")
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('com.malsolo.vertx.first.demo.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('org.brylex.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('com.zegates.vozco.integration.java.SomeVerticle')
Example #44
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('b2b.albazh.info.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('org.groovestomp.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('se.consid.reactive.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'com.mycompany.mypredectivefarm_vert.x.integration.java.SomeVerticle')
def test_assert_failed_from_verticle():
    conf = {'type' : 'assert_fail'}
    vertx.deploy_verticle('test_verticle.py', conf)
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('net.netmindz.integration.java.SomeVerticle')
Example #50
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('de.atk_solutions.integration.java.SomeVerticle')
Example #51
0
"""
Startet die App

@author Markus Tacker <*****@*****.**>
"""

import vertx
from core.event_bus import EventBus

def log_event(message):
    print ">> %s" % message.body

EventBus.register_handler('log.event', False, log_event)

config = vertx.config()

vertx.deploy_verticle("fetchcurators.py", config)
vertx.deploy_verticle("fetchfavorites.py", config)
vertx.deploy_verticle("fetchfriends.py", config)
vertx.deploy_verticle("fetchfavorites.py", config)
vertx.deploy_verticle("createfavorite.py", config)
vertx.deploy_verticle("createretweet.py", config)
vertx.deploy_verticle("publishretweets.py", config)
Example #52
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('it.redhat.integration.java.SomeVerticle')
Example #53
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('${package}.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('org.affiliates.java.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('io.vertx.amqp.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('com.io.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('de.atk_solutions.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle('it.redhat.integration.java.SomeVerticle')
Example #59
0
def test_deploy_arbitrary_verticle():
    vertx.deploy_verticle(
        'com.hascode.tutorial.vertx_tutorial.integration.java.SomeVerticle')