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

Class WinService

source code

                                                       object --+                
                                                                |                
                                                Lockable.Lockable --+            
                                                                    |            
                                      DeviceComponent.DeviceComponent --+        
                                                                        |        
                                                   object --+           |        
                                                            |           |        
                                    ZenModelBase.ZenModelBase --+       |        
                                                                |       |        
Products.ZenRelations.RelationshipManager.RelationshipManager --+       |        
                                                                |       |        
                                      ExtensionClass.Base --+   |       |        
                                                            |   |       |        
                                       OFS.History.Historical --+       |        
                                                                |       |        
                                                   object --+   |       |        
                                                            |   |       |        
                                          ZenPacker.ZenPacker --+       |        
                                                                |       |        
                                            ZenModelRM.ZenModelRM --+   |        
                                                                    |   |        
                                  DeviceResultInt.DeviceResultInt --+   |        
                                                                    |   |        
                                                       object --+   |   |        
                                                                |   |   |        
                                              EventView.EventView --+   |        
                                                                    |   |        
                                                       object --+   |   |        
                                                                |   |   |        
                                                  RRDView.RRDView --+   |        
                                                                    |   |        
                                          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
 
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
 
caption(self)
Return the windows caption for this service.
source code
 
primarySortKey(self)
Return the windows caption for this service.
source code
 
manage_editService(self, id=None, description=None, acceptPause=None, acceptStop=None, pathName=None, serviceType=None, startMode=None, startName=None, 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, key, monitored, name

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

Inherited from DeviceComponent.DeviceComponent: filterAutomaticCreation, getAqProperty, getCollectors, getManageIp, getNagiosTemplate, getParentDeviceName, getParentDeviceUrl, getRRDContextData, getStatus, getStatusString, hostname, manage_afterAdd, manage_afterClone, manage_beforeDelete, setAqProperty

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

Inherited from ZenModelRM.ZenModelRM: __init__, changePythonClass, creator, editableDeviceList, findChild, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, index_object, reindex_all, rename, unindex_object, viewName, zmanage_addProperty, zmanage_delObjects, zmanage_delProperties, zmanage_editProperties, zmanage_exportObject, zmanage_importObject, zmanage_importObjects

Inherited from ZenModelBase.ZenModelBase: __call__, __hash__, all_meta_types, aqBaseHasAttr, breadCrumbs, callZenScreen, checkRemotePerm, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getBreadCrumbUrlPath, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getUnusedId, getZ, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, urlLink, view, visibleCustPropertyMap, yesterdayDate, zenScreenUrl, zenpathjoin, zenpathsplit, zentinelTabs

Inherited from OFS.History.Historical: manage_afterHistoryCopy, manage_beforeHistoryCopy, manage_change_history, manage_historicalComparison, manage_historyCompare, manage_historyCopy

Inherited from ZenPacker.ZenPacker: addToZenPack, eligiblePacks, findObject

Inherited from DeviceResultInt.DeviceResultInt: getDeviceClassName, getDeviceClassPath, getDeviceIp, getDeviceIpAddress, getDeviceLink, getDeviceMacaddress, getDeviceName, getDeviceUrl, getPingStatus, getPingStatusNumber, getProdState, getSnmpStatus, getSnmpStatusNumber, isResultLockedFromDeletion, isResultLockedFromUpdates, sendEventWhenResultBlocked

Inherited from EventView.EventView: convertEventField, getEventDetail, getEventDetailFromStatusOrHistory, getEventHistory, getEventManager, getEventOwnerList, getEventSummary, getStatusCssClass, getStatusImgSrc, manage_ackBatchEvents, manage_ackEvents, manage_addLogMessage, manage_createEventMap, manage_deleteBatchEvents, manage_deleteEvents, manage_deleteHeartbeat, manage_setEventStates, manage_undeleteBatchEvents, manage_undeleteEvents

Inherited from RRDView.RRDView: cacheRRDValue, fetchRRDValue, fetchRRDValues, fullRRDPath, getDefaultGraphDefs, getGraphDef, getGraphDefUrl, getRRDDataPoint, getRRDDataPoints, getRRDFileName, getRRDNames, getRRDPaths, getRRDSum, getRRDTemplate, getRRDTemplateByName, getRRDTemplateName, getRRDTemplates, getRRDValue, getRRDValues, getThresholdInstances, getThresholds, makeLocalRRDTemplate, removeLocalRRDTemplate, rrdPath, snmpIgnore

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

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  meta_type = 'WinService'
  portal_type = 'WinService'
  acceptPause = False
  acceptStop = False
  pathName = ""
  serviceType = ""
  startMode = ""
  startName = ""
  collectors = 'zenwin',
  _properties = Service._properties+({'id': 'acceptPause', '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 ManagedEntity.ManagedEntity: monitor, snmpindex

Inherited from ZenModelRM.ZenModelRM: isInTree

Inherited from ZenModelBase.ZenModelBase: index_html, sub_meta_types

Inherited from OFS.History.Historical: HistoricalRevisions, __ac_permissions__, manage_change_history_page, manage_options

Inherited from OFS.History.Historical (private): _manage_historyComparePage

Inherited from Commandable.Commandable: defaultTimeout

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getInstDescription(self)

source code 
Return some text that describes this component. Default is name.
Overrides: DeviceComponent.DeviceComponent.getInstDescription

setServiceClass(self, kwargs)

source code 
Set the service class where name=ServiceName and description=Caption.
Overrides: Service.Service.setServiceClass

primarySortKey(self)

source code 
Return the windows caption for this service.
Overrides: ZenModelRM.ZenModelRM.primarySortKey

manage_editService(self, id=None, description=None, acceptPause=None, acceptStop=None, pathName=None, serviceType=None, startMode=None, startName=None, 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': 'acceptPause', 'type': 'boolean', 'mode': \
'w'}, {'id': 'acceptStop', 'type': 'boolean', 'mode': 'w'}, {'id': 'pa\
thName', 'type': 'string', 'mode': 'w'}, {'id': 'serviceType', 'type':\
 'string', 'mode': 'w'}, {'id': 'startMode', 'type': 'string', 'mode':\
 'w'}, {'id': 'startName', 'type': 'string', '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",)}, {'id': \
'viewHistory', 'name': 'Modifications', 'action': 'viewHistory', 'perm\
issions':(ZEN_VIEW_MODIFICATIONS,)},)},