Class RolesCommand

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

    public class RolesCommand
    extends AbstractShellCommand
    Lists mastership roles of nodes for each device.
    • Constructor Detail

      • RolesCommand

        public RolesCommand()
    • Method Detail

      • printRoles

        protected void printRoles​(MastershipService service,
                                  DeviceId deviceId)
        Prints the role information for a device.
        Parameters:
        service - mastership service
        deviceId - the ID of the device