use of org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl in project ignite by apache.
the class PlatformServices method dotnetDeployMultiple.
/**
* Deploys multiple dotnet services.
*
* @param reader Binary reader.
*/
private void dotnetDeployMultiple(BinaryRawReaderEx reader) {
String name = reader.readString();
Object svc = reader.readObjectDetached();
int totalCnt = reader.readInt();
int maxPerNodeCnt = reader.readInt();
services.deployMultiple(name, new PlatformDotNetServiceImpl(svc, platformCtx, srvKeepBinary), totalCnt, maxPerNodeCnt);
}
use of org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl in project ignite by apache.
the class PlatformServices method dotnetDeployMultipleAsync.
/**
* Asynchronously deploys multiple dotnet services.
*
* @param reader Binary reader.
* @return Future of the operation.
*/
private IgniteFuture<Void> dotnetDeployMultipleAsync(BinaryRawReaderEx reader) {
String name = reader.readString();
Object svc = reader.readObjectDetached();
int totalCnt = reader.readInt();
int maxPerNodeCnt = reader.readInt();
return services.deployMultipleAsync(name, new PlatformDotNetServiceImpl(svc, platformCtx, srvKeepBinary), totalCnt, maxPerNodeCnt);
}
use of org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl in project ignite by apache.
the class PlatformServices method dotnetConfiguration.
/**
* Read the dotnet service configuration.
*
* @param reader Binary reader,
* @return Service configuration.
*/
@NotNull
private ServiceConfiguration dotnetConfiguration(BinaryRawReaderEx reader) {
ServiceConfiguration cfg = new ServiceConfiguration();
cfg.setName(reader.readString());
cfg.setService(new PlatformDotNetServiceImpl(reader.readObjectDetached(), platformCtx, srvKeepBinary));
cfg.setTotalCount(reader.readInt());
cfg.setMaxPerNodeCount(reader.readInt());
cfg.setCacheName(reader.readString());
cfg.setAffinityKey(reader.readObjectDetached());
Object filter = reader.readObjectDetached();
if (filter != null)
cfg.setNodeFilter(platformCtx.createClusterNodeFilter(filter));
return cfg;
}
Aggregations