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

gov::lanl::isr::sensix::discovery::DiscoveryService Class Reference

List of all members.

Public Member Functions

 DiscoveryService (ORB orb, int id, byte level) throws org.omg.CORBA.SystemException, org.omg.CORBA.UserException, DiscoveryException
 DiscoveryService (ORB orb, int id, byte level, String app) throws org.omg.CORBA.SystemException, org.omg.CORBA.UserException, DiscoveryException
 DiscoveryService (ORB orb, int id, byte level, String app, byte debug_level) throws org.omg.CORBA.SystemException, org.omg.CORBA.UserException, DiscoveryException
 DiscoveryService (ORB orb_val, int id, byte level, String app, byte debug_level, int port) throws org.omg.CORBA.SystemException, org.omg.CORBA.UserException, DiscoveryException
void log (Logger.LOG type, String msg)
void shutdown ()
ObjectReference newObjRef ()
void sendDiscovery (Announce ann)
void sendDiscovery (Report report)
void sendDiscovery (Require require)
void sendDiscovery (Share share)
byte level ()
int identifier ()
byte[] capabilities ()
void registerObject (byte capability, gov.lanl.isr.sensix.Request obj) throws DiscoveryException
void registerObject (byte capability, gov.lanl.isr.sensix.Request obj, boolean override) throws DiscoveryException
boolean findNodeInFamily (int id) throws DiscoveryException
gov.lanl.isr.sensix.Request[] queryFamilyNetwork (byte capability) throws DiscoveryException
gov.lanl.isr.sensix.Request queryFamilyNode (int id, byte capability) throws DiscoveryException
boolean findNodeInDescendants (int id) throws DiscoveryException
gov.lanl.isr.sensix.Request[] queryDescendantNetwork (byte capability) throws DiscoveryException
gov.lanl.isr.sensix.Request queryDescendantNode (int id, byte capability) throws DiscoveryException
byte[] descendantCapabilities () throws DiscoveryException
int[] descendantNodes () throws DiscoveryException
boolean findNodeInSiblings (int id) throws DiscoveryException
gov.lanl.isr.sensix.Request[] querySiblingNetwork (byte capability) throws DiscoveryException
gov.lanl.isr.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

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[] requireHeader ()
static byte[] shareHeader (Share shr)
static byte[] loadAnnounce (Announce ann)
static byte[] loadReport (Report rpt)
static byte[] loadRequire (Require req)
static byte[] loadShare (Share shr)

Public Attributes

ORB orb
POA poa
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_IPv6
static final boolean INSTRUMENT = true
static final boolean DUMP_TO_FILE = false
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 46 of file DiscoveryService.java.


Constructor & Destructor Documentation

gov::lanl::isr::sensix::discovery::DiscoveryService::DiscoveryService ( ORB  orb,
int  id,
byte  level 
) throws org.omg.CORBA.SystemException, org.omg.CORBA.UserException, DiscoveryException

Definition at line 538 of file DiscoveryService.java.

gov::lanl::isr::sensix::discovery::DiscoveryService::DiscoveryService ( ORB  orb,
int  id,
byte  level,
String  app 
) throws org.omg.CORBA.SystemException, org.omg.CORBA.UserException, DiscoveryException

Definition at line 544 of file DiscoveryService.java.

gov::lanl::isr::sensix::discovery::DiscoveryService::DiscoveryService ( ORB  orb,
int  id,
byte  level,
String  app,
byte  debug_level 
) throws org.omg.CORBA.SystemException, org.omg.CORBA.UserException, DiscoveryException

Definition at line 550 of file DiscoveryService.java.

gov::lanl::isr::sensix::discovery::DiscoveryService::DiscoveryService ( ORB  orb_val,
int  id,
byte  level,
String  app,
byte  debug_level,
int  port 
) throws org.omg.CORBA.SystemException, org.omg.CORBA.UserException, DiscoveryException

Definition at line 557 of file DiscoveryService.java.


Member Function Documentation

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

Definition at line 71 of file DiscoveryService.java.

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

Definition at line 75 of file DiscoveryService.java.

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

Definition at line 82 of file DiscoveryService.java.

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

Definition at line 86 of file DiscoveryService.java.

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

Definition at line 93 of file DiscoveryService.java.

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

Definition at line 97 of file DiscoveryService.java.

static byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::announceHeader (  )  [static]

Definition at line 106 of file DiscoveryService.java.

static byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::reportHeader (  )  [static]

Definition at line 120 of file DiscoveryService.java.

static byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::requireHeader (  )  [static]

Definition at line 134 of file DiscoveryService.java.

static byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::shareHeader ( Share  shr  )  [static]

Definition at line 148 of file DiscoveryService.java.

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

Definition at line 164 of file DiscoveryService.java.

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

Definition at line 175 of file DiscoveryService.java.

static byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::loadRequire ( Require  req  )  [static]

Definition at line 187 of file DiscoveryService.java.

static byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::loadShare ( Share  shr  )  [static]

Definition at line 202 of file DiscoveryService.java.

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

Definition at line 639 of file DiscoveryService.java.

void gov::lanl::isr::sensix::discovery::DiscoveryService::shutdown (  ) 

Definition at line 643 of file DiscoveryService.java.

ObjectReference gov::lanl::isr::sensix::discovery::DiscoveryService::newObjRef (  ) 

Definition at line 654 of file DiscoveryService.java.

void gov::lanl::isr::sensix::discovery::DiscoveryService::sendDiscovery ( Announce  ann  ) 

Definition at line 688 of file DiscoveryService.java.

void gov::lanl::isr::sensix::discovery::DiscoveryService::sendDiscovery ( Report  report  ) 

Definition at line 696 of file DiscoveryService.java.

void gov::lanl::isr::sensix::discovery::DiscoveryService::sendDiscovery ( Require  require  ) 

Definition at line 704 of file DiscoveryService.java.

void gov::lanl::isr::sensix::discovery::DiscoveryService::sendDiscovery ( Share  share  ) 

Definition at line 713 of file DiscoveryService.java.

byte gov::lanl::isr::sensix::discovery::DiscoveryService::level (  ) 

Definition at line 769 of file DiscoveryService.java.

int gov::lanl::isr::sensix::discovery::DiscoveryService::identifier (  ) 

Definition at line 773 of file DiscoveryService.java.

byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::capabilities (  ) 

Definition at line 777 of file DiscoveryService.java.

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

Definition at line 784 of file DiscoveryService.java.

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

Definition at line 789 of file DiscoveryService.java.

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

Definition at line 834 of file DiscoveryService.java.

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

Definition at line 838 of file DiscoveryService.java.

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

Definition at line 843 of file DiscoveryService.java.

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

Definition at line 848 of file DiscoveryService.java.

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

Definition at line 852 of file DiscoveryService.java.

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

Definition at line 857 of file DiscoveryService.java.

byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::descendantCapabilities (  )  throws DiscoveryException

Definition at line 863 of file DiscoveryService.java.

int [] gov::lanl::isr::sensix::discovery::DiscoveryService::descendantNodes (  )  throws DiscoveryException

Definition at line 867 of file DiscoveryService.java.

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

Definition at line 871 of file DiscoveryService.java.

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

Definition at line 875 of file DiscoveryService.java.

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

Definition at line 880 of file DiscoveryService.java.

byte [] gov::lanl::isr::sensix::discovery::DiscoveryService::siblingCapabilities (  )  throws DiscoveryException

Definition at line 885 of file DiscoveryService.java.

int [] gov::lanl::isr::sensix::discovery::DiscoveryService::siblingNodes (  )  throws DiscoveryException

Definition at line 889 of file DiscoveryService.java.

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

Definition at line 893 of file DiscoveryService.java.

int [] gov::lanl::isr::sensix::discovery::DiscoveryService::ancestorNodes (  )  throws DiscoveryException

Definition at line 897 of file DiscoveryService.java.


Member Data Documentation

Definition at line 49 of file DiscoveryService.java.

Definition at line 50 of file DiscoveryService.java.

Definition at line 52 of file DiscoveryService.java.

Definition at line 53 of file DiscoveryService.java.


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


© 2008, Los Alamos National Security, LLC.