Interface NetworkServiceService
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
NetworkServiceServiceImpl
@Path("networkServices") public interface NetworkServiceService extends SerializableREST operations for Self Keymaster's service discovery.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNetworkServiceService.Action
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaction(@NotNull NetworkService networkService, NetworkServiceService.Action action)(Un)registers the given service.NetworkServiceget(NetworkService.Type serviceType)Returns the service instance to invoke, for the given type.List<NetworkService>list(NetworkService.Type serviceType)Returns the list of registered services.
-
-
-
Method Detail
-
list
@GET @Path("{serviceType}") @Produces("application/json") List<NetworkService> list(@NotNull @PathParam("serviceType") NetworkService.Type serviceType)Returns the list of registered services.- Parameters:
serviceType- service type- Returns:
- list of registered services
-
get
@GET @Path("{serviceType}/get") @Produces("application/json") NetworkService get(@NotNull @PathParam("serviceType") NetworkService.Type serviceType)Returns the service instance to invoke, for the given type.- Parameters:
serviceType- service type- Returns:
- service instance to invoke, for the given type
-
action
@POST @Consumes("application/json") @Produces("application/json") void action(@NotNull @NotNull NetworkService networkService, @QueryParam("action") NetworkServiceService.Action action)(Un)registers the given service.- Parameters:
networkService- service instanceaction- action to perform on the given service
-
-