# 需要导入模块: from twisted.internet.protocol import ServerFactory [as 别名]# 或者: from twisted.internet.protocol.ServerFactory importdoStart[as 别名]defdoStart(self):debug("Starting factory.") ServerFactory.doStart(self) 开发者ID:cahirwpz,项目名称:tpserver-py,代码行数:5,代码来源:server.py ...
importorg.apache.ftpserver.FtpServerFactory;//导入依赖的package包/类protectedvoidinitFtpServer()throwsException{FtpServerFactoryserverFactory =newFtpServerFactory();// setup user management to read our users.properties and use clear text passwordsFile file =newFile("src/test/resources/users.properties"...
LOG.info("STARTING server instance 127.0.0.1:{}", port); ZooKeeperServer zks =newZooKeeperServer(dataDir, dataDir,3000); factory.startup(zks); Assert.assertTrue("waiting for server up", ClientBase.waitForServerUp("127.0.0.1:"+ port, CONNECTION_TIMEOUT)); } 开发者ID:maoling,项目名称:fuck...
importorg.apache.cxf.jaxrs.JAXRSServerFactoryBean;//导入方法依赖的package包/类@OverridepublicJaxrsServercreateJaxrsServer(Class<?> serviceInterface, Object serviceImplementation){finalString serviceName = namingStrategy.get().serviceName(serviceInterface);finalConfig serverConfig = configService.createServer...
server.stop(); serverThread.interrupt(); } } } 开发者ID:airlift,项目名称:drift,代码行数:31,代码来源:TestApacheThriftMethodInvoker.java 示例4: startRPCServer3 ▲点赞 2▼ importorg.apache.thrift.protocol.TBinaryProtocol.Factory;//导入依赖的package包/类publicstaticvoidstartRPCServer3(leafServer le...
defstart_websocket_server():"""Function to start the websocket server."""importasyncioifnotos.path.exists(LOGFOLDER): os.makedirs(LOGFOLDER) logging.basicConfig(filename=LOGFOLDER+"/"+ WEBSOCKETLOG,level=LOGLEVEL) logging.info("Starting Server") ...
serverURL ="jdbc:hsqldb:"+ databaseDir.getCanonicalPath() + File.separator +"openfire"; }catch(IOException ioe) { Log.error("EmbeddedConnectionProvider: Error starting connection pool: ", ioe); }finalConnectionFactory connectionFactory =newDriverManagerConnectionFactory(serverURL,"sa...
crt_path = os.path.expanduser('~/.mcloud/%s.crt'% self.host)classNoKeyError(Exception):passtry:ifnotself.no_sslandself.host !='127.0.0.1':ifnotos.path.exists(key_path):raiseNoKeyError('Key for server "%s" not found in file "%s"'% (self.host, key_path))ifnotos.path.exis...
importorg.eclipse.jetty.websocket.WebSocketClientFactory;//导入依赖的package包/类@Beforepublicvoidbefore()throwsException{// start the test serverLOG.info("Starting server"); mServer =newTestServer(); mServer.start();// get URI of the servermServerUri =newURI("ws://localhost:"+ mServer.getLo...
System.out.println("Starting the hello server..."); latch.countDown(); server.serve(); }catch(Exception e) { e.printStackTrace(); } } 开发者ID:sofn,项目名称:trpc,代码行数:25,代码来源:DemoServer.java 示例2: createThreadedSelectorServer ...