Example #1
0
        public InitCommand(string clientid, string id, string clientLocalIP)
        {
            _initCommand           = new Alachisoft.NCache.Common.Protobuf.InitCommand();
            base.name              = "InitCommand";
            _currentVersion        = Alachisoft.NCache.Common.ProductVersion.ProductInfo;
            _initCommand.cacheId   = id;
            _initCommand.clientId  = clientid;
            _initCommand.requestId = base.RequestId;


            //Protobuf. Product Version is assigned values
            if (_initCommand.productVersion == null)
            {
                _initCommand.productVersion = new Common.Protobuf.ProductVersion();
            }

            _initCommand.productVersion.AddiotionalData = _currentVersion.AdditionalData;
            _initCommand.productVersion.EditionID       = _currentVersion.EditionID;
            _initCommand.productVersion.MajorVersion1   = this.ParseToByteArray(_currentVersion.MajorVersion1);
            _initCommand.productVersion.MajorVersion2   = this.ParseToByteArray(_currentVersion.MajorVersion2);
            _initCommand.productVersion.MinorVersion1   = this.ParseToByteArray(_currentVersion.MinorVersion1);
            _initCommand.productVersion.MinorVersion2   = this.ParseToByteArray(_currentVersion.MinorVersion2);
            _initCommand.productVersion.ProductName     = _currentVersion.ProductName;

            // from NCache 4.1 SP2 private patch 2 ownward client version will also be sent
            //Client version has following format :
            //[2 digits for major version][1 digit for service paack][1 digit for private patch]
            //e.g. 4122 means 4.1 major , 2 for service pack 2 and last 4 for private patch 4

            _initCommand.clientVersion = 4200; //changed for 4.2
        }
Example #2
0
        public InitCommand(string clientid, string id, string clientLocalIP)
        {
            _initCommand = new Alachisoft.NCache.Common.Protobuf.InitCommand();
             base.name = "InitCommand";
            _currentVersion = Alachisoft.NCache.Common.ProductVersion.ProductInfo;
            _initCommand.cacheId = id;
            _initCommand.clientId = clientid;
            _initCommand.requestId = base.RequestId;

            //Protobuf. Product Version is assigned values
            if (_initCommand.productVersion == null)
                _initCommand.productVersion = new Common.Protobuf.ProductVersion();

                _initCommand.productVersion.AddiotionalData = _currentVersion.AdditionalData;
                _initCommand.productVersion.EditionID = _currentVersion.EditionID;
                _initCommand.productVersion.MajorVersion1 = this.ParseToByteArray(_currentVersion.MajorVersion1);
                _initCommand.productVersion.MajorVersion2 = this.ParseToByteArray(_currentVersion.MajorVersion2);
                _initCommand.productVersion.MinorVersion1 = this.ParseToByteArray(_currentVersion.MinorVersion1);
                _initCommand.productVersion.MinorVersion2 = this.ParseToByteArray(_currentVersion.MinorVersion2);
                _initCommand.productVersion.ProductName = _currentVersion.ProductName;

            // from NCache 4.1 SP2 private patch 2 ownward client version will also be sent
            //Client version has following format :
            //[2 digits for major version][1 digit for service paack][1 digit for private patch]
            //e.g. 4122 means 4.1 major , 2 for service pack 2 and last 4 for private patch 4

            _initCommand.clientVersion = 4200; //changed for 4.2
        }
        public GetRunningServersCommand(string id)
        {
            base.name = "GetRunningServersCommand";
            _currentVersion = Alachisoft.NCache.Common.ProductVersion.ProductInfo;
            _getRunningServersCommand = new Alachisoft.NCache.Common.Protobuf.GetRunningServersCommand();
            _getRunningServersCommand.cacheId = id;

            _getRunningServersCommand.isDotnetClient = true;
            _getRunningServersCommand.requestId = base.RequestId;

            if (_getRunningServersCommand.productVersion == null)
                _getRunningServersCommand.productVersion = new Common.Protobuf.ProductVersion();

                _getRunningServersCommand.productVersion.AddiotionalData = _currentVersion.AdditionalData;
                _getRunningServersCommand.productVersion.EditionID = _currentVersion.EditionID;
                _getRunningServersCommand.productVersion.MajorVersion1 = this.ParseToByteArray(_currentVersion.MajorVersion1);
                _getRunningServersCommand.productVersion.MajorVersion2 = this.ParseToByteArray(_currentVersion.MajorVersion2);
                _getRunningServersCommand.productVersion.MinorVersion1 = this.ParseToByteArray(_currentVersion.MinorVersion1);
                _getRunningServersCommand.productVersion.MinorVersion2 = this.ParseToByteArray(_currentVersion.MinorVersion2);
                _getRunningServersCommand.productVersion.ProductName = _currentVersion.ProductName;
        }
Example #4
0
        public GetRunningServersCommand(string id)
        {
            base.name                         = "GetRunningServersCommand";
            _currentVersion                   = Alachisoft.NCache.Common.ProductVersion.ProductInfo;
            _getRunningServersCommand         = new Alachisoft.NCache.Common.Protobuf.GetRunningServersCommand();
            _getRunningServersCommand.cacheId = id;

            _getRunningServersCommand.isDotnetClient = true;
            _getRunningServersCommand.requestId      = base.RequestId;


            if (_getRunningServersCommand.productVersion == null)
            {
                _getRunningServersCommand.productVersion = new Common.Protobuf.ProductVersion();
            }

            _getRunningServersCommand.productVersion.AddiotionalData = _currentVersion.AdditionalData;
            _getRunningServersCommand.productVersion.EditionID       = _currentVersion.EditionID;
            _getRunningServersCommand.productVersion.MajorVersion1   = this.ParseToByteArray(_currentVersion.MajorVersion1);
            _getRunningServersCommand.productVersion.MajorVersion2   = this.ParseToByteArray(_currentVersion.MajorVersion2);
            _getRunningServersCommand.productVersion.MinorVersion1   = this.ParseToByteArray(_currentVersion.MinorVersion1);
            _getRunningServersCommand.productVersion.MinorVersion2   = this.ParseToByteArray(_currentVersion.MinorVersion2);
            _getRunningServersCommand.productVersion.ProductName     = _currentVersion.ProductName;
        }