Codota Logo
Project$Builder
Code IndexAdd Codota to your IDE (free)

How to use
Project$Builder
in
com.neotys.neoload.model

Best Java code snippets using com.neotys.neoload.model.Project$Builder (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: com.neotys.neoload/loadrunner-reader

@Override
public synchronized Project read() {
  try {
    final ImmutableProject.Builder projectBuilder = Project.builder().name(this.projectName);
    final List<File> projectFolders = getProjectFolders();
    final int totalScriptNumber = projectFolders.size();
    eventListener.startReadingScripts(totalScriptNumber);
    if (projectFolders.isEmpty()) {
      throw new IllegalStateException("No Load Runner project found.");
    }
    for (final File projectFolder : projectFolders) {
      readScript(projectBuilder, projectFolder);
    }
    projectBuilder.servers(currentProjectServers.values());
    return projectBuilder.build();
  } finally {
    eventListener.endReadingScripts();
  }
}
origin: com.neotys.neoload/neoload-project

@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
static ImmutableProject fromJson(Json json) {
 Project.Builder builder = new Project.Builder();
 if (json.name != null) {
  builder.name(json.name);
  builder.addAllSharedElements(json.sharedElements);
  builder.addAllUserPaths(json.userPaths);
  builder.addAllServers(json.servers);
  builder.addAllVariables(json.variables);
  builder.addAllPopulations(json.populations);
  builder.addAllScenarios(json.scenarios);
  builder.putAllProjectSettings(json.projectSettings);
 return (ImmutableProject) builder.build();
origin: com.neotys.neoload/loadrunner-reader

private void readScript(final ImmutableProject.Builder projectBuilder, final File projectFolder) {
  try {
    currentScriptFolder = projectFolder;
    eventListener.startScript(currentScriptFolder.getName());
    final ProjectFileReader projectFileReader = new ProjectFileReader(this, eventListener, projectFolder);
    final Map<String, String> actionsMap = projectFileReader.getAllActionsMap();
    if (actionsMap.isEmpty()) {
      LOGGER.error("No action in the map. Ignore the script.");
      return;
    }
    final ParameterFileReader parameterFileReader = new ParameterFileReader(this, projectFileReader, projectFolder);
    final ImmutableUserPath.Builder userPathBuilder = ImmutableUserPath.builder();
    final boolean hasAction = manageActions(projectFolder, projectFileReader, actionsMap, projectBuilder, userPathBuilder);
    final UserPath userPath = userPathBuilder.name(projectFileReader.getVirtualUserName()).build();
    if (!hasAction) {
      LOGGER.error("No Init / Actions / End. Ignore the script.");
      return;
    }
    projectBuilder.addAllVariables(parameterFileReader.getAllVariables()).addUserPaths(userPath);
  } finally {
    eventListener.endScript();
  }
}
origin: com.neotys.neoload/neoload-project

  static Builder builder() {
    return new Builder();
  }
}
origin: com.neotys.neoload/neoload-project

/**
 * Creates an immutable copy of a {@link Project} value.
 * Uses accessors to get values to initialize the new immutable instance.
 * If an instance is already immutable, it is returned as is.
 * @param instance The instance to copy
 * @return A copied immutable Project instance
 */
public static ImmutableProject copyOf(Project instance) {
 if (instance instanceof ImmutableProject) {
  return (ImmutableProject) instance;
 }
 return new Project.Builder()
   .from(instance)
   .build();
}
com.neotys.neoload.modelProject$Builder

Most used methods

  • name
  • <init>
  • addAllPopulations
  • addAllScenarios
  • addAllServers
  • addAllSharedElements
  • addAllUserPaths
  • addAllVariables
  • addUserPaths
  • build
  • from
  • putAllProjectSettings
  • from,
  • putAllProjectSettings

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now