Class PortStopEntry

java.lang.Object
org.netxms.client.PortStopEntry

public class PortStopEntry extends Object
Entry in port stop list. Defines a port that should be blocked from access.
  • Field Details

  • Constructor Details

    • PortStopEntry

      public PortStopEntry(int port, char protocol)
      Create new port stop entry.
      Parameters:
      port - port number (1-65535)
      protocol - protocol ('T' = TCP, 'U' = UDP, 'B' = Both)
    • PortStopEntry

      public PortStopEntry(NXCPMessage msg, long baseId)
      Create entry from NXCP message.
      Parameters:
      msg - NXCP message
      baseId - base variable ID
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg, long baseId)
      Fill NXCP message with entry data.
      Parameters:
      msg - NXCP message
      baseId - base variable ID
    • getPort

      public int getPort()
      Get port number.
      Returns:
      port number
    • setPort

      public void setPort(int port)
      Set port number.
      Parameters:
      port - port number (1-65535)
    • getProtocol

      public char getProtocol()
      Get protocol.
      Returns:
      protocol character ('T', 'U', or 'B')
    • setProtocol

      public void setProtocol(char protocol)
      Set protocol.
      Parameters:
      protocol - protocol character ('T' = TCP, 'U' = UDP, 'B' = Both)
    • isTcpBlocked

      public boolean isTcpBlocked()
      Check if TCP is blocked.
      Returns:
      true if TCP is blocked
    • isUdpBlocked

      public boolean isUdpBlocked()
      Check if UDP is blocked.
      Returns:
      true if UDP is blocked
    • getProtocolString

      public String getProtocolString()
      Get protocol as human-readable string.
      Returns:
      protocol string ("TCP", "UDP", or "TCP/UDP")
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also: