/** <inheritDoc /> */ public void Cancel(string name) { IgniteArgumentCheck.NotNullOrEmpty(name, "name"); DoOutOp(OpCancel, w => w.WriteString(name)); }
/** <inheritDoc /> */ public IClientClusterGroup ForAttribute(string name, string val) { IgniteArgumentCheck.NotNullOrEmpty(name, "name"); return(new ClientClusterGroup(_ignite, _projection.ForAttribute(name, val))); }
/** <inheritDoc /> */ public void DisableLocal(params int[] types) { IgniteArgumentCheck.NotNullOrEmpty(types, "types"); DoOutOp((int)Op.DisableLocal, writer => WriteEventTypes(types, writer)); }
/** <inheritdoc /> */ public bool IsWalEnabled(string cacheName) { IgniteArgumentCheck.NotNullOrEmpty(cacheName, "cacheName"); return(DoOutInOp(ClientOp.ClusterGetWalState, w => w.WriteString(cacheName), r => r.ReadBoolean())); }
/** <inheritDoc /> */ public IBinaryType RegisterEnum(string typeName, IEnumerable <KeyValuePair <string, int> > values) { IgniteArgumentCheck.NotNullOrEmpty(typeName, "typeName"); return(Marshaller.Ignite.BinaryProcessor.RegisterEnum(typeName, values)); }
/** <inheritDoc /> */ public int GetTypeId(string typeName) { IgniteArgumentCheck.NotNullOrEmpty(typeName, "typeName"); return(Marshaller.GetDescriptor(typeName).TypeId); }
/** <inheritdoc /> */ public T GetPlugin <T>(string name) where T : class { IgniteArgumentCheck.NotNullOrEmpty(name, "name"); return(PluginProcessor.GetProvider(name).GetPlugin <T>()); }
/// <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; }
/** <inheritDoc /> */ public ITransactions WithLabel(string label) { IgniteArgumentCheck.NotNullOrEmpty(label, "label"); return(_ignite.GetTransactionsWithLabel(label)); }
/// <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; }
/** <inheritDoc /> */ public void Cancel(string name) { IgniteArgumentCheck.NotNullOrEmpty(name, "name"); UU.ServicesCancel(Target, name); }
/// <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; }
/** <inheritDoc /> */ public ITransactionsClient WithLabel(string label) { IgniteArgumentCheck.NotNullOrEmpty(label, "label"); return(new TransactionsClientWithLabel(this, label)); }
/** <inheritDoc /> */ public Task CancelAsync(string name) { IgniteArgumentCheck.NotNullOrEmpty(name, "name"); return(DoOutOpAsync(OpCancelAsync, w => w.WriteString(name))); }
/** <inheritDoc /> */ public IPortableMetadata GetMetadata(string typeName) { IgniteArgumentCheck.NotNullOrEmpty(typeName, "typeName"); return(GetMetadata(GetTypeId(typeName))); }
/// <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)); }
/** <inheritdoc /> */ public TRes ExecuteJavaTask <TRes>(string taskName, object taskArg) { IgniteArgumentCheck.NotNullOrEmpty(taskName, "taskName"); return(ExecuteJavaTaskAsync <TRes>(taskName, taskArg).Result); }
/** <inheritDoc /> */ public IBinaryType GetBinaryType(string typeName) { IgniteArgumentCheck.NotNullOrEmpty(typeName, "typeName"); return(GetBinaryType(GetTypeId(typeName))); }
/** <inheritdoc /> */ public bool IsWalEnabled(string cacheName) { IgniteArgumentCheck.NotNullOrEmpty(cacheName, "cacheName"); return(DoOutInOp(ClientOp.ClusterGetWalState, ctx => ctx.Writer.WriteString(cacheName), ctx => ctx.Stream.ReadBool())); }
/** <inheritdoc /> */ public IMemoryMetrics GetMemoryMetrics(string memoryPolicyName) { IgniteArgumentCheck.NotNullOrEmpty(memoryPolicyName, "memoryPolicyName"); return(_prj.GetMemoryMetrics(memoryPolicyName)); }
/** <inheritdoc /> */ public T GetServiceProxy <T>(string serviceName) where T : class { IgniteArgumentCheck.NotNullOrEmpty(serviceName, "name"); return(ServiceProxyFactory <T> .CreateProxy((method, args) => InvokeProxyMethod(serviceName, method, args))); }