public void start() throws IOException, GeneralSecurityException, ConfigurationException {
  String keystoreAlias=null;
  AuthenticationInfo authenticationInfo=null;
  if (useSSL) {
    authenticationInfo=SecurityHelper.loadAuthenticationInformation(TUNGSTEN_APPLICATION_NAME.REPLICATOR);
    if (authenticationInfo != null) {
      keystoreAlias=authenticationInfo.getKeystoreAliasForConnectionType(SecurityConf.KEYSTORE_ALIAS_REPLICATOR_MASTER_TO_SLAVE);
      logger.info("Setting up password manager to authenticate encrypted connections");
      passwordManager=new PasswordManager(authenticationInfo.getParentPropertiesFileLocation());
    }
  }
  logger.info("Opening THL server: store name=" + storeName + " host="+ host+ " port="+ port);
  socketService=new ServerSocketService();
  socketService.setAddress(new InetSocketAddress(host,port));
  socketService.setUseSSL(useSSL,keystoreAlias,authenticationInfo);
  socketService.bind();
  logger.info("Opened socket: host=" + socketService.getAddress() + " port="+ socketService.getLocalPort()+ " useSSL="+ useSSL);
  thd=new Thread(this,"THL Server [" + storeName + ":"+ host+ ":"+ port+ "]");
  thd.start();
}

public void start ( ) throws IOException , GeneralSecurityException , ConfigurationException { String keystoreAlias = null ; AuthenticationInfo authenticationInfo = null ; if ( useSSL ) { authenticationInfo = SecurityHelper . loadAuthenticationInformation ( TUNGSTEN_APPLICATION_NAME . REPLICATOR ) ; if ( authenticationInfo != null ) { keystoreAlias = authenticationInfo . getKeystoreAliasForConnectionType ( SecurityConf . KEYSTORE_ALIAS_REPLICATOR_MASTER_TO_SLAVE ) ; logger . info ( "Setting up password manager to authenticate encrypted connections" ) ; passwordManager = new PasswordManager ( authenticationInfo . getParentPropertiesFileLocation ( ) ) ; } } logger . info ( "Opening THL server: store name=" + storeName + " host=" + host + " port=" + port ) ; socketService = new ServerSocketService ( ) ; socketService . setAddress ( new InetSocketAddress ( host , port ) ) ; socketService . setUseSSL ( useSSL , keystoreAlias , authenticationInfo ) ; socketService . bind ( ) ; logger . info ( "Opened socket: host=" + socketService . getAddress ( ) + " port=" + socketService . getLocalPort ( ) + " useSSL=" + useSSL ) ; thd = new Thread ( this , "THL Server [" + storeName + ":" + host + ":" + port + "]" ) ; thd . start ( ) ; }
start up the thl server , which spawns a service thread .
