Ignore:
Timestamp:
Jul 24, 2009, 8:53:41 PM (15 years ago)
Author:
Christoph Mayer
Message:

merge from bootstrap branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/BaseOverlay.h

    r5284 r5316  
    112112using ariba::utility::OvlVis;
    113113
    114 #define ovl OvlVis::instance()
    115 #define ovlId OvlVis::NETWORK_ID_BASE_OVERLAY
     114//#define ovl OvlVis::instance()
     115//#define ovlId OvlVis::NETWORK_ID_BASE_OVERLAY
    116116
    117117namespace ariba {
     
    156156
    157157        /**
     158         * Is the BaseOverlay instance started up yet
     159         */
     160        bool isStarted();
     161
     162        /**
    158163         * Starts a link establishment procedure to the specfied node
    159164         * for the service with id service
     
    211216         * @return A list of overlay neighbors.
    212217         */
    213         vector<NodeID> getOverlayNeighbors() const;
     218        vector<NodeID> getOverlayNeighbors(bool deep = true) const;
    214219
    215220        /**
     
    264269         * @param boot A bootstrap node
    265270         */
    266         void joinSpoVNet(const SpoVNetID& id, const EndpointDescriptor& boot);
     271        void joinSpoVNet(const SpoVNetID& id, const EndpointDescriptor& boot = EndpointDescriptor::UNSPECIFIED);
    267272
    268273        /**
     
    365370        typedef enum _BaseOverlayState {
    366371                BaseOverlayStateInvalid = 0,
    367                 BaseOverlayStateInitiator = 1,
    368                 BaseOverlayStateJoinInitiated = 2,
    369                 BaseOverlayStateCompleted = 3,
     372                BaseOverlayStateCompleted = 1,
    370373        } BaseOverlayState;
    371374
    372         BaseOverlayState state; ///< Current Base-Overlay state
    373         BaseCommunication* bc;  ///< reference to the base communication
    374         NodeID nodeId;          ///< the node id of this node
    375         SpoVNetID spovnetId;    ///< the spovnet id of the currently joined overlay
    376         LinkID initiatorLink;   ///< the link id of the link to the initiator node
    377         NodeID spovnetInitiator;///< The initiator node
     375        BaseOverlayState state;          ///< Current Base-Overlay state
     376        BaseCommunication* bc;           ///< reference to the base communication
     377        NodeID nodeId;                   ///< the node id of this node
     378        SpoVNetID spovnetId;             ///< the spovnet id of the currently joined overlay
     379        vector<LinkID> bootstrapLinks;   ///< the link id of the link to the initiator node
     380        NodeID spovnetInitiator;         ///< The initiator node
    378381
    379382        /// the service id communication listeners
     
    440443         */
    441444        OverlayBootstrap overlayBootstrap;
     445
     446        /// is the base overlay started yet
     447        bool started;
    442448};
    443449
Note: See TracChangeset for help on using the changeset viewer.