L - the type of the protocol specific location, typically a subclass of NodeLocationS - the protocol specific Sessionpublic class ProtocolService<L,S extends Session<L>> extends Object
EndpointServices that all handle a single protocol.| Modifier and Type | Class and Description |
|---|---|
static class |
ProtocolService.Builder<L,S extends Session<L>> |
| Constructor and Description |
|---|
ProtocolService(String name,
Map<String,EndpointService<L,S>> endpointServices) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(EndpointService<L,S> newEndpointService)
This will add a new endpoint service to the list.
|
void |
addInventoryListener(InventoryListener listener) |
static <L,S extends Session<L>> |
builder(String name) |
void |
discoverAll() |
Map<String,EndpointService<L,S>> |
getEndpointServices() |
String |
getName() |
void |
remove(String name,
SchedulerService scheduler)
This will stop the given endpoint service and remove it from the list of endpoint services.
|
void |
removeInventoryListener(InventoryListener listener) |
void |
start() |
void |
stop() |
public static <L,S extends Session<L>> ProtocolService.Builder<L,S> builder(String name)
public String getName()
public Map<String,EndpointService<L,S>> getEndpointServices()
public void discoverAll()
public void start()
public void stop()
public void addInventoryListener(InventoryListener listener)
public void removeInventoryListener(InventoryListener listener)
public void add(EndpointService<L,S> newEndpointService)
newEndpointService - the new service to add and startpublic void remove(String name, SchedulerService scheduler)
name - identifies the endpoint service to removescheduler - the scheduler that is currently collecting metrics for this serviceCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.