Class Handshake

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Handshake
    extends de.desy.tine.structUtils.TTaggedStructure
    • Nested Class Summary

      • Nested classes/interfaces inherited from class de.desy.tine.structUtils.TTaggedStructure

        de.desy.tine.structUtils.TTaggedStructure.structField, de.desy.tine.structUtils.TTaggedStructure.TaggedStructureField
    • Field Summary

      • Fields inherited from class de.desy.tine.structUtils.TTaggedStructure

        registered
    • Constructor Summary

      Constructors 
      Constructor Description
      Handshake()
      Construct a new Handshake.
      Handshake​(java.lang.String name, java.lang.String path, int uid, int pid, boolean parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPath()  
      int getPID()  
      java.lang.String getProcessName()  
      int getUID()  
      boolean isParent()  
      void setParent​(boolean isParent)
      Mark the handshake as if this application is the parent application of the monitored application.
      void setPath​(java.lang.String path)  
      void setPID​(int pid)  
      void setProcessName​(java.lang.String processName)  
      void setUID​(int uid)  
      • Methods inherited from class de.desy.tine.structUtils.TTaggedStructure

        addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addFieldsFrom, addFieldsFrom, clone, fixExtendedBytes, getByteArray, getExtendedOffset, getExtendedSizeInBytes, getFieldNames, getFields, getFieldValue, getName, getNextFieldIndex, getSizeInBytes, hasExtendedSpace, initDone, setArraySeparator, setExtendedOffset, setFieldSeparator, toByteArray, toExtendedByteArray, toString, toString, toString, toStruct, toStruct
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Handshake

        public Handshake()
        Construct a new Handshake.
      • Handshake

        public Handshake​(java.lang.String name,
                         java.lang.String path,
                         int uid,
                         int pid,
                         boolean parent)
    • Method Detail

      • getProcessName

        public java.lang.String getProcessName()
        Returns:
        the name
      • getPath

        public java.lang.String getPath()
        Returns:
        the path
      • getUID

        public int getUID()
        Returns:
        the uid of the application
      • getPID

        public int getPID()
        Returns:
        the pid of the application
      • isParent

        public boolean isParent()
        Returns:
        true if the application is parent of the monitored application or false otherwise
      • setProcessName

        public void setProcessName​(java.lang.String processName)
        Parameters:
        processName - the name of the process
      • setPath

        public void setPath​(java.lang.String path)
        Parameters:
        path - the path to the process exe (the exe file included)
      • setUID

        public void setUID​(int uid)
        Parameters:
        uid - the application unique id
      • setPID

        public void setPID​(int pid)
        Parameters:
        pid - the pid of the application
      • setParent

        public void setParent​(boolean isParent)
        Mark the handshake as if this application is the parent application of the monitored application. In this case the given pid is the pid of the parent, and the child processes are searched for
        Parameters:
        isParent - true if this is a parent or false otherwise