Tabnine Logo
ServiceObjectGroup
Code IndexAdd Tabnine to your IDE (free)

How to use
ServiceObjectGroup
in
org.batfish.referencelibrary

Best Java code snippets using org.batfish.referencelibrary.ServiceObjectGroup (Showing top 6 results out of 315)

origin: batfish/batfish

 public ServiceObjectGroup toServiceObjectGroup() {
  return new ServiceObjectGroup(
    name, ImmutableSortedSet.copyOf(firstNonNull(services, ImmutableSet.of())));
 }
}
origin: batfish/batfish

public ServiceObjectGroupBean(ServiceObjectGroup group) {
 name = group.getName();
 services = ImmutableSet.copyOf(group.getServices());
}
origin: batfish/batfish

nnServiceObjectGroups.forEach(s -> s.checkUndefinedReferences(allServiceNames));
origin: batfish/batfish

 @Test
 public void conversionToAndFrom() {
  ServiceObjectGroup group = new ServiceObjectGroup("sog", ImmutableSortedSet.of("23"));
  ServiceObjectGroupBean bean = new ServiceObjectGroupBean(group);
  assertThat(new ServiceObjectGroupBean(bean.toServiceObjectGroup()), equalTo(bean));
 }
}
origin: batfish/batfish

@Test
public void constructorNonEmptyBook() {
 ReferenceBook book2 =
   ReferenceBook.builder("book2")
     .setAddressGroups(ImmutableList.of(new AddressGroup(ImmutableSortedSet.of(), "ag1")))
     .setFilterGroups(ImmutableList.of(new FilterGroup(ImmutableList.of(), "fg1")))
     .setInterfaceGroups(
       ImmutableList.of(new InterfaceGroup(ImmutableSortedSet.of(), "ig1")))
     .setServiceEndpoints(ImmutableList.of(new ServiceEndpoint("ag1", "se1", "so1")))
     .setServiceObjectGroups(
       ImmutableList.of(new ServiceObjectGroup("sog1", ImmutableSortedSet.of())))
     .setServiceObjects(
       ImmutableList.of(new ServiceObject(IpProtocol.TCP, "so1", new SubRange(2, 3))))
     .build();
 beanBookMatch(new ReferenceBookBean(book2), book2);
}
origin: batfish/batfish

 @Test
 public void toAddressBook() {
  ReferenceBookBean bean =
    new ReferenceBookBean(
      ReferenceBook.builder("book2")
        .setAddressGroups(
          ImmutableList.of(new AddressGroup(ImmutableSortedSet.of(), "ag1")))
        .setFilterGroups(ImmutableList.of(new FilterGroup(ImmutableList.of(), "fg1")))
        .setInterfaceGroups(
          ImmutableList.of(new InterfaceGroup(ImmutableSortedSet.of(), "ig1")))
        .setServiceEndpoints(ImmutableList.of(new ServiceEndpoint("ag1", "se1", "so1")))
        .setServiceObjectGroups(
          ImmutableList.of(new ServiceObjectGroup("sog1", ImmutableSortedSet.of())))
        .setServiceObjects(
          ImmutableList.of(new ServiceObject(IpProtocol.TCP, "so1", new SubRange(2, 3))))
        .build());

  beanBookMatch(bean, bean.toAddressBook());
 }
}
org.batfish.referencelibraryServiceObjectGroup

Most used methods

  • <init>
  • checkUndefinedReferences
  • getName
  • getServices

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now