public interface ProcessSignature extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getCmdLine()
Returns the string that identifies this process if found in the command line.
|
String |
getName()
Returns the name of this ProcessSignature object.
|
String[] |
getPorts()
Returns the ports that are part of the definition of this process.
|
boolean |
isPortsRequired()
Checks whether the ports are required for the detection of this ProcessSignature.
|
boolean |
isRequired()
Checks whether this ProcessSignature is required for the detection of the
SoftwareSignature it belongs.
|
ProcessSignature |
notRequired()
Sets this ProcessSignature to be optional for the detection of the SoftwareSignature
it belongs to.
|
ProcessSignature |
required()
Sets this ProcessSignature to be required for the detection of the SoftwareSignature
it belongs to.
|
void |
setCmdLine(String cmdLine)
Sets the string that identifies this process if found in the command line.
|
void |
setIsPortsRequired(boolean isPortReq)
Sets the ports that are part of the detection to be required or optional.
|
void |
setPorts(boolean isRequired,
String... ports)
Sets the ports that are part of the detection of the process represented by this object.
|
void |
setRequired(boolean isRequired)
Sets whether this ProcessSignature is required for the detection of the SoftwareSignature
it belongs to.
|
ProcessSignature |
withCmdLine(String cmdLine)
Sets the string that identifies this process if found in the command line.
|
ProcessSignature |
withPorts(String... ports)
Sets the ports that are part of the detection of the process represented by this object.
|
String getName()
String[] getPorts()
String getCmdLine()
boolean isRequired()
boolean isPortsRequired()
void setPorts(boolean isRequired, String... ports)
isRequired
- If true, the ports have to be detected for the identification of this process.
If false - the ports are optional.ports
- the ports that are part of the detection process.void setCmdLine(String cmdLine)
cmdLine
- the string to find in the command line string.void setRequired(boolean isRequired)
isRequired
- true if this ProcessSignature is required to the detection of the
SoftwareSignature it belongs to.ProcessSignature withCmdLine(String cmdLine)
cmdLine
- a string which should be scanned in the command line in order to detect the process.ProcessSignature required()
ProcessSignature notRequired()
ProcessSignature withPorts(String... ports)
void setIsPortsRequired(boolean isPortReq)
isPortReq
- true if required. Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.