public interface Service
static {
MiniCluster.registerService(MyService.class);
}
| Modifier and Type | Interface and Description |
|---|---|
static class |
Service.ServiceConfig
A class that holds configuration settings for minicluster services.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Service.ServiceConfig serviceConfig)
Configure this service with the ServiceConfig
|
List<Class<? extends Service>> |
dependencies()
Get the other Service implementations this Service has as a dependency.
|
Configuration |
getHadoopConf()
Get the Hadoop configuration object for this service.
|
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
void configure(Service.ServiceConfig serviceConfig)
serviceConfig - A Service Config instanceConfiguration getHadoopConf()
void start()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionvoid stop()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2013–2015. All rights reserved.