Class MastersListCommand

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action, CodecContext

    public class MastersListCommand
    extends AbstractShellCommand
    Lists device mastership information.
    • Constructor Detail

      • MastersListCommand

        public MastersListCommand()
    • Method Detail

      • json

        public static com.fasterxml.jackson.databind.JsonNode json​(com.fasterxml.jackson.databind.ObjectMapper mapper,
                                                                   java.lang.Iterable<DeviceId> ids)
        Produces a JSON array containing the specified device identifiers.
        Parameters:
        mapper - object mapper
        ids - collection of device identifiers
        Returns:
        JSON array