Google App Engine ã§æè¿ãªãªã¼ã¹ãããæ©è½ 1ï¼ Task Queue ã®å¼·å 2ï¼ Multitenancy 3ï¼ é«éã¤ã¡ã¼ã¸é ä¿¡ 4ï¼ã«ã¹ã¿ã ã¨ã©ã¼ãã¼ã¸ çã«ã¤ãã¦ç´¹ä»ãã¾ããRead less
ã¯ããã« ä»åã¯ãGoogle App Engine for Java(以ä¸GAE/j)ããtwitterAPIãå©ç¨ãã¦ãtweetã®æ稿ãè¡ããã¨æãããã ããå大ãªãå 人ã«ãããGAE/jããã§ãtwitterAPIãå©ç¨ã§ããã©ã¤ãã©ãªãå ¬éããã¦ããçºã Twitter4J - A Java library for the Twitter API ä»åã¯ãã®ã©ã¤ãã©ãªãå©ç¨ããã¦é ããã¾ãã¯ãã®ãµã³ãã«ã³ã¼ããGAEjavaä¸ã§å®è¡ãã¦ã¿ãã å°ãä»åã®å 容ãé²ããéã«ä½åº¦ãããã¼ã«ã«ã®ãã¹ãç°å¢ã§503ã¨ã©ã¼ï¼SERVICE_UNAVAILABLE)ãçºçãããããã¯ããã¸ã§ã¯ãã®ä½ãç´ããPCã®åèµ·åãªã©ã§è§£æ±ºãã¦ãã¾ã£ãã®ã§ãåå ä¸æã§åç¾æ§ç¡ãã¨ããããªãã¨ãæ°æã¡æªãçµæã¨ãªã£ã¦ãã¾ã£ãããããåãçç¶ã«ãªã£ãæ¹ããã¾ããããåã«å¤ãã£ã¦åå ã調ã¹ã¦ä¸ãããâ¦â¦ãï¼ ï¼
æ°ç±³ã¨ç§åéã®ããç¼ã ãåºèº«ç¨ã®ç§åéãè²·ãã¾ããã1å°¾250åã§ã 3æã«ãããã¦ãç§åéã®ããã«é ãå³éãé¤æ²¹ã§èª¿å³ãã¦1æéã»ã©æ¼¬ãè¾¼ã¿ãã°ãªã«ã§ç¼ãã¾ãã ç§åéã®ããç¼ã ããã®ãè¦å³ãç¨ãããã¤ã«ãã«èª¿å³ãããã¯ã»ã«ãªãå³ããã§ã è¶ãããªæ°ç±³ã¨ä¸ç·ã« èªå®¶è£½ãæ¼¬ç© åâ¦
SDK 1.2.5ããGoogle App Engineã«TaskQueueãå°å ¥ããã¾ãããããã¼ã«ã«(development server)ã§ãããã°ã¯ã§ããªãã¨æã£ã¦ãã人ãçµæ§ãããããªã®ã§ãããæ¹ãæ¸ãã¦ããã¾ãã ãã¼ã«ã«ã®ç°å¢ã§ã¯ãQueueã«addããã¿ã¹ã¯ã¯ãèªåçã«ã¯å®è¡ããããQueueã«ãã¾ã£ã¦ãã¾ãããã¾ã£ã¦ããã¿ã¹ã¯ãå®è¡ããã«ã¯ãhttp://localhost:8080/_ah/adminã«ã¢ã¯ã»ã¹ããå·¦å´ã®Task Queuesã®ãªã³ã¯ãã¯ãªãã¯ãã¾ãã ããã¨ãQueueã®ä¸è¦§ã表示ãããã®ã§ãããã§Queueã®ãªã³ã¯ãã¯ãªãã¯ããã¨ãã¿ã¹ã¯ãå®è¡ããç»é¢ã«é·ç§»ãã¾ããããã§ãrunã®ãã¿ã³ãæ¼ãã¨ããã¼ã«ã«ã§Queueã®ã¿ã¹ã¯ãå®è¡ã§ãã¾ãã Web ApplicationãDebug Asã§èµ·åãã¦ããã°ãEclipseããDebugãããã¨ãã§ãã¾
GAEã®JDOã®ã¢ãã«ã¯ããã£ããããã¨4種é¡ã®ç¶æ ãããã¾ã(æ¬å½ã¯ãã£ã¨ãã£ã±ããããã©ã4ã¤ããããã¦ããã°æ®éã¯OK)ã transient persistent detached hollow ã¢ãã«ãnewãã¦ãPersistenceManager#makePersistent()ãå¼ã¶ã¾ã§ã¯ãtransientã§ãã PersistenceManager#makePersistent()ããã°ããã¨persistentãªç¶æ ã§ããpersistentãªã¢ãã«ã®ç¶æ ã¯ãPersistenceManagerãcloseãããTransactionãcommitããã¨ãã«ããã¼ã¿ã¹ãã¢ã«åæ ããã¾ãã PersistenceManagerãcloseããã¨ãããããéå½ã®åããç®ãä½ã®è¨å®ãããªãã¨hollowã«ãªããlazy loadingããã¦ãããªãã¸ã§ã¯ãã«è§¦ããã¨ããã¨ã¨
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}