Class RasnetServiceFactoryImpl

java.lang.Object
org.rasdaman.rasnet.communication.RasnetServiceFactoryImpl
All Implemented Interfaces:
RasnetServiceFactory

public class RasnetServiceFactoryImpl extends Object implements RasnetServiceFactory
Implementation for creating rasnet services and channels.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.grpc.ManagedChannel
    createChannel(String host, int port)
    Create a channel for connecting to a server.
    org.rasdaman.rasnet.service.ClientRassrvrServiceGrpc.ClientRassrvrServiceBlockingStub
    createClientRasServerService(io.grpc.Channel channel)
    Create a communication service between client and rasserver.
    org.rasdaman.rasnet.service.HealthServiceGrpc.HealthServiceBlockingStub
    createHealthService(io.grpc.Channel channel)
    Create a health service uses to check the liveliness between a server (rasmgr or rasserver) and the client.
    org.rasdaman.rasnet.service.RasmgrClientServiceGrpc.RasmgrClientServiceBlockingStub
    createRasmgrClientService(io.grpc.Channel channel)
    Create a communication service between client and rasmgr.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RasnetServiceFactoryImpl

      public RasnetServiceFactoryImpl()
  • Method Details

    • createRasmgrClientService

      public org.rasdaman.rasnet.service.RasmgrClientServiceGrpc.RasmgrClientServiceBlockingStub createRasmgrClientService(io.grpc.Channel channel)
      Description copied from interface: RasnetServiceFactory
      Create a communication service between client and rasmgr.
      Specified by:
      createRasmgrClientService in interface RasnetServiceFactory
      Parameters:
      channel - Channel holding the connection between the client and rasmgr
      Returns:
      A grpc service.
    • createClientRasServerService

      public org.rasdaman.rasnet.service.ClientRassrvrServiceGrpc.ClientRassrvrServiceBlockingStub createClientRasServerService(io.grpc.Channel channel)
      Description copied from interface: RasnetServiceFactory
      Create a communication service between client and rasserver.
      Specified by:
      createClientRasServerService in interface RasnetServiceFactory
      Parameters:
      channel - Channel holing the connection between the client and rasserver.
      Returns:
      A grpc service.
    • createHealthService

      public org.rasdaman.rasnet.service.HealthServiceGrpc.HealthServiceBlockingStub createHealthService(io.grpc.Channel channel)
      Description copied from interface: RasnetServiceFactory
      Create a health service uses to check the liveliness between a server (rasmgr or rasserver) and the client.
      Specified by:
      createHealthService in interface RasnetServiceFactory
      Parameters:
      channel - Channel holing the connection between the client and rasserver.
      Returns:
      A grpc service.
    • createChannel

      public io.grpc.ManagedChannel createChannel(String host, int port)
      Description copied from interface: RasnetServiceFactory
      Create a channel for connecting to a server.
      Specified by:
      createChannel in interface RasnetServiceFactory
      Parameters:
      host - The server host.
      port - The server port.
      Returns:
      A channel.