Class Instance


  • public final class Instance
    extends Object
    • Method Detail

      • getApplication

        public String getApplication()
        Returns the name of the application.
        Returns:
        the name of the application, may be null.
      • getUser

        public String getUser()
        Returns the name of the user.
        Returns:
        the name of the user, never null
      • getMachine

        public String getMachine()
        Returns the name of the machine.
        Returns:
        the name of the machine, never null
      • isLocal

        public boolean isLocal()
        Returns whether or not this instance is running on the local machine.
        Returns:
        true if local, false if remote
        Since:
        1.3
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • matches

        public boolean matches​(Map<String,​Object> query)
        Check if the instance matches all of the fields contained in the query. Only returns true if the query matches completely
        Parameters:
        query - contains fields that should match this instance's fields
        Returns:
        whether or not the instance completely matches the query
        Since:
        1.3