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)
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)
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)
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)
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)
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)
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/")
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle('ua.srgn.integration.java.SomeVerticle')
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')
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')
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle( 'com.chris.FacilityManagerPro.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle('SomeVerticle')
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')
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle('me.mayou.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('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')
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle( 'com.sample.HelloWorld.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle( 'com.unrulymedia.vertx_demo.test.integration.java.SomeVerticle')
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)
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')
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')
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')
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle('de.atk_solutions.integration.java.SomeVerticle')
""" 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)
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle('it.redhat.integration.java.SomeVerticle')
def test_deploy_arbitrary_verticle(): vertx.deploy_verticle('${package}.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( 'com.hascode.tutorial.vertx_tutorial.integration.java.SomeVerticle')