예제 #1
0
  private boolean storeConfig() {
    synchronized (this) {
      try {
        Config config = m_configDao.createLocal();

        config.setId(m_configId);
        config.setKeyId(m_configId);
        config.setName(CONFIG_NAME);
        config.setContent(m_thirdPartyConfig.toString());
        m_configDao.updateByPK(config, ConfigEntity.UPDATESET_FULL);
      } catch (Exception e) {
        Cat.logError(e);
        return false;
      }
    }
    return true;
  }
예제 #2
0
 public List<Http> queryHttps() {
   return m_thirdPartyConfig.getHttps();
 }
예제 #3
0
 public List<Socket> querSockets() {
   return m_thirdPartyConfig.getSockets();
 }