freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

軟件架構(gòu)設(shè)計(jì)文檔(編輯修改稿)

2025-07-27 08:24 本頁面
 

【文章內(nèi)容簡介】 ,可用性策略: 異常檢測 異常處理實(shí)時(shí)監(jiān)聽三,安全性策略加密數(shù)據(jù)拒絕攻擊反應(yīng)攻擊確定用戶四,可修改性策略降低依賴減少耦合提高內(nèi)聚封裝五,性能策略同時(shí)計(jì)算7. Architecture根據(jù)軟件的重要需求,確定了本軟件所采用的設(shè)計(jì)模式: WebService決定運(yùn)用該模式的需求:(1)客戶端數(shù)據(jù)庫與服務(wù)器同步,采用雙數(shù)據(jù)庫實(shí)現(xiàn)效率提高。(2)需調(diào)用API,進(jìn)行每日運(yùn)勢分析。WebService 調(diào)用每日星座運(yùn)勢API核心代碼如下:private void updateEverydayFortune() { if(isNetworkAvailable()){//有網(wǎng)絡(luò)就更新 //啟動(dòng)更新數(shù)據(jù)線程 new Thread(new updateEverydayFortuneRunnable()).start()。 } } private class updateEverydayFortuneRunnable implements Runnable{ SimpleDateFormat simpleDateFormat = new SimpleDateFormat(yyyyMMdd)。 String now = (new Date())。 SharedPreferences sharedPreferences = (xzlm,)。 @Override public void run() { //將值取獲,然后保存 for(int i=1。i=12。i++){ //判斷是否要更新 String date = (i+_date, NoDate)。 if((NoDate)||!(now)){//需要更新的星座就去更新。 sendInfo(i)。 } } } } private StringBuffer json。 private void sendInfo(int constellationid) { // 發(fā)送請求 URL url = null。 HttpURLConnection conn = null。 DataOutputStream outputStream = null。 BufferedInputStream bufferedInputStream = null。 String requestUrl = 。 String param = fun=dayamp。id= + [constellationid 1] + amp。format=json。 byte[] entity = ()。 try { url = new URL(requestUrl)。 conn = (HttpURLConnection) ()。 (5000)。 (true)。 (false)。 (POST)。 (Charset, UTF8)。 (ContentLength, ())。 outputStream = new DataOutputStream(())。 (entity)。 ()。 if (() == 200) { bufferedInputStream = new BufferedInputStream(())。 byte[] bf = new byte[1024]。 int i = 0。 json = new StringBuffer()。 while ((i = (bf)) != 1) { String str = new String(bf, 0, i)。 (str)。 } } } catch (MalformedURLException e) { ()。 } catch (IOException e) { ()。 } if (json != null) { // 有數(shù)據(jù)返回,下面解析這些數(shù)據(jù),并保存 resolveJSONAndSave(constellationid)。 } } //解析回傳的json private void resolveJSONAndSave(int constellationid) { JSONArray array。 try { array = new JSONArray(())。 String z
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1