service = (name, arg_types, ret_type) の3つ組で、名前、引き数の型の組み、戻り値の型で表現される。 ただし、arg_typesの先頭は必ず文字列であり、クラスタ名を示す。 生成されるクライアントは名前nameのmsgpack-rpcをarg_typesの型の引き数を渡す。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
host = '127.0.0.1' | |
port = 9199 | |
name = 'test' | |
import jubatus | |
from jubatus.classifier.types import datum |
NewerOlder