# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_clutf_agent')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_clutf_agent')
    _clutf_agent = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_clutf_agent', [dirname(__file__)])
        except ImportError:
            import _clutf_agent
            return _clutf_agent
        try:
            _mod = imp.load_module('_clutf_agent', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _clutf_agent = swig_import_helper()
    del swig_import_helper
else:
    import _clutf_agent
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except __builtin__.Exception:
    class _object:
        pass
    _newclass = 0

RESET = _clutf_agent.RESET
BLACK = _clutf_agent.BLACK
RED = _clutf_agent.RED
GREEN = _clutf_agent.GREEN
YELLOW = _clutf_agent.YELLOW
BLUE = _clutf_agent.BLUE
MAGENTA = _clutf_agent.MAGENTA
CYAN = _clutf_agent.CYAN
WHITE = _clutf_agent.WHITE
BOLDBLACK = _clutf_agent.BOLDBLACK
BOLDRED = _clutf_agent.BOLDRED
BOLDGREEN = _clutf_agent.BOLDGREEN
BOLDYELLOW = _clutf_agent.BOLDYELLOW
BOLDBLUE = _clutf_agent.BOLDBLUE
BOLDMAGENTA = _clutf_agent.BOLDMAGENTA
BOLDCYAN = _clutf_agent.BOLDCYAN
BOLDWHITE = _clutf_agent.BOLDWHITE
LUTF_VERSION_NUMBER = _clutf_agent.LUTF_VERSION_NUMBER
MAX_STR_LEN = _clutf_agent.MAX_STR_LEN
MAX_MSG_SIZE = _clutf_agent.MAX_MSG_SIZE
LUTF_EXIT_NORMAL = _clutf_agent.LUTF_EXIT_NORMAL
LUTF_EXIT_ERR_STARTUP = _clutf_agent.LUTF_EXIT_ERR_STARTUP
LUTF_EXIT_ERR_BAD_PARAM = _clutf_agent.LUTF_EXIT_ERR_BAD_PARAM
LUTF_EXIT_ERR_THREAD_STARTUP = _clutf_agent.LUTF_EXIT_ERR_THREAD_STARTUP
LUTF_EXIT_ERR_DEAMEON_STARTUP = _clutf_agent.LUTF_EXIT_ERR_DEAMEON_STARTUP
SYSTEMIPADDR = _clutf_agent.SYSTEMIPADDR
INVALID_TCP_SOCKET = _clutf_agent.INVALID_TCP_SOCKET
SOCKET_TIMEOUT_USEC = _clutf_agent.SOCKET_TIMEOUT_USEC
SOCKET_CONN_TIMEOUT_SEC = _clutf_agent.SOCKET_CONN_TIMEOUT_SEC
TCP_READ_TIMEOUT_SEC = _clutf_agent.TCP_READ_TIMEOUT_SEC
TEST_ROLE_GRC = _clutf_agent.TEST_ROLE_GRC
TEST_ROLE_MGS = _clutf_agent.TEST_ROLE_MGS
TEST_ROLE_MDT = _clutf_agent.TEST_ROLE_MDT
TEST_ROLE_OSS = _clutf_agent.TEST_ROLE_OSS
TEST_ROLE_OST = _clutf_agent.TEST_ROLE_OST
TEST_ROLE_RTR = _clutf_agent.TEST_ROLE_RTR
TEST_ROLE_CLI = _clutf_agent.TEST_ROLE_CLI
DEFAULT_MASTER_PORT = _clutf_agent.DEFAULT_MASTER_PORT
EN_LUTF_RC_OK = _clutf_agent.EN_LUTF_RC_OK
EN_LUTF_RC_FAIL = _clutf_agent.EN_LUTF_RC_FAIL
EN_LUTF_RC_SYS_ERR = _clutf_agent.EN_LUTF_RC_SYS_ERR
EN_LUTF_RC_BAD_VERSION = _clutf_agent.EN_LUTF_RC_BAD_VERSION
EN_LUTF_RC_SOCKET_FAIL = _clutf_agent.EN_LUTF_RC_SOCKET_FAIL
EN_LUTF_RC_BIND_FAILED = _clutf_agent.EN_LUTF_RC_BIND_FAILED
EN_LUTF_RC_LISTEN_FAILED = _clutf_agent.EN_LUTF_RC_LISTEN_FAILED
EN_LUTF_RC_CLIENT_CLOSED = _clutf_agent.EN_LUTF_RC_CLIENT_CLOSED
EN_LUTF_RC_ERR_THREAD_STARTUP = _clutf_agent.EN_LUTF_RC_ERR_THREAD_STARTUP
EN_LUTF_RC_AGENT_NOT_FOUND = _clutf_agent.EN_LUTF_RC_AGENT_NOT_FOUND
EN_LUTF_RC_PY_IMPORT_FAIL = _clutf_agent.EN_LUTF_RC_PY_IMPORT_FAIL
EN_LUTF_RC_PY_SCRIPT_FAIL = _clutf_agent.EN_LUTF_RC_PY_SCRIPT_FAIL
EN_LUTF_RC_RPC_FAIL = _clutf_agent.EN_LUTF_RC_RPC_FAIL
EN_LUTF_RC_OOM = _clutf_agent.EN_LUTF_RC_OOM
EN_LUTF_RC_BAD_PARAM = _clutf_agent.EN_LUTF_RC_BAD_PARAM
EN_LUTF_RC_BAD_ADDR = _clutf_agent.EN_LUTF_RC_BAD_ADDR
EN_LUTF_RC_MISSING_PARAM = _clutf_agent.EN_LUTF_RC_MISSING_PARAM
EN_LUTF_RC_TIMEOUT = _clutf_agent.EN_LUTF_RC_TIMEOUT
EN_LUTF_RC_MAX = _clutf_agent.EN_LUTF_RC_MAX
EN_LUTF_MASTER = _clutf_agent.EN_LUTF_MASTER
EN_LUTF_AGENT = _clutf_agent.EN_LUTF_AGENT
EN_LUTF_INVALID = _clutf_agent.EN_LUTF_INVALID
INTERACTIVE = _clutf_agent.INTERACTIVE
BATCH = _clutf_agent.BATCH
DAEMON = _clutf_agent.DAEMON
EN_LUTF_RUN_INTERACTIVE = _clutf_agent.EN_LUTF_RUN_INTERACTIVE
EN_LUTF_RUN_BATCH = _clutf_agent.EN_LUTF_RUN_BATCH
EN_LUTF_RUN_DAEMON = _clutf_agent.EN_LUTF_RUN_DAEMON
EN_LUTF_RUN_INVALID = _clutf_agent.EN_LUTF_RUN_INVALID
MAX_NUM_AGENTS = _clutf_agent.MAX_NUM_AGENTS
HB_TO = _clutf_agent.HB_TO
LUTF_AGENT_STATE_ALIVE = _clutf_agent.LUTF_AGENT_STATE_ALIVE
LUTF_AGENT_HB_CHANNEL_CONNECTED = _clutf_agent.LUTF_AGENT_HB_CHANNEL_CONNECTED
LUTF_AGENT_RPC_CHANNEL_CONNECTED = _clutf_agent.LUTF_AGENT_RPC_CHANNEL_CONNECTED
LUTF_AGENT_WORK_IN_PROGRESS = _clutf_agent.LUTF_AGENT_WORK_IN_PROGRESS
LUTF_AGENT_NEED_LISTEN_CLEAN = _clutf_agent.LUTF_AGENT_NEED_LISTEN_CLEAN
LUTF_AGENT_STATE_DEAD = _clutf_agent.LUTF_AGENT_STATE_DEAD
class lutf_agent_blk_t(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, lutf_agent_blk_t, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, lutf_agent_blk_t, name)
    __repr__ = _swig_repr
    __swig_setmethods__["mutex"] = _clutf_agent.lutf_agent_blk_t_mutex_set
    __swig_getmethods__["mutex"] = _clutf_agent.lutf_agent_blk_t_mutex_get
    if _newclass:
        mutex = _swig_property(_clutf_agent.lutf_agent_blk_t_mutex_get, _clutf_agent.lutf_agent_blk_t_mutex_set)
    __swig_setmethods__["id"] = _clutf_agent.lutf_agent_blk_t_id_set
    __swig_getmethods__["id"] = _clutf_agent.lutf_agent_blk_t_id_get
    if _newclass:
        id = _swig_property(_clutf_agent.lutf_agent_blk_t_id_get, _clutf_agent.lutf_agent_blk_t_id_set)
    __swig_setmethods__["version"] = _clutf_agent.lutf_agent_blk_t_version_set
    __swig_getmethods__["version"] = _clutf_agent.lutf_agent_blk_t_version_get
    if _newclass:
        version = _swig_property(_clutf_agent.lutf_agent_blk_t_version_get, _clutf_agent.lutf_agent_blk_t_version_set)
    __swig_setmethods__["telnet_port"] = _clutf_agent.lutf_agent_blk_t_telnet_port_set
    __swig_getmethods__["telnet_port"] = _clutf_agent.lutf_agent_blk_t_telnet_port_get
    if _newclass:
        telnet_port = _swig_property(_clutf_agent.lutf_agent_blk_t_telnet_port_get, _clutf_agent.lutf_agent_blk_t_telnet_port_set)
    __swig_setmethods__["listen_port"] = _clutf_agent.lutf_agent_blk_t_listen_port_set
    __swig_getmethods__["listen_port"] = _clutf_agent.lutf_agent_blk_t_listen_port_get
    if _newclass:
        listen_port = _swig_property(_clutf_agent.lutf_agent_blk_t_listen_port_get, _clutf_agent.lutf_agent_blk_t_listen_port_set)
    __swig_setmethods__["name"] = _clutf_agent.lutf_agent_blk_t_name_set
    __swig_getmethods__["name"] = _clutf_agent.lutf_agent_blk_t_name_get
    if _newclass:
        name = _swig_property(_clutf_agent.lutf_agent_blk_t_name_get, _clutf_agent.lutf_agent_blk_t_name_set)
    __swig_setmethods__["hostname"] = _clutf_agent.lutf_agent_blk_t_hostname_set
    __swig_getmethods__["hostname"] = _clutf_agent.lutf_agent_blk_t_hostname_get
    if _newclass:
        hostname = _swig_property(_clutf_agent.lutf_agent_blk_t_hostname_get, _clutf_agent.lutf_agent_blk_t_hostname_set)
    __swig_setmethods__["iFileDesc"] = _clutf_agent.lutf_agent_blk_t_iFileDesc_set
    __swig_getmethods__["iFileDesc"] = _clutf_agent.lutf_agent_blk_t_iFileDesc_get
    if _newclass:
        iFileDesc = _swig_property(_clutf_agent.lutf_agent_blk_t_iFileDesc_get, _clutf_agent.lutf_agent_blk_t_iFileDesc_set)
    __swig_setmethods__["iRpcFd"] = _clutf_agent.lutf_agent_blk_t_iRpcFd_set
    __swig_getmethods__["iRpcFd"] = _clutf_agent.lutf_agent_blk_t_iRpcFd_get
    if _newclass:
        iRpcFd = _swig_property(_clutf_agent.lutf_agent_blk_t_iRpcFd_get, _clutf_agent.lutf_agent_blk_t_iRpcFd_set)
    __swig_setmethods__["time_stamp"] = _clutf_agent.lutf_agent_blk_t_time_stamp_set
    __swig_getmethods__["time_stamp"] = _clutf_agent.lutf_agent_blk_t_time_stamp_get
    if _newclass:
        time_stamp = _swig_property(_clutf_agent.lutf_agent_blk_t_time_stamp_get, _clutf_agent.lutf_agent_blk_t_time_stamp_set)
    __swig_setmethods__["addr"] = _clutf_agent.lutf_agent_blk_t_addr_set
    __swig_getmethods__["addr"] = _clutf_agent.lutf_agent_blk_t_addr_get
    if _newclass:
        addr = _swig_property(_clutf_agent.lutf_agent_blk_t_addr_get, _clutf_agent.lutf_agent_blk_t_addr_set)
    __swig_setmethods__["state"] = _clutf_agent.lutf_agent_blk_t_state_set
    __swig_getmethods__["state"] = _clutf_agent.lutf_agent_blk_t_state_get
    if _newclass:
        state = _swig_property(_clutf_agent.lutf_agent_blk_t_state_get, _clutf_agent.lutf_agent_blk_t_state_set)
    __swig_setmethods__["ref_count"] = _clutf_agent.lutf_agent_blk_t_ref_count_set
    __swig_getmethods__["ref_count"] = _clutf_agent.lutf_agent_blk_t_ref_count_get
    if _newclass:
        ref_count = _swig_property(_clutf_agent.lutf_agent_blk_t_ref_count_get, _clutf_agent.lutf_agent_blk_t_ref_count_set)
    __swig_setmethods__["node_type"] = _clutf_agent.lutf_agent_blk_t_node_type_set
    __swig_getmethods__["node_type"] = _clutf_agent.lutf_agent_blk_t_node_type_get
    if _newclass:
        node_type = _swig_property(_clutf_agent.lutf_agent_blk_t_node_type_get, _clutf_agent.lutf_agent_blk_t_node_type_set)

    def __init__(self):
        this = _clutf_agent.new_lutf_agent_blk_t()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _clutf_agent.delete_lutf_agent_blk_t
    __del__ = lambda self: None
lutf_agent_blk_t_swigregister = _clutf_agent.lutf_agent_blk_t_swigregister
lutf_agent_blk_t_swigregister(lutf_agent_blk_t)


def lutf_agent_get_highest_fd():
    return _clutf_agent.lutf_agent_get_highest_fd()
lutf_agent_get_highest_fd = _clutf_agent.lutf_agent_get_highest_fd

def agent_state2str(agent):
    return _clutf_agent.agent_state2str(agent)
agent_state2str = _clutf_agent.agent_state2str

def get_local_ip():
    return _clutf_agent.get_local_ip()
get_local_ip = _clutf_agent.get_local_ip

def get_next_active_agent(idx, out):
    return _clutf_agent.get_next_active_agent(idx, out)
get_next_active_agent = _clutf_agent.get_next_active_agent

def find_agent_blk_by_id(idx):
    return _clutf_agent.find_agent_blk_by_id(idx)
find_agent_blk_by_id = _clutf_agent.find_agent_blk_by_id

def find_agent_blk_by_ip(ip):
    return _clutf_agent.find_agent_blk_by_ip(ip)
find_agent_blk_by_ip = _clutf_agent.find_agent_blk_by_ip

def find_agent_blk_by_name(name):
    return _clutf_agent.find_agent_blk_by_name(name)
find_agent_blk_by_name = _clutf_agent.find_agent_blk_by_name

def find_create_agent_blk_by_addr(addr):
    return _clutf_agent.find_create_agent_blk_by_addr(addr)
find_create_agent_blk_by_addr = _clutf_agent.find_create_agent_blk_by_addr

def find_free_agent_blk(addr):
    return _clutf_agent.find_free_agent_blk(addr)
find_free_agent_blk = _clutf_agent.find_free_agent_blk

def acquire_agent_blk(agent):
    return _clutf_agent.acquire_agent_blk(agent)
acquire_agent_blk = _clutf_agent.acquire_agent_blk

def release_agent_blk(agent, dead):
    return _clutf_agent.release_agent_blk(agent, dead)
release_agent_blk = _clutf_agent.release_agent_blk

def agent_ip2str(agent):
    return _clutf_agent.agent_ip2str(agent)
agent_ip2str = _clutf_agent.agent_ip2str

def agent_disable_hb():
    return _clutf_agent.agent_disable_hb()
agent_disable_hb = _clutf_agent.agent_disable_hb

def agent_enable_hb():
    return _clutf_agent.agent_enable_hb()
agent_enable_hb = _clutf_agent.agent_enable_hb

def agent_get_hb():
    return _clutf_agent.agent_get_hb()
agent_get_hb = _clutf_agent.agent_get_hb

def get_num_agents():
    return _clutf_agent.get_num_agents()
get_num_agents = _clutf_agent.get_num_agents

def get_num_agents_remote(masterIP, masterPort):
    return _clutf_agent.get_num_agents_remote(masterIP, masterPort)
get_num_agents_remote = _clutf_agent.get_num_agents_remote

def wait_for_agents(agents, timeout):
    return _clutf_agent.wait_for_agents(agents, timeout)
wait_for_agents = _clutf_agent.wait_for_agents

def set_agent_state(agent, state):
    return _clutf_agent.set_agent_state(agent, state)
set_agent_state = _clutf_agent.set_agent_state

def unset_agent_state(agent, state):
    return _clutf_agent.unset_agent_state(agent, state)
unset_agent_state = _clutf_agent.unset_agent_state

def lutf_send_rpc(agent, yaml, timeout):
    return _clutf_agent.lutf_send_rpc(agent, yaml, timeout)
lutf_send_rpc = _clutf_agent.lutf_send_rpc

def lutf_send_rpc_rsp(agent, yaml):
    return _clutf_agent.lutf_send_rpc_rsp(agent, yaml)
lutf_send_rpc_rsp = _clutf_agent.lutf_send_rpc_rsp

def agent_init():
    return _clutf_agent.agent_init()
agent_init = _clutf_agent.agent_init
# This file is compatible with both classic and new-style classes.


