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_Types.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 service pool size
53 
54  /// The listen port
55  int myPort;
56 
57  /// The service MQ log level
59 
60  /// The connection timeout, in milliseconds
62 
63  /// The memory limit before a client is reset
65 
66  /// The type of logging for clients
68 
69  /// The memory reset type
71 
72  /// whether or not the service should start automatically
74 
75  /// Whether or not the service should persist to the pdgservices
76  /// JSON file on disk
78 };
79 
80 #endif
The service logs to a file on disk.
UT_StringHolder myMQLogDir
The directory to write MQ logs.
int myMQLogLevel
The service MQ log level.
bool myAutoStart
whether or not the service should start automatically
int myPort
The listen port.
#define PDG_API
Definition: PDG_API.h:23
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.
PDG_ServiceResetType
Definition: PDG_Types.h:175
PDG_ServiceLogType myClientLogType
The type of logging for clients.
int myPoolSize
The service pool size.
PDG_ServiceLogType
Enumeration of service log types.
Definition: PDG_Types.h:222
int myConnectionTimeout
The connection timeout, in milliseconds.
UT_StringHolder myClientLogDir
The directory to write client logs.