http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/StatisticDescriptor.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/StatisticDescriptor.hpp b/src/clicache/src/StatisticDescriptor.hpp index 0949f76..fc4b6cb 100644 --- a/src/clicache/src/StatisticDescriptor.hpp +++ b/src/clicache/src/StatisticDescriptor.hpp @@ -32,7 +32,7 @@ namespace Apache /// <summary> /// A class that describes an individual statistic whose value is updated by an - /// application and may be archived by GemFire. These descriptions are gathered + /// application and may be archived by Geode. These descriptions are gathered /// together in a <see cref="StatisticsType" /> class. /// </summary> /// <para> @@ -44,84 +44,84 @@ namespace Apache /// </para> public ref class StatisticDescriptor sealed : public Internal::UMWrap<apache::geode::statistics::StatisticDescriptor> - { - public: - /// <summary> - /// Returns the id of this statistic in a <see cref="StatisticsType" /> class. - /// The id is initialized when its statistics - /// type is created. - /// </summary> - virtual property int32_t ID - { - virtual int32_t get( ); - } + { + public: + /// <summary> + /// Returns the id of this statistic in a <see cref="StatisticsType" /> class. + /// The id is initialized when its statistics + /// type is created. + /// </summary> + virtual property int32_t ID + { + virtual int32_t get(); + } - /// <summary> - /// Returns the name of this statistic - /// </summary> - virtual property String^ Name - { - virtual String^ get( ); - } + /// <summary> + /// Returns the name of this statistic + /// </summary> + virtual property String^ Name + { + virtual String^ get(); + } - /// <summary> - /// Returns the description of this statistic - /// </summary> - virtual property String^ Description - { - virtual String^ get( ); - } + /// <summary> + /// Returns the description of this statistic + /// </summary> + virtual property String^ Description + { + virtual String^ get(); + } - /// <summary> - /// Returns true if this statistic is a counter; false if its a gauge. - /// Counter statistics have values that always increase. - /// Gauge statistics have unconstrained values. - /// </summary> - virtual property int8_t IsCounter - { - virtual int8_t get( ); - } + /// <summary> + /// Returns true if this statistic is a counter; false if its a gauge. + /// Counter statistics have values that always increase. + /// Gauge statistics have unconstrained values. + /// </summary> + virtual property int8_t IsCounter + { + virtual int8_t get(); + } - /// <summary> - /// Returns true if a larger statistic value indicates better performance. - /// </summary> - virtual property int8_t IsLargerBetter - { - virtual int8_t get( ); - } + /// <summary> + /// Returns true if a larger statistic value indicates better performance. + /// </summary> + virtual property int8_t IsLargerBetter + { + virtual int8_t get(); + } - /// <summary> - /// Returns the unit in which this statistic is measured. - /// </summary> - virtual property String^ Unit - { - virtual String^ get( ); - } + /// <summary> + /// Returns the unit in which this statistic is measured. + /// </summary> + virtual property String^ Unit + { + virtual String^ get(); + } - internal: - /// <summary> - /// Internal factory function to wrap a native object pointer inside - /// this managed class, with null pointer check. - /// </summary> - /// <param name="nativeptr">native object pointer</param> - /// <returns> - /// the managed wrapper object, or null if the native pointer is null. - /// </returns> - inline static StatisticDescriptor^ Create( - apache::geode::statistics::StatisticDescriptor* nativeptr ) - { - return ( nativeptr != nullptr ? - gcnew StatisticDescriptor( nativeptr ) : nullptr ); - } - - private: - /// <summary> - /// Private constructor to wrap a native object pointer - /// </summary> - /// <param name="nativeptr">The native object pointer</param> - inline StatisticDescriptor( apache::geode::statistics::StatisticDescriptor* nativeptr ) - : UMWrap( nativeptr, false ) { } - }; + internal: + /// <summary> + /// Internal factory function to wrap a native object pointer inside + /// this managed class, with null pointer check. + /// </summary> + /// <param name="nativeptr">native object pointer</param> + /// <returns> + /// the managed wrapper object, or null if the native pointer is null. + /// </returns> + inline static StatisticDescriptor^ Create( + apache::geode::statistics::StatisticDescriptor* nativeptr) + { + return (nativeptr != nullptr ? + gcnew StatisticDescriptor(nativeptr) : nullptr); + } + + private: + /// <summary> + /// Private constructor to wrap a native object pointer + /// </summary> + /// <param name="nativeptr">The native object pointer</param> + inline StatisticDescriptor(apache::geode::statistics::StatisticDescriptor* nativeptr) + : UMWrap(nativeptr, false) { } + }; } // namespace Client } // namespace Geode } // namespace Apache
http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/StatisticsFactory.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/StatisticsFactory.hpp b/src/clicache/src/StatisticsFactory.hpp index e2a01dd..3bdb63c 100644 --- a/src/clicache/src/StatisticsFactory.hpp +++ b/src/clicache/src/StatisticsFactory.hpp @@ -35,7 +35,7 @@ namespace Apache ref class StatisticDescriptor; ref class StatisticsType; - ref class Statistics; + ref class Statistics; /// <summary> /// Instances of this interface provide methods that create instances @@ -49,216 +49,216 @@ namespace Apache /// statistic (<c>StatisticDescriptor</c>) can either be a /// <I>gauge</I> meaning that its value can increase and decrease or a /// <I>counter</I> meaning that its value is strictly increasing. - /// Marking a statistic as a counter allows the GemFire Manager Console + /// Marking a statistic as a counter allows the Geode Manager Console /// to properly display a statistics whose value "wraps around" (that /// is, exceeds its maximum value). /// </para> public ref class StatisticsFactory sealed : public Internal::UMWrap<apache::geode::statistics::StatisticsFactory> { - protected: - StatisticsFactory(){} - StatisticsFactory(StatisticsFactory^){} + protected: + StatisticsFactory(){} + StatisticsFactory(StatisticsFactory^){} public: - /// <summary> - /// Return a pre-existing statistics factory. Typically configured through - /// creation of a distributed system. - /// </summary> - static StatisticsFactory^ GetExistingInstance(); - - /// <summary> - /// Creates and returns an int counter <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>, and with larger values indicating better performance. - /// </summary> - virtual StatisticDescriptor^ CreateIntCounter( String^ name, String^ description, String^ units, int8_t largerBetter ); - - /// <summary> - /// Creates and returns an int counter <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>. - /// </summary> - virtual StatisticDescriptor^ CreateIntCounter( String^ name, String^ description, String^ units ); - - /// <summary> - /// Creates and returns an long counter <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>, and with larger values indicating better performance. - /// </summary> - virtual StatisticDescriptor^ CreateLongCounter( String^ name, String^ description, String^ units, int8_t largerBetter ); - - /// <summary> - /// Creates and returns an long counter <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>. - /// </summary> - virtual StatisticDescriptor^ CreateLongCounter( String^ name, String^ description, String^ units ); - - /// <summary> - /// Creates and returns an double counter <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>, and with larger values indicating better performance. - /// </summary> - - virtual StatisticDescriptor^ CreateDoubleCounter( String^ name, String^ description, String^ units, int8_t largerBetter ); - - /// <summary> - /// Creates and returns an double counter <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>. - /// </summary> - virtual StatisticDescriptor^ CreateDoubleCounter( String^ name, String^ description, String^ units ); - - /// <summary> - /// Creates and returns an int gauge <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>, and with smaller values indicating better performance. - /// </summary> - virtual StatisticDescriptor^ CreateIntGauge( String^ name, String^ description, String^ units, int8_t largerBetter ); - - /// <summary> - /// Creates and returns an int gauge <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>. - /// </summary> - virtual StatisticDescriptor^ CreateIntGauge( String^ name, String^ description, String^ units ); - - /// <summary> - /// Creates and returns an long gauge <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>, and with smaller values indicating better performance. - /// </summary> - virtual StatisticDescriptor^ CreateLongGauge( String^ name, String^ description, String^ units, int8_t largerBetter ); - - /// <summary> - /// Creates and returns an long gauge <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>. - /// </summary> - virtual StatisticDescriptor^ CreateLongGauge( String^ name, String^ description, String^ units ); - - /// <summary> - /// Creates and returns an double gauge <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>, and with smaller values indicating better performance. - /// </summary> - virtual StatisticDescriptor^ CreateDoubleGauge( String^ name, String^ description, String^ units, int8_t largerBetter ); - - /// <summary> - /// Creates and returns an double gauge <see cref="StatisticDescriptor" /> - /// with the given <c>name</c>, <c>description</c>, - /// <c>units</c>. - /// </summary> - virtual StatisticDescriptor^ CreateDoubleGauge( String^ name, String^ description, String^ units ); - - /// <summary> - /// Creates and returns a <see cref="StatisticsType" /> - /// with the given <c>name</c>, <c>description</c>,and <see cref="StatisticDescriptor" /> - /// </summary> - /// <exception cref="IllegalArgumentException"> - /// if a type with the given <c>name</c> already exists. - /// </exception> - virtual StatisticsType^ CreateType( String^ name, String^ description, - array<StatisticDescriptor^>^ stats, int32 statsLength); - - /// <summary> - /// Finds and returns an already created <see cref="StatisticsType" /> - /// with the given <c>name</c>. Returns <c>null</c> if the type does not exist. - /// </summary> - virtual StatisticsType^ FindType( String^ name ); - - /// <summary> - /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with default ids. - /// </summary> - /// <para> - /// The created instance may not be <see cref="Statistics#isAtomic" /> atomic. - /// </para> - virtual Statistics^ CreateStatistics(StatisticsType^ type); - - /// <summary> - /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with a default numeric id. - /// </summary> - /// <para> - /// The created instance may not be <see cref="Statistics#isAtomic" /> atomic. - /// </para> - virtual Statistics^ CreateStatistics(StatisticsType^ type, String^ textId); - - /// <summary> - /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and <c>numericId</c>. - /// </summary> - /// <para> - /// The created instance may not be <see cref="Statistics#isAtomic" /> atomic. - /// </para> - virtual Statistics^ CreateStatistics(StatisticsType^ type, String^ textId, int64_t numericId); - - /// <summary> - /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with default ids. - /// </summary> - /// <para> - /// The created instance will be <see cref="Statistics#isAtomic" /> atomic. - /// </para> - virtual Statistics^ CreateAtomicStatistics(StatisticsType^ type); - - /// <summary> - /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with a default numeric id. - /// </summary> - /// <para> - /// The created instance will be <see cref="Statistics#isAtomic" /> atomic. - /// </para> - virtual Statistics^ CreateAtomicStatistics(StatisticsType^ type, String^ textId); - - /// <summary> - /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and <c>numericId</c>. - /// </summary> - /// <para> - /// The created instance will be <see cref="Statistics#isAtomic" /> atomic. - /// </para> - virtual Statistics^ CreateAtomicStatistics(StatisticsType^ type, String^ textId, int64 numericId); - - /// <summary> - /// Return the first instance that matches the type, or NULL - /// </summary> - virtual Statistics^ FindFirstStatisticsByType( StatisticsType^ type ); - - /// <summary> - /// Returns a name that can be used to identify the manager - /// </summary> - virtual property String^ Name - { - virtual String^ get( ); - } - - /// <summary> - /// Returns a numeric id that can be used to identify the manager - /// </summary> - virtual property int64_t ID - { - virtual int64_t get( ); - } - - internal: - /// <summary> - /// Internal factory function to wrap a native object pointer inside - /// this managed class, with null pointer check. - /// </summary> - /// <param name="nativeptr">native object pointer</param> - /// <returns> - /// the managed wrapper object, or null if the native pointer is null. - /// </returns> - inline static StatisticsFactory^ Create( - apache::geode::statistics::StatisticsFactory* nativeptr ) - { - return ( nativeptr != nullptr ? - gcnew StatisticsFactory( nativeptr ) : nullptr ); - } - - private: - /// <summary> - /// Private constructor to wrap a native object pointer - /// </summary> - /// <param name="nativeptr">The native object pointer</param> - inline StatisticsFactory( apache::geode::statistics::StatisticsFactory* nativeptr ) - : UMWrap( nativeptr, false ) { } + /// <summary> + /// Return a pre-existing statistics factory. Typically configured through + /// creation of a distributed system. + /// </summary> + static StatisticsFactory^ GetExistingInstance(); + + /// <summary> + /// Creates and returns an int counter <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>, and with larger values indicating better performance. + /// </summary> + virtual StatisticDescriptor^ CreateIntCounter(String^ name, String^ description, String^ units, int8_t largerBetter); + + /// <summary> + /// Creates and returns an int counter <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>. + /// </summary> + virtual StatisticDescriptor^ CreateIntCounter(String^ name, String^ description, String^ units); + + /// <summary> + /// Creates and returns an long counter <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>, and with larger values indicating better performance. + /// </summary> + virtual StatisticDescriptor^ CreateLongCounter(String^ name, String^ description, String^ units, int8_t largerBetter); + + /// <summary> + /// Creates and returns an long counter <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>. + /// </summary> + virtual StatisticDescriptor^ CreateLongCounter(String^ name, String^ description, String^ units); + + /// <summary> + /// Creates and returns an double counter <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>, and with larger values indicating better performance. + /// </summary> + + virtual StatisticDescriptor^ CreateDoubleCounter(String^ name, String^ description, String^ units, int8_t largerBetter); + + /// <summary> + /// Creates and returns an double counter <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>. + /// </summary> + virtual StatisticDescriptor^ CreateDoubleCounter(String^ name, String^ description, String^ units); + + /// <summary> + /// Creates and returns an int gauge <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>, and with smaller values indicating better performance. + /// </summary> + virtual StatisticDescriptor^ CreateIntGauge(String^ name, String^ description, String^ units, int8_t largerBetter); + + /// <summary> + /// Creates and returns an int gauge <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>. + /// </summary> + virtual StatisticDescriptor^ CreateIntGauge(String^ name, String^ description, String^ units); + + /// <summary> + /// Creates and returns an long gauge <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>, and with smaller values indicating better performance. + /// </summary> + virtual StatisticDescriptor^ CreateLongGauge(String^ name, String^ description, String^ units, int8_t largerBetter); + + /// <summary> + /// Creates and returns an long gauge <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>. + /// </summary> + virtual StatisticDescriptor^ CreateLongGauge(String^ name, String^ description, String^ units); + + /// <summary> + /// Creates and returns an double gauge <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>, and with smaller values indicating better performance. + /// </summary> + virtual StatisticDescriptor^ CreateDoubleGauge(String^ name, String^ description, String^ units, int8_t largerBetter); + + /// <summary> + /// Creates and returns an double gauge <see cref="StatisticDescriptor" /> + /// with the given <c>name</c>, <c>description</c>, + /// <c>units</c>. + /// </summary> + virtual StatisticDescriptor^ CreateDoubleGauge(String^ name, String^ description, String^ units); + + /// <summary> + /// Creates and returns a <see cref="StatisticsType" /> + /// with the given <c>name</c>, <c>description</c>,and <see cref="StatisticDescriptor" /> + /// </summary> + /// <exception cref="IllegalArgumentException"> + /// if a type with the given <c>name</c> already exists. + /// </exception> + virtual StatisticsType^ CreateType(String^ name, String^ description, + array<StatisticDescriptor^>^ stats, int32 statsLength); + + /// <summary> + /// Finds and returns an already created <see cref="StatisticsType" /> + /// with the given <c>name</c>. Returns <c>null</c> if the type does not exist. + /// </summary> + virtual StatisticsType^ FindType(String^ name); + + /// <summary> + /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with default ids. + /// </summary> + /// <para> + /// The created instance may not be <see cref="Statistics#isAtomic" /> atomic. + /// </para> + virtual Statistics^ CreateStatistics(StatisticsType^ type); + + /// <summary> + /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with a default numeric id. + /// </summary> + /// <para> + /// The created instance may not be <see cref="Statistics#isAtomic" /> atomic. + /// </para> + virtual Statistics^ CreateStatistics(StatisticsType^ type, String^ textId); + + /// <summary> + /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and <c>numericId</c>. + /// </summary> + /// <para> + /// The created instance may not be <see cref="Statistics#isAtomic" /> atomic. + /// </para> + virtual Statistics^ CreateStatistics(StatisticsType^ type, String^ textId, int64_t numericId); + + /// <summary> + /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with default ids. + /// </summary> + /// <para> + /// The created instance will be <see cref="Statistics#isAtomic" /> atomic. + /// </para> + virtual Statistics^ CreateAtomicStatistics(StatisticsType^ type); + + /// <summary> + /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with a default numeric id. + /// </summary> + /// <para> + /// The created instance will be <see cref="Statistics#isAtomic" /> atomic. + /// </para> + virtual Statistics^ CreateAtomicStatistics(StatisticsType^ type, String^ textId); + + /// <summary> + /// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and <c>numericId</c>. + /// </summary> + /// <para> + /// The created instance will be <see cref="Statistics#isAtomic" /> atomic. + /// </para> + virtual Statistics^ CreateAtomicStatistics(StatisticsType^ type, String^ textId, int64 numericId); + + /// <summary> + /// Return the first instance that matches the type, or NULL + /// </summary> + virtual Statistics^ FindFirstStatisticsByType(StatisticsType^ type); + + /// <summary> + /// Returns a name that can be used to identify the manager + /// </summary> + virtual property String^ Name + { + virtual String^ get(); + } + + /// <summary> + /// Returns a numeric id that can be used to identify the manager + /// </summary> + virtual property int64_t ID + { + virtual int64_t get(); + } + + internal: + /// <summary> + /// Internal factory function to wrap a native object pointer inside + /// this managed class, with null pointer check. + /// </summary> + /// <param name="nativeptr">native object pointer</param> + /// <returns> + /// the managed wrapper object, or null if the native pointer is null. + /// </returns> + inline static StatisticsFactory^ Create( + apache::geode::statistics::StatisticsFactory* nativeptr) + { + return (nativeptr != nullptr ? + gcnew StatisticsFactory(nativeptr) : nullptr); + } + + private: + /// <summary> + /// Private constructor to wrap a native object pointer + /// </summary> + /// <param name="nativeptr">The native object pointer</param> + inline StatisticsFactory(apache::geode::statistics::StatisticsFactory* nativeptr) + : UMWrap(nativeptr, false) { } }; } // namespace Client } // namespace Geode http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/SystemProperties.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/SystemProperties.hpp b/src/clicache/src/SystemProperties.hpp index 6273a42..08541c8 100644 --- a/src/clicache/src/SystemProperties.hpp +++ b/src/clicache/src/SystemProperties.hpp @@ -48,7 +48,7 @@ namespace Apache /// </summary> /// <param name="properties">initialize with the given properties</param> //generic <class TPropKey, class TPropValue> - SystemProperties( Properties<String^, String^>^ properties ); + SystemProperties(Properties<String^, String^>^ properties); /// <summary> /// Constructor. @@ -63,12 +63,12 @@ namespace Apache /// <param name="properties">these overwrite any other values already set</param> /// <param name="configFile">see summary</param> //generic <class TPropKey, class TPropValue> - SystemProperties( Properties<String^, String^>^ properties, String^ configFile ); + SystemProperties(Properties<String^, String^>^ properties, String^ configFile); /// <summary> /// Prints all settings to the process log. /// </summary> - void LogSettings( ); + void LogSettings(); /// <summary> /// Returns the sampling interval, that is, @@ -77,7 +77,7 @@ namespace Apache /// <returns>the statistics sampling interval</returns> property int32_t StatisticsSampleInterval { - int32_t get( ); + int32_t get(); } /// <summary> @@ -86,7 +86,7 @@ namespace Apache /// <returns>true if enabled</returns> property bool StatisticsEnabled { - bool get( ); + bool get(); } /// <summary> @@ -95,7 +95,7 @@ namespace Apache /// <returns>the filename</returns> property String^ StatisticsArchiveFile { - String^ get( ); + String^ get(); } /// <summary> @@ -104,7 +104,7 @@ namespace Apache /// <returns>the filename</returns> property String^ LogFileName { - String^ get( ); + String^ get(); } /// <summary> @@ -113,7 +113,7 @@ namespace Apache /// <returns>the log level</returns> property LogLevel GFLogLevel { - LogLevel get( ); + LogLevel get(); } /// <summary> @@ -126,7 +126,7 @@ namespace Apache /// <returns>true if enabled</returns> property bool HeapLRULimitEnabled { - bool get( ); + bool get(); } /// <summary> @@ -138,7 +138,7 @@ namespace Apache /// <returns>the HeapLRULimit value</returns> property size_t HeapLRULimit { - size_t get( ); + size_t get(); } /// <summary> @@ -149,7 +149,7 @@ namespace Apache /// <returns>the HeapLRUDelta value</returns> property int32_t HeapLRUDelta { - int32_t get( ); + int32_t get(); } /// <summary> @@ -158,7 +158,7 @@ namespace Apache /// <returns>the MaxSocketBufferSize value</returns> property int32_t MaxSocketBufferSize { - int32_t get( ); + int32_t get(); } /// <summary> @@ -167,7 +167,7 @@ namespace Apache /// <returns>the PingInterval value</returns> property int32_t PingInterval { - int32_t get( ); + int32_t get(); } /// <summary> @@ -176,7 +176,7 @@ namespace Apache /// <returns>the RedundancyMonitorInterval value</returns> property int32_t RedundancyMonitorInterval { - int32_t get( ); + int32_t get(); } /// <summary> @@ -185,7 +185,7 @@ namespace Apache /// <returns>the NotifyAckInterval value</returns> property int32_t NotifyAckInterval { - int32_t get( ); + int32_t get(); } /// <summary> @@ -194,7 +194,7 @@ namespace Apache /// <returns>the NotifyDupCheckLife value</returns> property int32_t NotifyDupCheckLife { - int32_t get( ); + int32_t get(); } /// <summary> @@ -203,7 +203,7 @@ namespace Apache /// <returns>true if enabled</returns> property bool DebugStackTraceEnabled { - bool get( ); + bool get(); } /// <summary> @@ -211,7 +211,7 @@ namespace Apache /// is enabled. If "log-file" property has been specified then they are /// created in the same directory as the log file, and having the same /// prefix as log file. By default crash dumps are created in the - /// current working directory and have the "gemfire_cpp" prefix. + /// current working directory and have the "geode_cpp" prefix. /// /// The actual dump file will have timestamp and process ID /// in the full name. @@ -238,7 +238,7 @@ namespace Apache /// <returns>the name</returns> property String^ Name { - String^ get( ); + String^ get(); } /// <summary> @@ -247,7 +247,7 @@ namespace Apache /// <returns>the filename</returns> property String^ CacheXmlFile { - String^ get( ); + String^ get(); } /// <summary> @@ -256,7 +256,7 @@ namespace Apache /// <returns>the maximum limit</returns> property int32_t LogFileSizeLimit { - int32_t get( ); + int32_t get(); } /// <summary> @@ -265,16 +265,16 @@ namespace Apache /// <returns>the maximum limit</returns> property int32_t LogDiskSpaceLimit { - int32_t get( ); + int32_t get(); } - /// <summary> + /// <summary> /// Returns the maximum statistics file size, in bytes, or 0 if unlimited. /// </summary> /// <returns>the maximum limit</returns> property int32_t StatsFileSizeLimit { - int32_t get( ); + int32_t get(); } /// <summary> @@ -283,16 +283,16 @@ namespace Apache /// <returns>the maximum limit</returns> property int32_t StatsDiskSpaceLimit { - int32_t get( ); + int32_t get(); } - /// <summary> + /// <summary> /// Returns the max queue size for notification messages /// </summary> /// <returns>the max queue size</returns> property uint32_t MaxQueueSize { - uint32_t get( ); + uint32_t get(); } /// <summary> @@ -301,7 +301,7 @@ namespace Apache /// <returns>true if enabled</returns> property bool SSLEnabled { - bool get( ); + bool get(); } /// <summary> @@ -310,7 +310,7 @@ namespace Apache /// <returns>the SSL private keystore file path</returns> property String^ SSLKeyStore { - String^ get( ); + String^ get(); } /// <summary> @@ -319,7 +319,7 @@ namespace Apache /// <returns>the SSL public certificate trust store file path</returns> property String^ SSLTrustStore { - String^ get( ); + String^ get(); } // adongre @@ -329,7 +329,7 @@ namespace Apache /// <returns>Returns the client keystore password.</returns> property String^ SSLKeystorePassword { - String^ get( ); + String^ get(); } /// <summary> @@ -338,7 +338,7 @@ namespace Apache /// <returns>true if enabled</returns> property bool IsSecurityOn { - bool get( ); + bool get(); } /// <summary> @@ -347,7 +347,7 @@ namespace Apache /// <returns>the security properties</returns> //generic <class TPropKey, class TPropValue> property Properties<String^, String^>^ GetSecurityProperties { - Properties<String^, String^>^ get( ); + Properties<String^, String^>^ get(); } /// <summary> @@ -356,7 +356,7 @@ namespace Apache /// <returns>the durable client ID</returns> property String^ DurableClientId { - String^ get( ); + String^ get(); } /// <summary> @@ -365,7 +365,7 @@ namespace Apache /// <returns>the durable client timeout</returns> property uint32_t DurableTimeout { - uint32_t get( ); + uint32_t get(); } /// <summary> @@ -374,7 +374,7 @@ namespace Apache /// <returns>the connect timeout used for server and locator handshakes</returns> property uint32_t ConnectTimeout { - uint32_t get( ); + uint32_t get(); } /// <summary> @@ -383,7 +383,7 @@ namespace Apache /// <returns>the conflate event option</returns> property String^ ConflateEvents { - String^ get( ); + String^ get(); } /// <summary> @@ -392,7 +392,7 @@ namespace Apache /// <returns>the timeout for suspended transactions</returns> property uint32_t SuspendedTxTimeout { - uint32_t get( ); + uint32_t get(); } /// <summary> @@ -401,7 +401,7 @@ namespace Apache /// <returns>true if enabled or false by default.</returns> property bool ReadTimeoutUnitInMillis { - bool get( ); + bool get(); } /// <summary> /// True if app want to clear pdx types ids on client disconnect @@ -409,7 +409,7 @@ namespace Apache /// <returns>true if enabled</returns> property bool OnClientDisconnectClearPdxTypeIds { - bool get( ); + bool get(); } internal: @@ -423,10 +423,10 @@ namespace Apache /// the managed wrapper object, or null if the native pointer is null. /// </returns> inline static SystemProperties^ Create( - apache::geode::client::SystemProperties* nativeptr ) + apache::geode::client::SystemProperties* nativeptr) { - return ( nativeptr != nullptr ? - gcnew SystemProperties( nativeptr ) : nullptr ); + return (nativeptr != nullptr ? + gcnew SystemProperties(nativeptr) : nullptr); } @@ -436,8 +436,8 @@ namespace Apache /// Private constructor to wrap a native object pointer /// </summary> /// <param name="nativeptr">The native object pointer</param> - inline SystemProperties( apache::geode::client::SystemProperties* nativeptr ) - : UMWrap( nativeptr, false ) { } + inline SystemProperties(apache::geode::client::SystemProperties* nativeptr) + : UMWrap(nativeptr, false) { } }; } // namespace Client } // namespace Geode http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/TransactionEvent.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/TransactionEvent.hpp b/src/clicache/src/TransactionEvent.hpp index 68630b9..38b7595 100644 --- a/src/clicache/src/TransactionEvent.hpp +++ b/src/clicache/src/TransactionEvent.hpp @@ -43,44 +43,44 @@ namespace Apache /// This class encapsulates events that occur for an transaction in a cache. /// </summary> generic<class TKey, class TValue> - public ref class TransactionEvent sealed - : public Internal::UMWrap<apache::geode::client::TransactionEvent> + public ref class TransactionEvent sealed + : public Internal::UMWrap<apache::geode::client::TransactionEvent> + { + public: + /// <summary> + /// Gets the transaction id for this transaction. + /// </summary> + property Apache::Geode::Client::TransactionId^ TransactionId { - public: - /// <summary> - /// Gets the transaction id for this transaction. - /// </summary> - property Apache::Geode::Client::TransactionId^ TransactionId - { - Apache::Geode::Client::TransactionId^ get( ); - } + Apache::Geode::Client::TransactionId^ get( ); + } - /// <summary> - /// Returns an ordered list of every event for this transaction. - /// The event order is consistent with the order in which the operations were - /// performed during the transaction. - /// </summary> - property array<EntryEvent<TKey, TValue>^>^ Events - { - array<EntryEvent<TKey, TValue>^>^ get( ); - } - - /// <summary> - /// Gets the Cache for this transaction event - /// </summary> - property Apache::Geode::Client::Cache^ Cache - { - Apache::Geode::Client::Cache^ get( ); - } + /// <summary> + /// Returns an ordered list of every event for this transaction. + /// The event order is consistent with the order in which the operations were + /// performed during the transaction. + /// </summary> + property array<EntryEvent<TKey, TValue>^>^ Events + { + array<EntryEvent<TKey, TValue>^>^ get( ); + } + + /// <summary> + /// Gets the Cache for this transaction event + /// </summary> + property Apache::Geode::Client::Cache^ Cache + { + Apache::Geode::Client::Cache^ get( ); + } - internal: - /// <summary> - /// Internal constructor to wrap a native object pointer - /// </summary> - /// <param name="nativeptr">The native object pointer</param> - inline TransactionEvent( apache::geode::client::TransactionEvent* nativeptr ) - : UMWrap( nativeptr, false ) { } - }; + internal: + /// <summary> + /// Internal constructor to wrap a native object pointer + /// </summary> + /// <param name="nativeptr">The native object pointer</param> + inline TransactionEvent( apache::geode::client::TransactionEvent* nativeptr ) + : UMWrap( nativeptr, false ) { } + }; } // namespace Client } // namespace Geode } // namespace Apache http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/UserFunctionExecutionException.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/UserFunctionExecutionException.hpp b/src/clicache/src/UserFunctionExecutionException.hpp index 938675b..2764804 100644 --- a/src/clicache/src/UserFunctionExecutionException.hpp +++ b/src/clicache/src/UserFunctionExecutionException.hpp @@ -33,99 +33,99 @@ namespace Apache namespace Client { + /// <summary> + /// UserFunctionExecutionException class is used to encapsulate geode sendException in case of Function execution. + /// </summary> + public ref class UserFunctionExecutionException sealed + : public Internal::SBWrap<apache::geode::client::UserFunctionExecutionException>, public IGFSerializable + { + public: + // IGFSerializable members + + /// <summary> + /// Serializes this object. + /// Users should not implement/call this api as it is only intended for internal use. + /// </summary> + /// <param name="output"> + /// the DataOutput stream to use for serialization + /// </param> + /// <exception cref="IllegalStateException"> + /// If this api is called from User code. + /// </exception> + virtual void ToData(DataOutput^ output); + + /// <summary> + /// Deserializes this object. + /// Users should not implement/call this api as it is only intended for internal use. + /// </summary> + /// <param name="input"> + /// the DataInput stream to use for reading data + /// </param> + /// <exception cref="IllegalStateException"> + /// If this api is called from User code. + /// </exception> + /// <returns>the deserialized object</returns> + virtual IGFSerializable^ FromData(DataInput^ input); + /// <summary> - /// UserFunctionExecutionException class is used to encapsulate gemfire sendException in case of Function execution. + /// Returns the classId of this class for serialization. + /// Users should not implement/call this api as it is only intended for internal use. /// </summary> - public ref class UserFunctionExecutionException sealed - : public Internal::SBWrap<apache::geode::client::UserFunctionExecutionException>, public IGFSerializable + /// <exception cref="IllegalStateException"> + /// If this api is called from User code. + /// </exception> + /// <returns>classId of this class</returns> + /// <seealso cref="IGFSerializable.ClassId" /> + virtual property uint32_t ClassId { - public: - // IGFSerializable members - - /// <summary> - /// Serializes this object. - /// Users should not implement/call this api as it is only intended for internal use. - /// </summary> - /// <param name="output"> - /// the DataOutput stream to use for serialization - /// </param> - /// <exception cref="IllegalStateException"> - /// If this api is called from User code. - /// </exception> - virtual void ToData( DataOutput^ output ); - - /// <summary> - /// Deserializes this object. - /// Users should not implement/call this api as it is only intended for internal use. - /// </summary> - /// <param name="input"> - /// the DataInput stream to use for reading data - /// </param> - /// <exception cref="IllegalStateException"> - /// If this api is called from User code. - /// </exception> - /// <returns>the deserialized object</returns> - virtual IGFSerializable^ FromData( DataInput^ input ); - - /// <summary> - /// Returns the classId of this class for serialization. - /// Users should not implement/call this api as it is only intended for internal use. - /// </summary> - /// <exception cref="IllegalStateException"> - /// If this api is called from User code. - /// </exception> - /// <returns>classId of this class</returns> - /// <seealso cref="IGFSerializable.ClassId" /> - virtual property uint32_t ClassId + inline virtual uint32_t get() { - inline virtual uint32_t get( ) - { - throw gcnew IllegalStateException("UserFunctionExecutionException::ClassId is not intended for use."); - return 0; - } + throw gcnew IllegalStateException("UserFunctionExecutionException::ClassId is not intended for use."); + return 0; } + } - /// <summary> - /// return the size of this object in bytes - /// Users should not implement/call this api as it is only intended for internal use. - /// </summary> - /// <exception cref="IllegalStateException"> - /// If this api is called from User code. - /// </exception> - virtual property uint32_t ObjectSize - { - virtual uint32_t get( ); - } + /// <summary> + /// return the size of this object in bytes + /// Users should not implement/call this api as it is only intended for internal use. + /// </summary> + /// <exception cref="IllegalStateException"> + /// If this api is called from User code. + /// </exception> + virtual property uint32_t ObjectSize + { + virtual uint32_t get(); + } - // End: IGFSerializable members + // End: IGFSerializable members - /// <summary> - /// return as String the Exception message returned from gemfire sendException api. - /// </summary> - /// <returns>the String Exception Message</returns> - property String^ Message - { - String^ get(); - } - - /// <summary> - /// return as String the Exception name returned from gemfire sendException api. - /// </summary> - /// <returns>the String Exception Name</returns> - property String^ Name - { - String^ get(); - } - - internal: - - /// <summary> - /// Private constructor to wrap a native object pointer. - /// </summary> - /// <param name="nativeptr">The native object pointer</param> - inline UserFunctionExecutionException( apache::geode::client::UserFunctionExecutionException* nativeptr ) - : SBWrap( nativeptr ) { } - }; + /// <summary> + /// return as String the Exception message returned from geode sendException api. + /// </summary> + /// <returns>the String Exception Message</returns> + property String^ Message + { + String^ get(); + } + + /// <summary> + /// return as String the Exception name returned from geode sendException api. + /// </summary> + /// <returns>the String Exception Name</returns> + property String^ Name + { + String^ get(); + } + + internal: + + /// <summary> + /// Private constructor to wrap a native object pointer. + /// </summary> + /// <param name="nativeptr">The native object pointer</param> + inline UserFunctionExecutionException(apache::geode::client::UserFunctionExecutionException* nativeptr) + : SBWrap(nativeptr) { } + }; } // namespace Client } // namespace Geode } // namespace Apache http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/gf_defs.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/gf_defs.hpp b/src/clicache/src/gf_defs.hpp index f3cdb55..43ac904 100644 --- a/src/clicache/src/gf_defs.hpp +++ b/src/clicache/src/gf_defs.hpp @@ -36,19 +36,19 @@ // These provide Doxygen with namespace and file descriptions. /// @namespace Apache::Geode -/// This namespace contains all the GemFire .NET classes and utility classes. +/// This namespace contains all the Geode .NET classes and utility classes. /// @namespace Apache::Geode::Client -/// This namespace contains all the GemFire .NET API classes and enumerations. +/// This namespace contains all the Geode .NET API classes and enumerations. /// @namespace Apache::Geode::Client -/// This namespace contains all the GemFire .NET Generics API classes and enumerations. +/// This namespace contains all the Geode .NET Generics API classes and enumerations. /// @namespace Apache::Geode::Client::Internal -/// This namespace contains internal GemFire non-public .NET classes. +/// This namespace contains internal Geode non-public .NET classes. /// @namespace Apache::Geode::Client::Template -/// This namespace contains internal GemFire .NET template classes. +/// This namespace contains internal Geode .NET template classes. /// @file gf_includes.hpp /// Provides a commonly-used set of include directives. @@ -74,7 +74,7 @@ /// CacheableInt64Array, BooleanArray and CharArray /// @file CacheableBuiltins.hpp -/// Declared the built-in GemFire serializable types. +/// Declared the built-in Geode serializable types. /// @file CacheableDate.hpp /// Declares the CacheableDate class. @@ -137,13 +137,13 @@ /// Declares the EntryEvent class. /// @file ExceptionTypes.hpp -/// Declares the GemFire exception type classes. +/// Declares the Geode exception type classes. /// @file ExpirationAction.hpp /// Declares the ExpirationAction enumeration and Expiration class. -/// @file GemFireClassIds.hpp -/// Declares the GemFireClassIds class. +/// @file GeodeClassIds.hpp +/// Declares the GeodeClassIds class. /// @file IRegionService.hpp /// Declares the IRegionService interface. @@ -151,11 +151,11 @@ /// @file IRegionService.hpp /// Declares the IRegionService interface. -/// @file IGemFireCache.hpp -/// Declares the IGemFireCache interface. +/// @file IGeodeCache.hpp +/// Declares the IGeodeCache interface. -/// @file IGemFireCache.hpp -/// Declares the IGemFireCache interface. +/// @file IGeodeCache.hpp +/// Declares the IGeodeCache interface. /// @file ICacheableKey.hpp /// Declares the ICacheableKey interface. http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/EnumInfo.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/EnumInfo.hpp b/src/clicache/src/impl/EnumInfo.hpp index 0d7d40b..846b99e 100755 --- a/src/clicache/src/impl/EnumInfo.hpp +++ b/src/clicache/src/impl/EnumInfo.hpp @@ -17,7 +17,7 @@ #pragma once #include "../IGFSerializable.hpp" -#include "../GemFireClassIds.hpp" +#include "../GeodeClassIds.hpp" using namespace System; using namespace System::Collections::Generic; @@ -32,73 +32,73 @@ namespace Apache { public ref class EnumInfo : public IGFSerializable { - private: - String^ _enumClassName; - String^ _enumName; - Int32 _hashcode; - public: - - EnumInfo() - { - _hashcode = -1; - } + private: + String^ _enumClassName; + String^ _enumName; + Int32 _hashcode; + public: - EnumInfo(String^ enumClassName, String^ enumName, int hashcode) - { - _enumClassName = enumClassName; - _enumName = enumName; - _hashcode = hashcode; - } - - static IGFSerializable^ CreateDeserializable() - { - return gcnew EnumInfo(); - } - virtual void ToData( DataOutput^ output ); - virtual IGFSerializable^ FromData( DataInput^ input ); - virtual property uint32_t ObjectSize - { - uint32_t get( ){return 0;} - } - virtual property uint32_t ClassId - { - uint32_t get( ){return GemFireClassIds::EnumInfo;} - } - virtual String^ ToString( ) override - { + EnumInfo() + { + _hashcode = -1; + } + + EnumInfo(String^ enumClassName, String^ enumName, int hashcode) + { + _enumClassName = enumClassName; + _enumName = enumName; + _hashcode = hashcode; + } + + static IGFSerializable^ CreateDeserializable() + { + return gcnew EnumInfo(); + } + virtual void ToData(DataOutput^ output); + virtual IGFSerializable^ FromData(DataInput^ input); + virtual property uint32_t ObjectSize + { + uint32_t get(){ return 0; } + } + virtual property uint32_t ClassId + { + uint32_t get(){ return GeodeClassIds::EnumInfo; } + } + virtual String^ ToString() override + { return "EnumInfo"; - } - - virtual int GetHashCode()override + } + + virtual int GetHashCode()override { - if(_hashcode != -1) + if (_hashcode != -1) return _hashcode; - - return ((_enumClassName != nullptr?_enumClassName->GetHashCode():0) - + (_enumName != nullptr?_enumName->GetHashCode():0) ); + + return ((_enumClassName != nullptr ? _enumClassName->GetHashCode() : 0) + + (_enumName != nullptr ? _enumName->GetHashCode() : 0)); } virtual bool Equals(Object^ obj)override { - if(obj != nullptr) + if (obj != nullptr) { EnumInfo^ other = dynamic_cast<EnumInfo^>(obj); - if(other != nullptr) + if (other != nullptr) { return _enumClassName == other->_enumClassName - && _enumName == other->_enumName - && _hashcode == other->_hashcode; + && _enumName == other->_enumName + && _hashcode == other->_hashcode; } return false; } return false; } - Object^ GetEnum(); - - }; - } // namespace Client - } // namespace Geode -} // namespace Apache + Object^ GetEnum(); + + }; + } // namespace Client + } // namespace Geode + } // namespace Apache } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedAuthInitialize.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedAuthInitialize.cpp b/src/clicache/src/impl/ManagedAuthInitialize.cpp index d8447a1..7608cd8 100644 --- a/src/clicache/src/impl/ManagedAuthInitialize.cpp +++ b/src/clicache/src/impl/ManagedAuthInitialize.cpp @@ -35,7 +35,7 @@ namespace apache { AuthInitialize* ManagedAuthInitializeGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -47,7 +47,7 @@ namespace apache int32_t dotIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedAuthInitializeGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -101,7 +101,7 @@ namespace apache */ MethodInfo^ mInfo = typeInst->GetType()->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { @@ -171,7 +171,7 @@ namespace apache } PropertiesPtr ManagedAuthInitializeGeneric::getCredentials(PropertiesPtr& - securityprops, const char* server) + securityprops, const char* server) { try { Apache::Geode::Client::Properties<String^, String^>^ mprops = http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedCacheListener.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedCacheListener.cpp b/src/clicache/src/impl/ManagedCacheListener.cpp index 9a12870..d95a25d 100644 --- a/src/clicache/src/impl/ManagedCacheListener.cpp +++ b/src/clicache/src/impl/ManagedCacheListener.cpp @@ -39,7 +39,7 @@ namespace apache { apache::geode::client::CacheListener* ManagedCacheListenerGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -58,7 +58,7 @@ namespace apache int32_t commaIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedCacheListenerGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -75,7 +75,7 @@ namespace apache } if ((genericsOpenIndx = mg_factoryFunctionName->LastIndexOf('<')) < 0 || - genericsOpenIndx > genericsCloseIndx) + genericsOpenIndx > genericsCloseIndx) { std::string ex_str = "ManagedCacheListenerGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -84,7 +84,7 @@ namespace apache } if ((commaIndx = mg_factoryFunctionName->LastIndexOf(',')) < 0 || - (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) + (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) { std::string ex_str = "ManagedCacheListenerGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -101,7 +101,7 @@ namespace apache mg_factoryFunctionName = mg_factoryFunctionName->Substring(dotIndx + 1); Apache::Geode::Client::Log::Fine("Attempting to instantiate a [{0}<{1}, {2}>] via the [{3}] factory method.", - mg_typeName, mg_genericKey, mg_genericVal, mg_factoryFunctionName); + mg_typeName, mg_genericKey, mg_genericVal, mg_factoryFunctionName); typeBuilder->Append("`2"); mg_typeName = typeBuilder->ToString(); @@ -142,7 +142,7 @@ namespace apache Apache::Geode::Client::Log::Info("Loading function: [{0}]", mg_factoryFunctionName); MethodInfo^ mInfo = typeInst->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedCacheLoader.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedCacheLoader.cpp b/src/clicache/src/impl/ManagedCacheLoader.cpp index 3d82804..e0ed72f 100644 --- a/src/clicache/src/impl/ManagedCacheLoader.cpp +++ b/src/clicache/src/impl/ManagedCacheLoader.cpp @@ -37,7 +37,7 @@ namespace apache { CacheLoader* ManagedCacheLoaderGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -56,7 +56,7 @@ namespace apache int32_t commaIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedCacheLoaderGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -73,7 +73,7 @@ namespace apache } if ((genericsOpenIndx = mg_factoryFunctionName->LastIndexOf('<')) < 0 || - genericsOpenIndx > genericsCloseIndx) + genericsOpenIndx > genericsCloseIndx) { std::string ex_str = "ManagedCacheLoaderGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -82,7 +82,7 @@ namespace apache } if ((commaIndx = mg_factoryFunctionName->LastIndexOf(',')) < 0 || - (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) + (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) { std::string ex_str = "ManagedCacheLoaderGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -99,7 +99,7 @@ namespace apache mg_factoryFunctionName = mg_factoryFunctionName->Substring(dotIndx + 1); Apache::Geode::Client::Log::Fine("Attempting to instantiate a [{0}<{1}, {2}>] via the [{3}] factory method.", - mg_typeName, mg_genericKey, mg_genericVal, mg_factoryFunctionName); + mg_typeName, mg_genericKey, mg_genericVal, mg_factoryFunctionName); typeBuilder->Append("`2"); mg_typeName = typeBuilder->ToString(); @@ -140,7 +140,7 @@ namespace apache Apache::Geode::Client::Log::Info("Loading function: [{0}]", mg_factoryFunctionName); MethodInfo^ mInfo = typeInst->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { @@ -215,7 +215,7 @@ namespace apache } CacheablePtr ManagedCacheLoaderGeneric::load(const RegionPtr& region, - const CacheableKeyPtr& key, const UserDataPtr& aCallbackArgument) + const CacheableKeyPtr& key, const UserDataPtr& aCallbackArgument) { try { /* http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedCacheWriter.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedCacheWriter.cpp b/src/clicache/src/impl/ManagedCacheWriter.cpp index 52a3566..6cb2d07 100644 --- a/src/clicache/src/impl/ManagedCacheWriter.cpp +++ b/src/clicache/src/impl/ManagedCacheWriter.cpp @@ -39,7 +39,7 @@ namespace apache { CacheWriter* ManagedCacheWriterGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -58,7 +58,7 @@ namespace apache int32_t commaIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedCacheWriterGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -75,7 +75,7 @@ namespace apache } if ((genericsOpenIndx = mg_factoryFunctionName->LastIndexOf('<')) < 0 || - genericsOpenIndx > genericsCloseIndx) + genericsOpenIndx > genericsCloseIndx) { std::string ex_str = "ManagedCacheWriterGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -84,7 +84,7 @@ namespace apache } if ((commaIndx = mg_factoryFunctionName->LastIndexOf(',')) < 0 || - (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) + (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) { std::string ex_str = "ManagedCacheWriterGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -143,7 +143,7 @@ namespace apache Apache::Geode::Client::Log::Info("Loading function: [{0}]", mg_factoryFunctionName); MethodInfo^ mInfo = typeInst->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { Object^ managedptr = nullptr; http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedCacheableKey.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedCacheableKey.cpp b/src/clicache/src/impl/ManagedCacheableKey.cpp index ae11bb1..8661bb7 100644 --- a/src/clicache/src/impl/ManagedCacheableKey.cpp +++ b/src/clicache/src/impl/ManagedCacheableKey.cpp @@ -210,8 +210,8 @@ namespace apache ManagedCacheableKeyGeneric* tmp = const_cast<ManagedCacheableKeyGeneric*>(this); tmp->m_hashcode = ((Apache::Geode::Client::ICacheableKey^) - (Apache::Geode::Client::IGFSerializable^)m_managedptr) - ->GetHashCode(); + (Apache::Geode::Client::IGFSerializable^)m_managedptr) + ->GetHashCode(); return m_hashcode; } catch (Apache::Geode::Client::GemFireException^ ex) { http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedCqListener.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedCqListener.cpp b/src/clicache/src/impl/ManagedCqListener.cpp index 4b9a6b1..6cb9603 100644 --- a/src/clicache/src/impl/ManagedCqListener.cpp +++ b/src/clicache/src/impl/ManagedCqListener.cpp @@ -40,7 +40,7 @@ namespace apache { apache::geode::client::CqListener* ManagedCqListenerGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -52,7 +52,7 @@ namespace apache int32_t dotIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedCqListener: Factory function name '"; ex_str += factoryFunctionName; @@ -82,7 +82,7 @@ namespace apache if (typeInst != nullptr) { MethodInfo^ mInfo = typeInst->GetType()->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { Apache::Geode::Client::ICqListener<Object^, Object^>^ managedptr = nullptr; http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedCqStatusListener.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedCqStatusListener.cpp b/src/clicache/src/impl/ManagedCqStatusListener.cpp index 2b37c27..9524de9 100644 --- a/src/clicache/src/impl/ManagedCqStatusListener.cpp +++ b/src/clicache/src/impl/ManagedCqStatusListener.cpp @@ -38,7 +38,7 @@ namespace apache { apache::geode::client::CqListener* ManagedCqStatusListenerGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -50,7 +50,7 @@ namespace apache int32_t dotIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedCqStatusListenerGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -80,7 +80,7 @@ namespace apache if (typeInst != nullptr) { MethodInfo^ mInfo = typeInst->GetType()->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { Apache::Geode::Client::ICqStatusListener<Object^, Object^>^ managedptr = nullptr; http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedFixedPartitionResolver.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedFixedPartitionResolver.cpp b/src/clicache/src/impl/ManagedFixedPartitionResolver.cpp index b4e00e7..936e354 100644 --- a/src/clicache/src/impl/ManagedFixedPartitionResolver.cpp +++ b/src/clicache/src/impl/ManagedFixedPartitionResolver.cpp @@ -36,7 +36,7 @@ namespace apache namespace client { PartitionResolver* ManagedFixedPartitionResolverGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -55,7 +55,7 @@ namespace apache int32_t commaIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedFixedPartitionResolverGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -72,7 +72,7 @@ namespace apache } if ((genericsOpenIndx = mg_factoryFunctionName->LastIndexOf('<')) < 0 || - genericsOpenIndx > genericsCloseIndx) + genericsOpenIndx > genericsCloseIndx) { std::string ex_str = "ManagedFixedPartitionResolverGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -81,7 +81,7 @@ namespace apache } if ((commaIndx = mg_factoryFunctionName->LastIndexOf(',')) < 0 || - (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) + (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) { std::string ex_str = "ManagedFixedPartitionResolverGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -140,7 +140,7 @@ namespace apache Apache::Geode::Client::Log::Info("Loading function: [{0}]", mg_factoryFunctionName); MethodInfo^ mInfo = typeInst->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedPartitionResolver.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedPartitionResolver.cpp b/src/clicache/src/impl/ManagedPartitionResolver.cpp index b528cf7..921db75 100644 --- a/src/clicache/src/impl/ManagedPartitionResolver.cpp +++ b/src/clicache/src/impl/ManagedPartitionResolver.cpp @@ -40,7 +40,7 @@ namespace apache { PartitionResolver* ManagedPartitionResolverGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -59,7 +59,7 @@ namespace apache int32_t commaIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedPartitionResolverGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -76,7 +76,7 @@ namespace apache } if ((genericsOpenIndx = mg_factoryFunctionName->LastIndexOf('<')) < 0 || - genericsOpenIndx > genericsCloseIndx) + genericsOpenIndx > genericsCloseIndx) { std::string ex_str = "ManagedPartitionResolverGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -85,7 +85,7 @@ namespace apache } if ((commaIndx = mg_factoryFunctionName->LastIndexOf(',')) < 0 || - (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) + (commaIndx < genericsOpenIndx || commaIndx > genericsCloseIndx)) { std::string ex_str = "ManagedPartitionResolverGeneric: Factory function name '"; ex_str += factoryFunctionName; @@ -144,7 +144,7 @@ namespace apache Apache::Geode::Client::Log::Info("Loading function: [{0}]", mg_factoryFunctionName); MethodInfo^ mInfo = typeInst->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { http://git-wip-us.apache.org/repos/asf/geode-native/blob/fc9f1f6f/src/clicache/src/impl/ManagedResultCollector.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/impl/ManagedResultCollector.cpp b/src/clicache/src/impl/ManagedResultCollector.cpp index d01c38b..27f50fb 100644 --- a/src/clicache/src/impl/ManagedResultCollector.cpp +++ b/src/clicache/src/impl/ManagedResultCollector.cpp @@ -40,7 +40,7 @@ namespace apache { apache::geode::client::ResultCollector* ManagedResultCollectorGeneric::create(const char* assemblyPath, - const char* factoryFunctionName) + const char* factoryFunctionName) { try { @@ -52,7 +52,7 @@ namespace apache Int32 dotIndx = -1; if (mg_factoryFunctionName == nullptr || - (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) + (dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0) { std::string ex_str = "ManagedResultCollector: Factory function name '"; ex_str += factoryFunctionName; @@ -82,7 +82,7 @@ namespace apache if (typeInst != nullptr) { MethodInfo^ mInfo = typeInst->GetType()->GetMethod(mg_factoryFunctionName, - BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); + BindingFlags::Public | BindingFlags::Static | BindingFlags::IgnoreCase); if (mInfo != nullptr) { //Apache::Geode::Client::ResultCollector<Object^>^ managedptr = nullptr;
