• 検索結果がありません。

partake source reading

N/A
N/A
Protected

Academic year: 2018

シェア "partake source reading"

Copied!
26
0
0

読み込み中.... (全文を見る)

全文

(1)

2011/02/24

西島 幸一郎

@k_nishijima

(2)

西島 幸一郎 に ま こういちろう twitter : @k_nishijima

Cassandra の関わ

先週 7系にアップ ー ま た

Java 利用中  自前クライアン ラップ たHector経由

最近勉強会に 連投中

ぜひ皆様の情報共有を 待ち ま : )

(3)

partake.in

ッ 前準備

概要 概要

DAO ーン 

Cassandra 接続 

ー ーマ

ソー 詳細: ン へ 参加 ソー 詳細:参加者 表示  Let's Hack!

(4)

皆様 知 @mayahjp

間違 方向 使

有  

http://partake.in/

@yutuki_r 資料 各方面 宣伝

(5)

以 う ー ワー 利用中

※ 関連 入 い 使

Web ワー Struts2

ッセー twitter4j 2.1.11

DAO 自前 &後述'

Cassandra 2本立

Cassandra 0.6.5 + Hector(Thrift)

検索 Lucene3.0.2

(6)

http://code.google.com/p/partakein/

ソー 準備 ー あ

http://code.google.com/p/partakein/wiki/BuildAndInstall

記 ー 必要十 思い 干補足

あえ ー 起動 持 行 う

※ 重要! 何 手くい い あ

(7)

debug.partake.properties 内容書 換え in.partake.toppath = http://localhost:8080

in.partake.lucene.indexdir = 可能

http://bit.ly/ 

あ ー 以 設定

in.partake.bitly.username in.partake.bitly.apikey

(8)

persistence.xml ー?     <persistence

    xmlns="http://java.sun.com/xml/ns/persistence"     version="2.0">

    

    <persistence

    xmlns="http://java.sun.com/xml/ns/persistence"     version="1.0">

※ くわ 僕 環境依

(9)

twitter4j.properties http://twitter.com/apps  追加

ー ン 種類 =

コー ッ =適当 有効

実際 使 ッ

入 投 そ 戻 く

標準 セ = W

ン = ッ

※ 2点 必須 いう 願い

(10)

Cassandra 起動!

依 足 い的 ッセー 出

う く動 い場合

 $ mvn dependency:copy-dependencies

  以 依

 workspace/.metadata/.plugins/org.eclipse.wst.server. core/tmp0/wtpwebapps/Partake/WEB-INF/lib

あ 入 く

※ 期 い くあ

(11)

無事起動 右 ン 動 確認 い

く い

(12)

画面 動 追い いく場合 struts.xml

   

追い い く い

DeveloperGuide

叩く う 気 く い

(13)

debug.partake.properties 設定

in.partake.database.daofactory 設定

PartakeDAOFactory実装 実装 生成

※ 書 換え い欲求

DAO

in.partake.model.dao.I*Access

コネ ン:

PartakeConnection / PartakeConnectionPool 各抽象

(14)

        PartakeDAOFactory factory = getFactory();

        PartakeConnection con = getPool().getConnection();         try {

        con.beginTransaction();              実行

        con.commit();         } finally {

        con.invalidate();         }

※ 側 内

& 行目付近'

(15)

@mayahjp  一言コ

    DAO 最近大幅 更新  

    put, find, remove, iterate, truncate     

    (Cassandra  

    

    DAO 共通

     > ー 

    ( く簡単     

 

(16)

CassandraConnectionPool

CassandraConnection

取得 各 利用

※生 教科書的 使い方 くわ

※ 人気無い ?

(17)

以前 勉強会 紹 書式 partake.in ーマ         http://bit.ly/eKMzKt 

※全然完全 い 皆様書 足 く い

(18)

いう感 概要 把握 あ

※ ソー 実際 見始

見 い 皆様

文 見 い 思い

行数 書い

(19)

Struts

眺 始

画面 マッ ン 見え

例え ン へ 参加 い

<package name="events" namespace="/events" extends="partake-default">

<action name="enroll" method="enroll" class="in.partake.controller. EventsController">

</action>

(20)

in.partake.service

EventService ソッ     EnrollmentCassandraDao::put         putImplForEvent();

        putImpl();

ー ン 引く ーマ

ン ー 引く ーマ 両方 追加

※ 7系 セ ン ン ッ 済

(21)

in.partake.controller

EventsController ソッ

List<EnrollmentEx> participations = EventService.get(). getEnrollmentEx(event.getId());

EventService::getEnrollmentEx

PartakeService::getEnrollmentExs

EnrollmentCassandraDao::findByEventIdImpl

取 値 ソー

※ソー 件数 少 く ー ン 不要 場合

ソー あ 思い

(22)

ソー 眺

機能 追加 ???

Issue

#29 近い 微妙

副管理者 マ ー

管理 い ン 表示 い

いう機能追加 考え

(23)

簡単 関連 更新 いう最

手 部類 入 機能追加 &汗'

方法論 以 う 手段 考え :

ン 追加 副管理者 入 ー ー 追

表示時 そ 表示

ン 編集 副管理者 外 関連

い い

常 全消 あ 関連 追加 い

全消 手段 無い

(24)

いう 関連 ン ン 管理画面 編集前

副管理者一覧 ー 追加 う ? いう

浮 び

ー 更新 場合 世代前 ー 持 い そ 削除

新規作成 いう

※い ー 回引い 確認 処

理 いい

※ 番 実 ーン > 変

換 いう裏 あ そう

結構大変そう

(25)

Issue

http://code.google.com/p/partakein/issues/list

ッ 大歓迎!

ッ 結果 ッ 送 う!

(26)

Let's Happy Hacking!

参照

関連したドキュメント

Yang, Complete blow-up for degenerate semilinear parabolic equations, Journal of Computational and Applied Mathematics 113 (2000), no.. Xie, Blow-up for degenerate parabolic

&amp;BSCT. Let C, S and K be the classes of convex, starlike and close-to-convex functions respectively. Its basic properties, its relationship with other subclasses of S,

It is well known that the inverse problems for the parabolic equations are ill- posed apart from this the inverse problems considered here are not easy to handle due to the

After performing a computer search we find that the density of happy numbers in the interval [10 403 , 10 404 − 1] is at least .185773; thus, there exists a 404-strict

Let S be a closed Riemann surface of genus g and f: S → S be a fixed point free conformal automorphism, of odd order n &gt; 1.. Similar arguments as above permit us to show that

Grasshopper - For control of first and second instar grasshopper nymphal stages a rate range of 3.9 to 5.8 fluid ounces of product per acre (0.02 - 0.03 lb. ai/A) can be used.

しかし , 特性関数 を使った証明には複素解析や Fourier 解析の知識が多少必要となってくるため , ここではより初等的な道 具のみで証明を実行できる Stein の方法

Sakamoto, Tsutomu (2002) Processing filler-gap constructions in Japanese: The case of empty subject sentences. Sakamoto, Tsutomu and Matthew Walenski (1998) The processing