Sirikata
|
00001 /* Sirikata 00002 * Options.hpp 00003 * 00004 * Copyright (c) 2009, Ewen Cheslack-Postava 00005 * All rights reserved. 00006 * 00007 * Redistribution and use in source and binary forms, with or without 00008 * modification, are permitted provided that the following conditions are 00009 * met: 00010 * * Redistributions of source code must retain the above copyright 00011 * notice, this list of conditions and the following disclaimer. 00012 * * Redistributions in binary form must reproduce the above copyright 00013 * notice, this list of conditions and the following disclaimer in 00014 * the documentation and/or other materials provided with the 00015 * distribution. 00016 * * Neither the name of Sirikata nor the names of its contributors may 00017 * be used to endorse or promote products derived from this software 00018 * without specific prior written permission. 00019 * 00020 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 00021 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 00022 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00023 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 00024 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00025 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00026 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00027 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00028 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00029 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00030 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00031 */ 00032 00033 #ifndef _SIRIKATA_SPACE_OPTIONS_HPP_ 00034 #define _SIRIKATA_SPACE_OPTIONS_HPP_ 00035 00036 #define OPT_CONFIG_FILE "cfg" 00037 00038 #define OPT_SPACE_PLUGINS "space.plugins" 00039 #define OPT_SPACE_EXTRA_PLUGINS "space.extra-plugins" 00040 00041 #define SERVER_QUEUE "server.queue" 00042 #define SERVER_QUEUE_LENGTH "server.queue.length" 00043 #define SERVER_RECEIVER "server.receiver" 00044 #define SERVER_ODP_FLOW_SCHEDULER "server.odp.flowsched" 00045 00046 #define NETWORK_TYPE "net" 00047 00048 #define CSEG "cseg" 00049 00050 #define SPACE_OPT_AUTH "auth" 00051 #define SPACE_OPT_AUTH_OPTIONS "auth-options" 00052 00053 #define LOC "loc" 00054 #define LOC_OPTIONS "loc-options" 00055 #define LOC_UPDATE "loc-update" 00056 #define LOC_UPDATE_OPTIONS "loc-update-options" 00057 00058 #define OSEG "oseg" 00059 #define OSEG_OPTIONS "oseg-options" 00060 #define OSEG_CACHE_SIZE "oseg-cache-size" 00061 #define OSEG_CACHE_CLEAN_GROUP_SIZE "oseg-cache-clean-group-size" 00062 #define OSEG_CACHE_ENTRY_LIFETIME "oseg-cache-entry-lifetime" 00063 00064 #define CACHE_SELECTOR "oseg-cache-selector" 00065 #define CACHE_TYPE_COMMUNICATION "cache_communication" 00066 #define CACHE_TYPE_ORIGINAL_LRU "cache_originallru" 00067 00068 00069 #define CACHE_COMM_SCALING "oseg-cache-scaling" 00070 00071 #define FORWARDER_SEND_QUEUE_SIZE "forwarder.send-queue-size" 00072 #define FORWARDER_RECEIVE_QUEUE_SIZE "forwarder.receive-queue-size" 00073 00074 #define OSEG_LOOKUP_QUEUE_SIZE "oseg_lookup_queue_size" 00075 00076 #define OPT_PROX "prox" 00077 #define OPT_PROX_OPTIONS "prox-options" 00078 00079 #define OPT_MODULES "modules" 00080 00081 // AggregateManager options 00082 #define OPT_AGGMGR_HOSTNAME "aggmgr.host" 00083 #define OPT_AGGMGR_SERVICE "aggmgr.service" 00084 #define OPT_AGGMGR_CONSUMER_KEY "aggmgr.consumer-key" 00085 #define OPT_AGGMGR_CONSUMER_SECRET "aggmgr.consumer-secret" 00086 #define OPT_AGGMGR_ACCESS_KEY "aggmgr.access-key" 00087 #define OPT_AGGMGR_ACCESS_SECRET "aggmgr.access-secret" 00088 #define OPT_AGGMGR_USERNAME "aggmgr.username" 00089 #define OPT_AGGMGR_LOCAL_PATH "aggmgr.local-path" 00090 #define OPT_AGGMGR_LOCAL_URL_PREFIX "aggmgr.local-url-prefix" 00091 #define OPT_AGGMGR_GEN_THREADS "aggmgr.gen-threads" 00092 #define OPT_AGGMGR_UPLOAD_THREADS "aggmgr.upload-threads" 00093 #define OPT_AGGMGR_SKIP_GENERATE "aggmgr.skip-generate" 00094 #define OPT_AGGMGR_SKIP_UPLOAD "aggmgr.skip-upload" 00095 00096 namespace Sirikata { 00097 00098 void InitSpaceOptions(); 00099 00100 } // namespace Sirikata 00101 00102 00103 #endif //_SIRIKATA_SPACE_OPTIONS_HPP_