Module modeling :: Class HostBuilder
[hide private]

Class HostBuilder

source code

OshBuilder --+
             |
            HostBuilder

Instance Methods [hide private]
 
__init__(self, osh) source code
 
setDescription(self, value)
str -> HostBuilder
source code
 
determineRoles(self)
void -> ObjectStateHolder
source code
 
setAsDesktop(self, isDesktop) source code
 
setAsServer(self, isServer) source code
 
setAsLanSwitch(self, isSwitch) source code
 
setAsAtmSwitch(self, isSwitch) source code
 
setAsFirewall(self, isFirewall) source code
 
setAsRouter(self, isRoute, isRoleApplied=1) source code
 
setAsVirtual(self, isVirtual) source code
 
setOsName(self, osName)
str -> HostBuilder
source code
 
build(self)
void -> ObjectStateHolder
source code
 
setRole(self, roleDef, value=1, isRoleApplied=1)
RoleDefinition, bool -> HostBuilder
source code
 
incompleteByIp(ipAddress, hostClassName="node", osName=None, machineName=None, machineBootDate=None)
Creates a node OSH with its associated IP Address, operation system name.
source code
ObjectStateHolder
completeByHostKey(hostClass, hostKey, osName=None, machineName=None, machineBootDate=None)
Creates a OSH that represents a complete node.
source code

Inherited from OshBuilder: __getattr__

Class Variables [hide private]
  ATTR_NODE_ROLE = "node_role"
  CLASS_NAME = "node"
  fromClassName = _HostBuilderStaticMethod(ObjectStateHolder)
Method Details [hide private]

__init__(self, osh)
(Constructor)

source code 
Overrides: OshBuilder.__init__

build(self)

source code 

void -> ObjectStateHolder

Overrides: OshBuilder.build

incompleteByIp(ipAddress, hostClassName="node", osName=None, machineName=None, machineBootDate=None)

source code 

Creates a node OSH with its associated IP Address, operation system name. and machine name. The created node is not complete>

Parameters:
  • ipAddress (string) - a well formated IP address
  • hostClassName (string) - the default is node
  • osName (string) - the operation system name, can be None
  • machineName (string) - the MAC address, can be None

completeByHostKey(hostClass, hostKey, osName=None, machineName=None, machineBootDate=None)

source code 

Creates a OSH that represents a complete node.

Parameters:
  • hostClass (string) - the node type, for example nt
  • hostKey (string) - the smallest MAC address of the machine
  • osName (string) - operation system name, can be None
  • machineName (string) - can be None
Returns: ObjectStateHolder