HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDG_ServiceOptions.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef PDG_SERVICE_OPTIONS_H
10 #define PDG_SERVICE_OPTIONS_H
11 
12 #include "PDG_API.h"
13 #include "PDG_ServiceTypes.h"
14 
15 /**
16  * Configuration options for a service instance, passed to PDG_ServiceManager
17  * when registering a new service
18  */
20 {
21  /// Default initialization
23  : myClientLogDir("$HOUDINI_TEMP_DIR")
24  , myMQLogDir("$HOUDINI_TEMP_DIR")
25  , myEnvVarNames()
26  , myEnvVarValues()
27  , myPoolSize(5)
28  , myPort(0)
29  , myMQLogLevel(1)
30  , myConnectionTimeout(5000)
31  , myMemoryLimit(0)
32  , myClientLogType(PDG_ServiceLogType::eFile)
33  , myMemoryResetType(PDG_ServiceResetType::eNone)
34  , myAutoStart(true)
35  , myIsPersistent(true)
36  {
37  }
38 
39  /// The directory to write client logs
41 
42  /// The directory to write MQ logs
44 
45  /// The names of the environment variables to be set
47 
48  /// The values of the environment variables to be set
50 
51  /// The extra arg values appended to the end of the services command line
53 
54  /// The service pool size
56 
57  /// The listen port
58  int myPort;
59 
60  /// The service MQ log level
62 
63  /// The connection timeout, in milliseconds
65 
66  /// The memory limit before a client is reset
68 
69  /// The type of logging for clients
71 
72  /// The memory reset type
74 
75  /// whether or not the service should start automatically
77 
78  /// Whether or not the service should persist to the pdgservices
79  /// JSON file on disk
81 };
82 
83 #endif
UT_StringHolder myMQLogDir
The directory to write MQ logs.
int myMQLogLevel
The service MQ log level.
PDG_ServiceResetType
bool myAutoStart
whether or not the service should start automatically
int myPort
The listen port.
#define PDG_API
Definition: PDG_API.h:23
UT_StringArray myExtraArguments
The extra arg values appended to the end of the services command line.
int myMemoryLimit
The memory limit before a client is reset.
UT_StringArray myEnvVarValues
The values of the environment variables to be set.
UT_StringArray myEnvVarNames
The names of the environment variables to be set.
PDG_ServiceResetType myMemoryResetType
The memory reset type.
PDG_ServiceOptions()
Default initialization.
No error was specified, i.e. the ref is valid.
PDG_ServiceLogType
Enumeration of service log types.
PDG_ServiceLogType myClientLogType
The type of logging for clients.
int myPoolSize
The service pool size.
The service logs to a file on disk.
int myConnectionTimeout
The connection timeout, in milliseconds.
UT_StringHolder myClientLogDir
The directory to write client logs.