Пример #1
0
        /** <inheritDoc /> */
        public void Cancel(string name)
        {
            IgniteArgumentCheck.NotNullOrEmpty(name, "name");

            DoOutOp(OpCancel, w => w.WriteString(name));
        }
Пример #2
0
        /** <inheritDoc /> */
        public IClientClusterGroup ForAttribute(string name, string val)
        {
            IgniteArgumentCheck.NotNullOrEmpty(name, "name");

            return(new ClientClusterGroup(_ignite, _projection.ForAttribute(name, val)));
        }
Пример #3
0
        /** <inheritDoc /> */
        public void DisableLocal(params int[] types)
        {
            IgniteArgumentCheck.NotNullOrEmpty(types, "types");

            DoOutOp((int)Op.DisableLocal, writer => WriteEventTypes(types, writer));
        }
Пример #4
0
        /** <inheritdoc /> */
        public bool IsWalEnabled(string cacheName)
        {
            IgniteArgumentCheck.NotNullOrEmpty(cacheName, "cacheName");

            return(DoOutInOp(ClientOp.ClusterGetWalState, w => w.WriteString(cacheName), r => r.ReadBoolean()));
        }
Пример #5
0
        /** <inheritDoc /> */
        public IBinaryType RegisterEnum(string typeName, IEnumerable <KeyValuePair <string, int> > values)
        {
            IgniteArgumentCheck.NotNullOrEmpty(typeName, "typeName");

            return(Marshaller.Ignite.BinaryProcessor.RegisterEnum(typeName, values));
        }
Пример #6
0
        /** <inheritDoc /> */
        public int GetTypeId(string typeName)
        {
            IgniteArgumentCheck.NotNullOrEmpty(typeName, "typeName");

            return(Marshaller.GetDescriptor(typeName).TypeId);
        }
Пример #7
0
        /** <inheritdoc /> */
        public T GetPlugin <T>(string name) where T : class
        {
            IgniteArgumentCheck.NotNullOrEmpty(name, "name");

            return(PluginProcessor.GetProvider(name).GetPlugin <T>());
        }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Endpoint"/> class.
 /// </summary>
 private Endpoint(string host, int port = IgniteClientConfiguration.DefaultPort, int portRange = 0)
 {
     Host      = IgniteArgumentCheck.NotNullOrEmpty(host, "host");
     Port      = port;
     PortRange = portRange;
 }
Пример #9
0
        /** <inheritDoc /> */
        public ITransactions WithLabel(string label)
        {
            IgniteArgumentCheck.NotNullOrEmpty(label, "label");

            return(_ignite.GetTransactionsWithLabel(label));
        }
Пример #10
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JavaObject"/> class.
        /// </summary>
        /// <param name="className">Name of the Java class.</param>
        public JavaObject(string className)
        {
            IgniteArgumentCheck.NotNullOrEmpty(className, "className");

            _className = className;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="BinaryFieldEqualityComparer"/> class.
        /// </summary>
        /// <param name="fieldNames">The field names for comparison.</param>
        public BinaryFieldEqualityComparer(params string[] fieldNames)
        {
            IgniteArgumentCheck.NotNullOrEmpty(fieldNames, "fieldNames");

            FieldNames = fieldNames;
        }
Пример #12
0
        /** <inheritDoc /> */
        public void Cancel(string name)
        {
            IgniteArgumentCheck.NotNullOrEmpty(name, "name");

            UU.ServicesCancel(Target, name);
        }
Пример #13
0
        /// <summary>
        /// Initializes a new instance of the <see cref="QueryIndexField"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        public QueryIndexField(string name)
        {
            IgniteArgumentCheck.NotNullOrEmpty(name, "name");

            Name = name;
        }
Пример #14
0
        /** <inheritDoc /> */
        public ITransactionsClient WithLabel(string label)
        {
            IgniteArgumentCheck.NotNullOrEmpty(label, "label");

            return(new TransactionsClientWithLabel(this, label));
        }
Пример #15
0
        /** <inheritDoc /> */
        public Task CancelAsync(string name)
        {
            IgniteArgumentCheck.NotNullOrEmpty(name, "name");

            return(DoOutOpAsync(OpCancelAsync, w => w.WriteString(name)));
        }
Пример #16
0
        /** <inheritDoc /> */
        public IPortableMetadata GetMetadata(string typeName)
        {
            IgniteArgumentCheck.NotNullOrEmpty(typeName, "typeName");

            return(GetMetadata(GetTypeId(typeName)));
        }
Пример #17
0
 /// <summary>
 /// Performs ServiceConfiguration validation.
 /// </summary>
 /// <param name="configuration">Service configuration</param>
 /// <param name="argName">argument name</param>
 private static void ValidateConfiguration(ServiceConfiguration configuration, string argName)
 {
     IgniteArgumentCheck.NotNull(configuration, argName);
     IgniteArgumentCheck.NotNullOrEmpty(configuration.Name, string.Format("{0}.Name", argName));
     IgniteArgumentCheck.NotNull(configuration.Service, string.Format("{0}.Service", argName));
 }
Пример #18
0
        /** <inheritdoc /> */
        public TRes ExecuteJavaTask <TRes>(string taskName, object taskArg)
        {
            IgniteArgumentCheck.NotNullOrEmpty(taskName, "taskName");

            return(ExecuteJavaTaskAsync <TRes>(taskName, taskArg).Result);
        }
Пример #19
0
        /** <inheritDoc /> */
        public IBinaryType GetBinaryType(string typeName)
        {
            IgniteArgumentCheck.NotNullOrEmpty(typeName, "typeName");

            return(GetBinaryType(GetTypeId(typeName)));
        }
Пример #20
0
        /** <inheritdoc /> */
        public bool IsWalEnabled(string cacheName)
        {
            IgniteArgumentCheck.NotNullOrEmpty(cacheName, "cacheName");

            return(DoOutInOp(ClientOp.ClusterGetWalState, ctx => ctx.Writer.WriteString(cacheName), ctx => ctx.Stream.ReadBool()));
        }
Пример #21
0
        /** <inheritdoc /> */
        public IMemoryMetrics GetMemoryMetrics(string memoryPolicyName)
        {
            IgniteArgumentCheck.NotNullOrEmpty(memoryPolicyName, "memoryPolicyName");

            return(_prj.GetMemoryMetrics(memoryPolicyName));
        }
Пример #22
0
        /** <inheritdoc /> */
        public T GetServiceProxy <T>(string serviceName) where T : class
        {
            IgniteArgumentCheck.NotNullOrEmpty(serviceName, "name");

            return(ServiceProxyFactory <T> .CreateProxy((method, args) => InvokeProxyMethod(serviceName, method, args)));
        }