Class Application

  • All Implemented Interfaces:
    Device, EnvironmentPart

    public class Application
    extends Object
    implements Device
    Application can represent data generator or every container connected to topology.
    • Constructor Detail

      • Application

        public Application​(String name)
        Instantiates a new Application.
        Parameters:
        name - the name
      • Application

        public Application​(String name,
                           String creator)
        Instantiates a new Application.
        Parameters:
        name - the name
        creator - the creator
    • Method Detail

      • executeCommand

        public String executeCommand​(String[] commandWithArgs)
        Execute command string.
        Parameters:
        commandWithArgs - the command with args
        Returns:
        the string
      • getName

        public String getName()
        Description copied from interface: Device
        Gets name.
        Specified by:
        getName in interface Device
        Returns:
        the name
      • getIPAddress

        public String getIPAddress()
        Description copied from interface: Device
        Gets ip address.
        Specified by:
        getIPAddress in interface Device
        Returns:
        the ip address
      • setIPAddress

        public void setIPAddress​(String ipAddress)
        Description copied from interface: Device
        Sets ip address.
        Specified by:
        setIPAddress in interface Device
        Parameters:
        ipAddress - the ip address
      • getConnectedNetworks

        public List<Network> getConnectedNetworks()
        Description copied from interface: Device
        Gets connected networks.
        Specified by:
        getConnectedNetworks in interface Device
        Returns:
        the connected networks
      • getManagementPort

        public Integer getManagementPort()
        Description copied from interface: Device
        Gets management port.
        Specified by:
        getManagementPort in interface Device
        Returns:
        the management port
      • setManagementPort

        public void setManagementPort​(Integer managementPort)
        Description copied from interface: Device
        Sets management port.
        Specified by:
        setManagementPort in interface Device
        Parameters:
        managementPort - the management port
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object