Package Products :: Package ZenModel :: Module WinService :: Class WinService
[hide private]
[frames] | no frames]

Class WinService

source code

                 object --+                
                          |                
          Lockable.Lockable --+            
                              |            
DeviceComponent.DeviceComponent --+        
                                  |        
    ManagedEntity.ManagedEntity --+        
                                  |        
            OSComponent.OSComponent --+    
                                      |    
            Commandable.Commandable --+    
                                      |    
                         object --+   |    
                                  |   |    
            ZenPackable.ZenPackable --+    
                                      |    
                        Service.Service --+
                                          |
                                         WinService

Windows Service Class

Instance Methods [hide private]
 
getInstDescription(self)
Return some text that describes this component.
source code
 
getMonitoredStartModes(self) source code
 
monitored(self)
Should this Windows Service be monitored
source code
 
getStatus(self, statClass=None)
Return the status number for this WinService
source code
 
getServiceClass(self)
Return a dict like one set by zenwinmodeler for services.
source code
 
setServiceClass(self, kwargs)
Set the service class where name=ServiceName and description=Caption.
source code
 
name(self)
Return the name of this service.
source code
 
getCaption(self) source code
 
primarySortKey(self) source code
 
manage_editService(self, id=None, description=None, pathName=None, serviceType=None, startMode=None, startName=None, monitoredStartModes=[], monitor=False, severity=5, REQUEST=None)
Edit a Service from a web page.
source code

Inherited from Service.Service: getAqChainForUserCommands, getClassObject, getFailSeverity, getFailSeverityString, getServiceClassLink, getSeverities, getUrlForUserCommands, getUserCommandEnvironment, getUserCommandTargets, isMonitored, key, title

Inherited from OSComponent.OSComponent: device, getPrettyLink, isUserCreated, manage_deleteComponent, manage_updateComponent, setUserCreateFlag

Inherited from DeviceComponent.DeviceComponent: filterAutomaticCreation, getAqProperty, getCollectors, getIconPath, getManageIp, getNagiosTemplate, getParentDeviceName, getParentDeviceTitle, getParentDeviceUrl, getRRDContextData, getStatusString, getSubComponentsNoIndexGen, hostname, setAqProperty

Inherited from Lockable.Lockable: getNextLockableParent, isLockedFromDeletion, isLockedFromUpdates, isUnlocked, lockFromDeletion, lockFromUpdates, lockStatus, lockWarning, sendEventWhenBlocked, setSendEventWhenBlockedFlag, unlock, unsetSendEventWhenBlockedFlag

Inherited from Commandable.Commandable: compile, doCommandForTarget, getUserCommand, getUserCommandIds, getUserCommands, manage_addUserCommand, manage_deleteUserCommand, manage_doUserCommand, manage_editUserCommand, redirectToUserCommands, write

Class Variables [hide private]
  meta_type = 'WinService'
  portal_type = 'WinService'
  serviceName = ""
  caption = ""
  pathName = ""
  serviceType = ""
  startMode = ""
  startName = ""
  monitoredStartModes = []
  collectors = 'zenwin',
  _properties = Service._properties+({'id': 'serviceName', 'type...
  _relations = Service._relations+(("os", ToOne(ToManyCont, "Pro...
  factory_type_information = {'immediate_view': 'winServiceDetai...
  security = ClassSecurityInfo()

Inherited from OSComponent.OSComponent: isUserCreatedFlag

Inherited from DeviceComponent.DeviceComponent: __pychecker__, default_catalog, event_key, perfmonInstance

Inherited from Lockable.Lockable: modelerLock, sendEventWhenBlockedFlag

Inherited from Commandable.Commandable: defaultTimeout

Method Details [hide private]

getInstDescription(self)

source code 

Return some text that describes this component. Default is name.

Overrides: DeviceComponent.DeviceComponent.getInstDescription

monitored(self)

source code 

Should this Windows Service be monitored

Overrides: DeviceComponent.DeviceComponent.monitored

getStatus(self, statClass=None)

source code 

Return the status number for this WinService

Overrides: DeviceComponent.DeviceComponent.getStatus

setServiceClass(self, kwargs)

source code 

Set the service class where name=ServiceName and description=Caption.

Overrides: Service.Service.setServiceClass

name(self)

source code 

Return the name of this service.

Overrides: DeviceComponent.DeviceComponent.name

manage_editService(self, id=None, description=None, pathName=None, serviceType=None, startMode=None, startName=None, monitoredStartModes=[], monitor=False, severity=5, REQUEST=None)

source code 

Edit a Service from a web page.

Overrides: Service.Service.manage_editService

Class Variable Details [hide private]

_properties

Value:
Service._properties+({'id': 'serviceName', 'type': 'string', 'mode': '\
w'}, {'id': 'caption', 'type': 'string', 'mode': 'w'}, {'id': 'pathNam\
e', 'type': 'string', 'mode': 'w'}, {'id': 'serviceType', 'type': 'str\
ing', 'mode': 'w'}, {'id': 'startMode', 'type': 'string', 'mode': 'w'}\
, {'id': 'startName', 'type': 'string', 'mode': 'w'}, {'id': 'monitore\
dStartModes', 'type': 'lines', 'mode': 'w'},)

_relations

Value:
Service._relations+(("os", ToOne(ToManyCont, "Products.ZenModel.Operat\
ingSystem", "winservices")),)

factory_type_information

Value:
{'immediate_view': 'winServiceDetail', 'actions':({'id': 'status', 'na\
me': 'Status', 'action': 'winServiceDetail', 'permissions':(Permission\
s.view,)}, {'id': 'events', 'name': 'Events', 'action': 'viewEvents', \
'permissions':(ZEN_VIEW,)}, {'id': 'manage', 'name': 'Administration',\
 'action': 'winServiceManage', 'permissions':("Manage DMD",)},)},