Search in sources :

Example 1 with CheckForFileSystemCompatibilityCommand

use of com.iwave.ext.linux.command.CheckForFileSystemCompatibilityCommand in project coprhd-controller by CoprHD.

the class CheckForFileSystemCompatibility method execute.

@Override
public void execute() throws Exception {
    CheckForFileSystemCompatibilityCommand command = new CheckForFileSystemCompatibilityCommand();
    command.setFileSystemType(fsType);
    executeCommand(command, SHORT_TIMEOUT);
    CommandOutput output = command.getOutput();
    if (!output.getStdout().contains(fsType)) {
        throw stateException("CheckForFileSystemCompatibility.illegalState.fileSystemTypeUnsupported", fsType);
    }
}
Also used : CommandOutput(com.iwave.ext.command.CommandOutput) CheckForFileSystemCompatibilityCommand(com.iwave.ext.linux.command.CheckForFileSystemCompatibilityCommand)

Aggregations

CommandOutput (com.iwave.ext.command.CommandOutput)1 CheckForFileSystemCompatibilityCommand (com.iwave.ext.linux.command.CheckForFileSystemCompatibilityCommand)1