Class InterfaceServiceImpl

    • Constructor Detail

      • InterfaceServiceImpl

        public InterfaceServiceImpl()
    • Method Detail

      • create

        public InterfaceAttachment create​(String serverId,
                                          String portId)
        Description copied from interface: InterfaceService
        Creates and uses a port interface to attach the port to a server instance.
        Specified by:
        create in interface InterfaceService
        Parameters:
        serverId - the server id
        portId - the port id to attach
        Returns:
        the attached interface
      • get

        public InterfaceAttachment get​(String serverId,
                                       String attachmentId)
        Description copied from interface: InterfaceService
        Shows information about a specified port interface
        Specified by:
        get in interface InterfaceService
        Parameters:
        serverId - the server id
        attachmentId - the attachment identifier
        Returns:
        the interface attachment
      • detach

        public ActionResponse detach​(String serverId,
                                     String attachmentId)
        Description copied from interface: InterfaceService
        Detaches a specified port interface
        Specified by:
        detach in interface InterfaceService
        Parameters:
        serverId - the server id
        attachmentId - the attachment identifier
        Returns:
        the action response indicating success or failure