All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.cli.commands.server.Version Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.cli.commands.server;

import org.infinispan.cli.Context;
import org.infinispan.cli.commands.ProcessedCommand;
import org.kohsuke.MetaInfServices;

@MetaInfServices(org.infinispan.cli.commands.Command.class)
public class Version extends AbstractServerCommand {

   @Override
   public String getName() {
      return "version";
   }

   @Override
   public int nesting() {
      return 0;
   }

   @Override
   public boolean isAvailable(Context context) {
      return true;
   }

   @Override
   public void execute(Context context, ProcessedCommand commandLine) {
      context.println("Client Version " + Version.class.getPackage().getImplementationVersion());
      if (context.isConnected()) {
         super.execute(context, commandLine);
      }
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy