Esempio n. 1
0
 public EzyTcpClient(EzyClientConfig config)
 {
     this.config             = config;
     this.name               = config.getClientName();
     this.status             = EzyConnectionStatus.NULL;
     this.status             = EzyConnectionStatus.NULL;
     this.pingManager        = new EzySimplePingManager(config.getPing());
     this.pingSchedule       = new EzyPingSchedule(this);
     this.handlerManager     = new EzySimpleHandlerManager(this);
     this.networkStatistics  = new EzySimpleStatistics();
     this.requestSerializer  = new EzySimpleRequestSerializer();
     this.settingUp          = new EzySimpleSetup(handlerManager);
     this.unloggableCommands = newUnloggableCommands();
     this.socketClient       = newSocketClient();
     this.logger             = EzyLoggerFactory.getLogger(GetType());
 }
Esempio n. 2
0
 public void setClient(EzyClient client)
 {
     this.client         = client;
     this.handlerManager = client.getHandlerManager();
 }
 public void setHandlerManager(EzyHandlerManager handlerManager)
 {
     this.handlerManager = handlerManager;
     this.dataHandlers   = handlerManager.getDataHandlers();
     this.eventHandlers  = handlerManager.getEventHandlers();
 }
 public EzySimpleSetup(EzyHandlerManager handlerManager)
 {
     this.handlerManager = handlerManager;
     this.appSetups      = new Dictionary <String, EzyAppSetup>();
     this.pluginSetups   = new Dictionary <String, EzyPluginSetup>();
 }