Package alluxio
Interface Server<T>
-
- Type Parameters:
T
- type of the start options
- All Known Subinterfaces:
BlockWorker
,DataWorker
,DoraWorker
,Worker
public interface Server<T>
Interface representing an Alluxio server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes the server.java.util.Set<java.lang.Class<? extends Server>>
getDependencies()
java.lang.String
getName()
java.util.Map<alluxio.grpc.ServiceType,GrpcService>
getServices()
void
start(T options)
Starts the Alluxio server.void
stop()
Stops the Alluxio server.
-
-
-
Method Detail
-
getDependencies
java.util.Set<java.lang.Class<? extends Server>> getDependencies()
- Returns:
- the server dependencies
-
getName
java.lang.String getName()
- Returns:
- the server's name
-
getServices
java.util.Map<alluxio.grpc.ServiceType,GrpcService> getServices()
- Returns:
- a map from service names to gRPC serviced that serve RPCs for this server
-
start
void start(T options) throws java.io.IOException
Starts the Alluxio server.- Parameters:
options
- the start options- Throws:
java.io.IOException
-
stop
void stop() throws java.io.IOException
Stops the Alluxio server. Here, anything created or started in#start(T)
should be cleaned up and shutdown.- Throws:
java.io.IOException
-
close
void close() throws java.io.IOException
Closes the server.- Throws:
java.io.IOException
-
-