xorp

finder_xrl_target.hh

00001 // -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
00002 // vim:set sts=4 ts=8:
00003 
00004 // Copyright (c) 2001-2011 XORP, Inc and Others
00005 //
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU Lesser General Public License, Version
00008 // 2.1, June 1999 as published by the Free Software Foundation.
00009 // Redistribution and/or modification of this program under the terms of
00010 // any other version of the GNU Lesser General Public License is not
00011 // permitted.
00012 // 
00013 // This program is distributed in the hope that it will be useful, but
00014 // WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00016 // see the GNU Lesser General Public License, Version 2.1, a copy of
00017 // which can be found in the XORP LICENSE.lgpl file.
00018 // 
00019 // XORP, Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
00020 // http://xorp.net
00021 
00022 // $XORP: xorp/libxipc/finder_xrl_target.hh,v 1.20 2008/10/02 21:57:21 bms Exp $
00023 
00024 #ifndef __LIBXIPC_FINDER_XRL_TARGET_HH__
00025 #define __LIBXIPC_FINDER_XRL_TARGET_HH__
00026 
00027 #include "xrl/targets/finder_base.hh"
00028 
00029 class Finder;
00030 
00031 class FinderXrlTarget : public XrlFinderTargetBase {
00032 public:
00033     FinderXrlTarget(Finder& finder);
00034 
00038     XrlCmdError common_0_1_get_target_name(string&  name);
00042     XrlCmdError common_0_1_get_version(string&  version);
00046     XrlCmdError common_0_1_get_status(uint32_t& status, string& reason);
00050     XrlCmdError common_0_1_shutdown();
00051 
00052     XrlCmdError common_0_1_startup() { return XrlCmdError::OKAY(); }
00053 
00059     XrlCmdError finder_0_2_register_finder_client(const string& target_name,
00060                           const string& class_name,
00061                           const bool&   singleton,
00062                           const string& in_cookie,
00063                           string&   out_cookie);
00064 
00065     XrlCmdError finder_0_2_unregister_finder_client(const string& target_name);
00066 
00067     XrlCmdError finder_0_2_set_finder_client_enabled(const string& target_name,
00068                              const bool&   en);
00069 
00070     XrlCmdError finder_0_2_finder_client_enabled(const string& target_name,
00071                          bool&         en);
00072 
00076     XrlCmdError finder_0_2_add_xrl(const string& xrl,
00077                    const string& protocol_name,
00078                    const string& protocol_args,
00079                    string&   resolved_xrl_method_name);
00080 
00084     XrlCmdError finder_0_2_remove_xrl(const string& xrl);
00085 
00089     XrlCmdError finder_0_2_resolve_xrl(const string&    xrl,
00090                        XrlAtomList& resolutions);
00091 
00095     XrlCmdError finder_0_2_get_xrl_targets(XrlAtomList& target_names);
00096 
00100     XrlCmdError finder_0_2_get_xrls_registered_by(const string& target_name,
00101                           XrlAtomList&  xrls);
00102 
00103     XrlCmdError finder_0_2_get_ipv4_permitted_hosts(XrlAtomList& ipv4s);
00104 
00105     XrlCmdError finder_0_2_get_ipv4_permitted_nets(XrlAtomList&  ipv4nets);
00106 
00107     XrlCmdError finder_0_2_get_ipv6_permitted_hosts(XrlAtomList& ipv6s);
00108 
00109     XrlCmdError finder_0_2_get_ipv6_permitted_nets(XrlAtomList&  ipv6nets);
00110 
00114     XrlCmdError finder_event_notifier_0_1_register_class_event_interest(
00115             const string& who, const string& class_name);
00116 
00117     XrlCmdError finder_event_notifier_0_1_deregister_class_event_interest(
00118             const string& who, const string& class_name);
00119 
00120     XrlCmdError finder_event_notifier_0_1_register_instance_event_interest(
00121             const string& who, const string& instance_name);
00122 
00123     XrlCmdError finder_event_notifier_0_1_deregister_instance_event_interest(
00124             const string& who, const string& instance_name);
00125 
00126 protected:
00127     Finder& _finder;
00128 };
00129 
00130 #endif // __LIBXIPC_FINDER_XRL_TARGET_HH__
 All Classes Namespaces Functions Variables Typedefs Enumerations