HappyDoc Generated Documentation Class: HubServerImplementation

. / Collaboratory / Hub.py / HubServerImplementation 

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

Base Classes   

HubServerImplementation
  Collaboratory_CORBA__POA.Hub_Server

Methods   
  updateNodeState 
updateNodeState ( self,  id )
  disconnect 
disconnect ( self,  id )

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

  checkIfAcceptingMsgs 
checkIfAcceptingMsgs ( self,  node_id )
  list_users 
list_users ( self )
  query_state 
query_state ( self )
  send_messages_to_nodes 
send_messages_to_nodes (
        self,
        node_id,
        messages,
        active,
        )
  receive_messages_from_node 
receive_messages_from_node (
        self,
        node_id,
        messages,
        active_msgs,
        )

Receive a command FROM the node and send it to the other leaves This method is called by the Node's client thread

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

(for messages FROM node TO hub)

Exceptions   

Collaboratory_CORBA.NoBackConnection, "Attempt to make back-connection timed out.\nUser behind firewall or using network address translation?"
Collaboratory_CORBA.BadPassword, "User: %s@%s rejected (bad password!)" %( username, hostname )
Collaboratory_CORBA.AlreadyConnected, "User: %s rejected (username already taken)" % username
Collaboratory_CORBA.DoNotDisturb, "Not accepting new participants!"
Collaboratory_CORBA.InvalidProtocol, "Invalid protocol version: Hub %d, Node %d" %( Common.COLLABORATORY_PROTOCOL_VERSION, protocol )
Collaboratory_CORBA.NoBackConnection, "User behind firewall or using network address translation?"

  get_state 
get_state ( self )
  sendDisconnectMsg 
sendDisconnectMsg ( self,  name )
  request_ids 
request_ids ( self,  num_ids )
  __init__ 
__init__ (
        self,
        hub,
        orb,
        log,
        debug,
        verbose,
        password,
        )

This document was automatically generated Thu Feb 02 15:18:29 2006 by HappyDoc version 3.0.a1