Table of Contents

Class: HubServerImplementation Collaboratory/Hub.py

The Hub Server runs as an implementation within the CORBA ORB, managing incoming Node connections, and receiving commands from leaves

Base Classes   
Collaboratory_CORBA__POA.Hub_Server
Methods   
__init__
checkIfAcceptingMsgs
connect
disconnect
get_state
list_users
query_state
receive_messages_from_node
request_ids
send_messages_to_nodes
updateNodeState
  __init__ 
__init__ (
        self,
        hub,
        orb,
        log,
        debug,
        verbose,
        password,
        )

  checkIfAcceptingMsgs 
checkIfAcceptingMsgs ( self,  node_id )

  connect 
connect (
        self,
        node_ref,
        username,
        password,
        hostname,
        starttime,
        platform,
        version,
        protocol,
        )

(for messages FROM node TO hub)

Exceptions   
Collaboratory_CORBA.AlreadyConnected, "User: %s@%s rejected (already logged in)\n" %( username, hostname )
Collaboratory_CORBA.BadPassword, "User: %s@%s rejected (bad password!)\n" %( username, hostname )
Collaboratory_CORBA.DoNotDisturb, "Not accepting new participants!"
Collaboratory_CORBA.InvalidProtocol, "Invalid protocol version: Hub %d, Node %d" %( Common.COLLABORATORY_PROTOCOL_VERSION, protocol )
  disconnect 
disconnect ( self,  id )

disconnect() gets called when a user is disconnected (network goes down or they click "disconnect")

  get_state 
get_state ( self )

  list_users 
list_users ( self )

  query_state 
query_state ( self )

  receive_messages_from_node 
receive_messages_from_node (
        self,
        node_id,
        messages,
        )

Receive a command FROM the node and send it to the other leaves

  request_ids 
request_ids ( self,  num_ids )

  send_messages_to_nodes 
send_messages_to_nodes (
        self,
        node_id,
        messages,
        )

  updateNodeState 
updateNodeState ( self,  id )


Table of Contents

This document was automatically generated on Wed Mar 26 19:02:06 2003 by HappyDoc version 2.1