Search in sources :

Example 1 with PlatformDotNetServiceImpl

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);
}
Also used : PlatformDotNetServiceImpl(org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl)

Example 2 with PlatformDotNetServiceImpl

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);
}
Also used : PlatformDotNetServiceImpl(org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl)

Example 3 with PlatformDotNetServiceImpl

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;
}
Also used : ServiceConfiguration(org.apache.ignite.services.ServiceConfiguration) PlatformDotNetServiceImpl(org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

PlatformDotNetServiceImpl (org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl)3 ServiceConfiguration (org.apache.ignite.services.ServiceConfiguration)1 NotNull (org.jetbrains.annotations.NotNull)1