Home | Trees | Index | Help |
|
---|
Package g4ds :: Module maintainlib |
|
Functions to g4ds for maintainence.
Grid for Digital Security (G4DS)
This module provides the functionality. The access is provided by the
module maintain
.
Author: Michael Pilgermann
Contact: mailto:mpilgerm@glam.ac.uk
License: GPL (General Public License)
Function Summary | |
---|---|
Installs enpoints for a member and a community. | |
addKsdl(filename,
indent)
| |
Applies a member description to the local managers from a file. | |
Add a route to the routing table manually. | |
Applies a community description to the local managers from a file. | |
Prints information about a certain community. | |
createServiceKeys(indent)
| |
Downloads the community description from the given member. | |
downloadAndInstallKsdl(serviceid,
destinationmemberid,
indent)
| |
Polls routing information from connected gateways and applies infos to the local routing table. | |
Causes a flush of the entire routing table. | |
Generates the member description for the local node. | |
Prints information about a remote node. | |
Prints information about a certain node. | |
printPermissionMatrix(indent)
| |
Print the routing table. | |
Prints information about one service. | |
Prints list of known services with basic information. | |
Uploads the local member description to certain nodes. | |
Show log entries. | |
recalculatePermissions(indent)
| |
Recreates the routing table by the use of gateway information. | |
Sends a test message to a member using a certain community. | |
Prints information about the local node. | |
Performs the subscription of a member to a community. | |
subscribeMemberToService(memberid,
serviceid,
indent)
| |
uploadKsdl(serviceid,
indent)
| |
Supporter function for endpoint installation ( addEndpointsForMember ) - automatic
mode. | |
Supporter function for subsribing a member to a community. | |
Supporter function for member subscription process. | |
Should be called by a function at entry stage. | |
Finishes a line as prepared by _printAction . | |
Shoudl be called by a function before leaving. | |
Prints a line for an action and puts the cursor on a predefined column. | |
Prompts the user for input. | |
Supporter function for downloading a tcdl from a remote host. |
Variable Summary | |
---|---|
int |
COLUMN_INPUT = 70 |
int |
COLUMN_SUCESS = 80 |
int |
LENGTH_LINE = 89 |
String |
oneindent : The space to indent between functions within the hierarchy |
String |
SUCESS_NEG : Default string for unsucessful action |
String |
SUCESS_POS : Default string for sucessful action |
str |
SUCESS_SKIP = '\x1b[33;01m SKIP \x1b[39;49;00m'
|
str |
SUCESS_WARN = '\x1b[33;01m !! \x1b[39;49;00m'
|
Function Details |
---|
addEndpointsForMember(memberid=None, communityid=None, indent=0)Installs enpoints for a member and a community. |
addMdl(filename=None, indent=0)Applies a member description to the local managers from a file. |
addRoute(indent=0)Add a route to the routing table manually. |
addTcdl(filename=None, indent=0)Applies a community description to the local managers from a file. |
communityInfo(id)Prints information about a certain community. |
downloadAndInstallCommunityDescription(communityid=None, destinationmemberid=None, indent=0)Downloads the community description from the given member. |
dynamicRoutingUpdate(indent=0)Polls routing information from connected gateways and applies infos to the local routing table. |
flushRoutingTable(indent=0)Causes a flush of the entire routing table. |
getLocalMdl(filename='./local.mdl', indent=0)Generates the member description for the local node. Uses information from the local managers and config file. |
nodeInfo(id)Prints information about a remote node. |
printNodeDescription(dict, local=0)Prints information about a certain node. |
printRoutingTable(indent=0)Print the routing table. |
printServiceInformation(serviceid, indent=0)Prints information about one service. |
printServiceList(indent=0)Prints list of known services with basic information. |
pushMemberDescription(memberid=None, communityid=None, destinationList=[], indent=0)Uploads the local member description to certain nodes.
|
readLog(n=10, indent=0)Show log entries. |
recalculateRoutingTable(indent=0)Recreates the routing table by the use of gateway information. |
sendTestMessage(indent=0)Sends a test message to a member using a certain community. |
status()Prints information about the local node. |
subscribeMemberToCommunity(memberid=None, communityid=None, destination=None, indent=0)Performs the subscription of a member to a community. If the community is not yet known on this system, it's attempted to be downloaded.
|
_addEndpointsAutomatically(memberid, communityid, indent=0)Supporter function for endpoint installation (addEndpointsForMember ) - automatic
mode.
|
_connectForSubscription(communityid, memberid, destination, inbackground=0, status=None)Supporter function for subsribing a member to a community. Supports job functionality. |
_doSubscribe(indent, communityid, newmemberid, destination)Supporter function for member subscription process. Encapsulates the user input and the timer for waiting for replies. |
_enterFunction(indent, text=None)Should be called by a function at entry stage. Calculates indent and puts some additional output. |
_finishActionLine(sucess='\x1b[32;01m OK \x1b[39;49;00m')Finishes a line as prepared by |
_leaveFunction(indent, text='Finished here', sucess=None)Shoudl be called by a function before leaving. Puts some output and optionally information about sucess. |
_printAction(indent, text, linebreak=0, out=<epydoc.imports._DevNull instance at 0xb7bbbc0c>)Prints a line for an action and puts the cursor on a predefined column. Usually, no line break is written, the line should be finished after performing an action using the function_finishActionLine .
|
_requestInput(indent, prompt, default=None)Prompts the user for input. |
_subdownloadTcdl(communityid, memberid, inbackground=0, status=None)Supporter function for downloading a tcdl from a remote host. Supports job functionality. |
Variable Details |
---|
COLUMN_INPUT
|
COLUMN_SUCESS
|
LENGTH_LINE
|
oneindentThe space to indent between functions within the hierarchy
|
SUCESS_NEGDefault string for unsucessful action
|
SUCESS_POSDefault string for sucessful action
|
SUCESS_SKIP
|
SUCESS_WARN
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 22 22:52:46 2005 | http://epydoc.sf.net |