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__
connect
disconnect
list_users
query_state
receive_messages_from_node
request_ids
send_messages_to_nodes
updateNodeState
  __init__ 
__init__ (
        self,
        orb,
        log,
        debug,
        verbose,
        password,
        )

  connect 
connect (
        self,
        node_ref,
        username,
        password,
        hostname,
        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.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")

  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 Tue Nov 5 16:56:13 2002 by HappyDoc version 2.0.1