Beispiel #1
0
        /** <inheritDoc /> */
        public void Cancel(string name)
        {
            IgniteArgumentCheck.NotNullOrEmpty(name, "name");

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

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

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

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

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

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

            return(PluginProcessor.GetProvider(name).GetPlugin <T>());
        }
Beispiel #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;
 }
Beispiel #9
0
        /** <inheritDoc /> */
        public ITransactions WithLabel(string label)
        {
            IgniteArgumentCheck.NotNullOrEmpty(label, "label");

            return(_ignite.GetTransactionsWithLabel(label));
        }
Beispiel #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;
        }
Beispiel #12
0
        /** <inheritDoc /> */
        public void Cancel(string name)
        {
            IgniteArgumentCheck.NotNullOrEmpty(name, "name");

            UU.ServicesCancel(Target, name);
        }
Beispiel #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;
        }
Beispiel #14
0
        /** <inheritDoc /> */
        public ITransactionsClient WithLabel(string label)
        {
            IgniteArgumentCheck.NotNullOrEmpty(label, "label");

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

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

            return(GetMetadata(GetTypeId(typeName)));
        }
Beispiel #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));
 }
Beispiel #18
0
        /** <inheritdoc /> */
        public TRes ExecuteJavaTask <TRes>(string taskName, object taskArg)
        {
            IgniteArgumentCheck.NotNullOrEmpty(taskName, "taskName");

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

            return(GetBinaryType(GetTypeId(typeName)));
        }
Beispiel #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()));
        }
Beispiel #21
0
        /** <inheritdoc /> */
        public IMemoryMetrics GetMemoryMetrics(string memoryPolicyName)
        {
            IgniteArgumentCheck.NotNullOrEmpty(memoryPolicyName, "memoryPolicyName");

            return(_prj.GetMemoryMetrics(memoryPolicyName));
        }
Beispiel #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)));
        }