|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessSignature
Represents a set of rules to detect the existence of a specific process.
Method Summary | |
---|---|
java.lang.String |
getCmdLine()
Returns the string that identifies this process if found in the command line. |
java.lang.String |
getName()
Returns the name of this ProcessSignature object. |
java.lang.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(java.lang.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,
java.lang.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(java.lang.String cmdLine)
Sets the string that identifies this process if found in the command line. |
ProcessSignature |
withPorts(java.lang.String... ports)
Sets the ports that are part of the detection of the process represented by this object. |
Method Detail |
---|
java.lang.String getName()
java.lang.String[] getPorts()
java.lang.String getCmdLine()
boolean isRequired()
boolean isPortsRequired()
void setPorts(boolean isRequired, java.lang.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(java.lang.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(java.lang.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(java.lang.String... ports)
void setIsPortsRequired(boolean isPortReq)
isPortReq
- true if required.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |