| org.netbeans.modules.db.mysql.Installation
All known Subclasses: org.netbeans.modules.db.mysql.installations.AbstractInstallation,
Installation | public interface Installation (Code) | | This interface defines an abstraction of an installation of MySQL, which
gives you information such as the path/arguments to the start command,
stop command, admin command.
Valid installations are loaded through the layer file using the folder
Databases/MySQL/Installations
author: David Van Couvering |
Inner Class :public enum Command | |
getAdminCommand | public String[] getAdminCommand()(Code) | | the command to administer this installation. This is normallyphpMyAdmin; rarely does an installation come with the MySQL admin tool. The first element is the path/URL to the command. The second element is the arguments to the command |
getDefaultPort | public String getDefaultPort()(Code) | | the default port number for the server |
getInstallation | public Installation getInstallation(String command, Command cmdType)(Code) | | Given a full path to a command, get an installation definition.
This is for when the installation path may not be the default one.
The use case for this
is if the user manually specifies a path to the start command; we can
then use this to determine the values for the other commands.
Parameters: command - the full path to the command Parameters: cmdType - the type of command an Installation which is correct based on the given command,or null if it was not a valid command |
getStartCommand | public String[] getStartCommand()(Code) | | the command to stop the server. The first element is the pathto the command. The second element is the arguments to the command |
getStopCommand | public String[] getStopCommand()(Code) | | the command to start the server. The first element is the pathto the command. The second element is the arguments to the command |
isStackInstall | public boolean isStackInstall()(Code) | | true if this installation is part of a stack installationlike XAMPP or MAMP. Stack-based installations take preference because they usually have an admin tool (myphpadmin) and usually don't install MySQL as a service but are instead manually started and stopped.Also, standalone installs often come as part of the OS distribution,where a stack based install is explicitly installed by the user, andthus is probably their preference. |
isValidOnCurrentOS | public boolean isValidOnCurrentOS()(Code) | | Returns true if this installation is valid for the current OS
|
|
|