Sensix
Wireless Sensor Network Middleware



   Home


   Project Page


   Download


   CVS




 Hosted by
Get SENSIX at SourceForge.net. Fast, secure 
and Free Open Source software downloads

sensix::discovery::DiscoveryService Class Reference

#include <discovery.h>

Inheritance diagram for sensix::discovery::DiscoveryService:

sensix::discovery::Self sensix::discovery::Self

List of all members.

Public Member Functions

 DiscoveryService (int id, byte level) throws DiscoveryException
 DiscoveryService (int id, byte level, String app) throws DiscoveryException
 DiscoveryService (int id, byte level, String app, byte debug_level) throws DiscoveryException
 DiscoveryService (int id, byte level, String app, byte debug_level, int port) throws DiscoveryException
void log (Logger.LOG type, String msg)
void shutdown ()
void sendDiscovery (Announce ann)
void sendDiscovery (Report report)
byte level ()
int identifier ()
byte[] capabilities ()
void registerObject (byte capability, sensix.Request obj) throws DiscoveryException
void registerObject (byte capability, sensix.Request obj, boolean override) throws DiscoveryException
boolean findNodeInFamily (int id) throws DiscoveryException
sensix.Request[] queryFamilyNetwork (byte capability) throws DiscoveryException
sensix.Request queryFamilyNode (int id, byte capability) throws DiscoveryException
boolean findNodeInDescendants (int id) throws DiscoveryException
sensix.Request[] queryDescendantNetwork (byte capability) throws DiscoveryException
sensix.Request queryDescendantNode (int id, byte capability) throws DiscoveryException
byte[] descendantCapabilities () throws DiscoveryException
int[] descendantNodes () throws DiscoveryException
boolean findNodeInSiblings (int id) throws DiscoveryException
sensix.Request[] querySiblingNetwork (byte capability) throws DiscoveryException
sensix.Request querySiblingNode (int id, byte capability) throws DiscoveryException
byte[] siblingCapabilities () throws DiscoveryException
int[] siblingNodes () throws DiscoveryException
boolean findNodeInAncestors (int id) throws DiscoveryException
int[] ancestorNodes () throws DiscoveryException
 DiscoveryService (CORBA::ORB_ptr ptr, uint32_t id, uint8_t lvl, int port=DISCOVERY_PORT)
 ~DiscoveryService ()
void shutdown ()
CORBA::Octet level ()
NodeId identifier ()
CapabilityListcapabilities ()
void registerObject (CORBA::Octet capability, Request_var obj)
CORBA::Boolean findNodeInFamily (NodeId id)
RequestListqueryFamilyNetwork (CORBA::Octet capability)
Request_ptr queryFamilyNode (NodeId id, CORBA::Octet capability)
CORBA::Boolean findNodeInDescendants (NodeId id)
RequestListqueryDescendantNetwork (CORBA::Octet capability)
Request_ptr queryDescendantNode (NodeId id, CORBA::Octet capability)
CapabilityListdescendantCapabilities ()
NodeListdescendantNodes ()
CORBA::Boolean findNodeInSiblings (NodeId id)
RequestListquerySiblingNetwork (CORBA::Octet capability)
Request_ptr querySiblingNode (NodeId id, CORBA::Octet capability)
CapabilityListsiblingCapabilities ()
NodeListsiblingNodes ()
CORBA::Boolean findNodeInAncestors (NodeId id)
NodeListancestorNodes ()

Static Public Member Functions

static byte[] i2b (int i)
static byte[] i2b (int i, int size)
static int b2i (byte b[])
static int b2i (byte b[], int size)
static int b2i_le (byte b[])
static int b2i_le (byte b[], int size)
static byte[] announceHeader ()
static byte[] reportHeader ()
static byte[] loadAnnounce (Announce ann)
static byte[] loadReport (Report rpt)

Public Attributes

boolean running
boolean initialized
ObjectReference[] references
int refs_size
ObjectReference[] sib_database
int sib_db_size
ObjectReference[] desc_database
int desc_db_size
int[] ancestors_seen
int ancestors_size
int[] siblings_seen
int siblings_size
int[] descendants_seen
int descendants_size

Static Public Attributes

static final int DISCOVERY_PORT = 2999
static final String MCAST_ADDR_IPv6 = "FF18::178"
static final String MCAST_ADDR_IPv4 = "224.0.0.178"
static final String MCAST_ADDR = MCAST_ADDR_IPv4
static final int MEMORY_LIMIT = 8096
static final int HEADER_SIZE = 8
static final int TX_TIMEOUT = 12
static final int RETRY_ITVL = 4
static final int EMPTY_TIMEOUT = 1000
static final int MAX_PARENTS = 128
static final int MAX_CHILDREN = 512
static final int MAX_SIBLINGS = 128
static final int MAX_PEERS = (MAX_CHILDREN + MAX_SIBLINGS)
static final int MAX_CAPABLE = 32

Classes

class  Listener
class  ObjectReference


Detailed Description

Definition at line 43 of file DiscoveryService.java.


Constructor & Destructor Documentation

sensix::discovery::DiscoveryService::DiscoveryService ( int  id,
byte  level 
) throws DiscoveryException

Definition at line 393 of file DiscoveryService.java.

sensix::discovery::DiscoveryService::DiscoveryService ( int  id,
byte  level,
String  app 
) throws DiscoveryException

Definition at line 397 of file DiscoveryService.java.

sensix::discovery::DiscoveryService::DiscoveryService ( int  id,
byte  level,
String  app,
byte  debug_level 
) throws DiscoveryException

Definition at line 402 of file DiscoveryService.java.

sensix::discovery::DiscoveryService::DiscoveryService ( int  id,
byte  level,
String  app,
byte  debug_level,
int  port 
) throws DiscoveryException

Definition at line 407 of file DiscoveryService.java.

DiscoveryService::DiscoveryService ( CORBA::ORB_ptr  ptr,
uint32_t  id,
uint8_t  lvl,
int  port = DISCOVERY_PORT 
)

Definition at line 350 of file discovery.cpp.

DiscoveryService::~DiscoveryService (  ) 

Definition at line 367 of file discovery.cpp.


Member Function Documentation

static byte [] sensix::discovery::DiscoveryService::i2b ( int  i  )  [static]

Definition at line 66 of file DiscoveryService.java.

static byte [] sensix::discovery::DiscoveryService::i2b ( int  i,
int  size 
) [static]

Definition at line 70 of file DiscoveryService.java.

static int sensix::discovery::DiscoveryService::b2i ( byte  b[]  )  [static]

Definition at line 77 of file DiscoveryService.java.

static int sensix::discovery::DiscoveryService::b2i ( byte  b[],
int  size 
) [static]

Definition at line 81 of file DiscoveryService.java.

static int sensix::discovery::DiscoveryService::b2i_le ( byte  b[]  )  [static]

Definition at line 88 of file DiscoveryService.java.

static int sensix::discovery::DiscoveryService::b2i_le ( byte  b[],
int  size 
) [static]

Definition at line 92 of file DiscoveryService.java.

static byte [] sensix::discovery::DiscoveryService::announceHeader (  )  [static]

Definition at line 101 of file DiscoveryService.java.

static byte [] sensix::discovery::DiscoveryService::reportHeader (  )  [static]

Definition at line 115 of file DiscoveryService.java.

static byte [] sensix::discovery::DiscoveryService::loadAnnounce ( Announce  ann  )  [static]

Definition at line 129 of file DiscoveryService.java.

static byte [] sensix::discovery::DiscoveryService::loadReport ( Report  rpt  )  [static]

Definition at line 140 of file DiscoveryService.java.

void sensix::discovery::DiscoveryService::log ( Logger.LOG  type,
String  msg 
)

Definition at line 470 of file DiscoveryService.java.

void DiscoveryService::shutdown (  ) 

Definition at line 474 of file DiscoveryService.java.

void sensix::discovery::DiscoveryService::sendDiscovery ( Announce  ann  ) 

Definition at line 515 of file DiscoveryService.java.

void sensix::discovery::DiscoveryService::sendDiscovery ( Report  report  ) 

Definition at line 523 of file DiscoveryService.java.

CORBA::Octet DiscoveryService::level (  ) 

Implements sensix::discovery::Self.

Definition at line 567 of file DiscoveryService.java.

sensix::NodeId DiscoveryService::identifier (  ) 

Implements sensix::discovery::Self.

Definition at line 571 of file DiscoveryService.java.

CapabilityList * DiscoveryService::capabilities (  ) 

Implements sensix::discovery::Self.

Definition at line 575 of file DiscoveryService.java.

void sensix::discovery::DiscoveryService::registerObject ( byte  capability,
sensix.Request  obj 
) throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 582 of file DiscoveryService.java.

void sensix::discovery::DiscoveryService::registerObject ( byte  capability,
sensix.Request  obj,
boolean  override 
) throws DiscoveryException

Definition at line 587 of file DiscoveryService.java.

boolean sensix::discovery::DiscoveryService::findNodeInFamily ( int  id  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 622 of file DiscoveryService.java.

sensix.Request [] sensix::discovery::DiscoveryService::queryFamilyNetwork ( byte  capability  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 626 of file DiscoveryService.java.

sensix.Request sensix::discovery::DiscoveryService::queryFamilyNode ( int  id,
byte  capability 
) throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 631 of file DiscoveryService.java.

boolean sensix::discovery::DiscoveryService::findNodeInDescendants ( int  id  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 636 of file DiscoveryService.java.

sensix.Request [] sensix::discovery::DiscoveryService::queryDescendantNetwork ( byte  capability  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 640 of file DiscoveryService.java.

sensix.Request sensix::discovery::DiscoveryService::queryDescendantNode ( int  id,
byte  capability 
) throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 645 of file DiscoveryService.java.

CapabilityList * DiscoveryService::descendantCapabilities (  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 650 of file DiscoveryService.java.

NodeList * DiscoveryService::descendantNodes (  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 654 of file DiscoveryService.java.

boolean sensix::discovery::DiscoveryService::findNodeInSiblings ( int  id  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 658 of file DiscoveryService.java.

sensix.Request [] sensix::discovery::DiscoveryService::querySiblingNetwork ( byte  capability  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 662 of file DiscoveryService.java.

sensix.Request sensix::discovery::DiscoveryService::querySiblingNode ( int  id,
byte  capability 
) throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 667 of file DiscoveryService.java.

CapabilityList * DiscoveryService::siblingCapabilities (  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 672 of file DiscoveryService.java.

NodeList * DiscoveryService::siblingNodes (  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 676 of file DiscoveryService.java.

boolean sensix::discovery::DiscoveryService::findNodeInAncestors ( int  id  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 680 of file DiscoveryService.java.

NodeList * DiscoveryService::ancestorNodes (  )  throws DiscoveryException

Implements sensix::discovery::Self.

Definition at line 684 of file DiscoveryService.java.

void sensix::discovery::DiscoveryService::shutdown (  ) 

CORBA::Octet sensix::discovery::DiscoveryService::level (  ) 

NodeId sensix::discovery::DiscoveryService::identifier (  ) 

CapabilityList* sensix::discovery::DiscoveryService::capabilities (  ) 

void sensix::discovery::DiscoveryService::registerObject ( CORBA::Octet  capability,
Request_var  obj 
)

CORBA::Boolean DiscoveryService::findNodeInFamily ( sensix::NodeId  id  ) 

Definition at line 430 of file discovery.cpp.

RequestList * DiscoveryService::queryFamilyNetwork ( CORBA::Octet  capability  ) 

Definition at line 434 of file discovery.cpp.

sensix::Request_ptr DiscoveryService::queryFamilyNode ( sensix::NodeId  id,
CORBA::Octet  capability 
)

Definition at line 438 of file discovery.cpp.

CORBA::Boolean DiscoveryService::findNodeInDescendants ( sensix::NodeId  id  ) 

Definition at line 444 of file discovery.cpp.

RequestList * DiscoveryService::queryDescendantNetwork ( CORBA::Octet  capability  ) 

Definition at line 448 of file discovery.cpp.

sensix::Request_ptr DiscoveryService::queryDescendantNode ( sensix::NodeId  id,
CORBA::Octet  capability 
)

Definition at line 452 of file discovery.cpp.

CapabilityList* sensix::discovery::DiscoveryService::descendantCapabilities (  ) 

NodeList* sensix::discovery::DiscoveryService::descendantNodes (  ) 

CORBA::Boolean DiscoveryService::findNodeInSiblings ( sensix::NodeId  id  ) 

Definition at line 466 of file discovery.cpp.

RequestList * DiscoveryService::querySiblingNetwork ( CORBA::Octet  capability  ) 

Definition at line 470 of file discovery.cpp.

sensix::Request_ptr DiscoveryService::querySiblingNode ( sensix::NodeId  id,
CORBA::Octet  capability 
)

Definition at line 474 of file discovery.cpp.

CapabilityList* sensix::discovery::DiscoveryService::siblingCapabilities (  ) 

NodeList* sensix::discovery::DiscoveryService::siblingNodes (  ) 

CORBA::Boolean DiscoveryService::findNodeInAncestors ( sensix::NodeId  id  ) 

Definition at line 488 of file discovery.cpp.

NodeList* sensix::discovery::DiscoveryService::ancestorNodes (  ) 


Member Data Documentation

Definition at line 45 of file DiscoveryService.java.

final String sensix::discovery::DiscoveryService::MCAST_ADDR_IPv6 = "FF18::178" [static]

Definition at line 46 of file DiscoveryService.java.

final String sensix::discovery::DiscoveryService::MCAST_ADDR_IPv4 = "224.0.0.178" [static]

Definition at line 47 of file DiscoveryService.java.

Definition at line 48 of file DiscoveryService.java.

Definition at line 51 of file DiscoveryService.java.

Definition at line 52 of file DiscoveryService.java.

Definition at line 55 of file DiscoveryService.java.

Definition at line 56 of file DiscoveryService.java.

Definition at line 57 of file DiscoveryService.java.

Definition at line 59 of file DiscoveryService.java.

Definition at line 60 of file DiscoveryService.java.

Definition at line 61 of file DiscoveryService.java.

Definition at line 63 of file DiscoveryService.java.


The documentation for this class was generated from the following files:


© 2008, Los Alamos National Security, LLC.