Class AdminObjectImpl

    • Field Detail

      • attachments

        protected transient Map<Class<?>,​Object> attachments
    • Constructor Detail

      • AdminObjectImpl

        public AdminObjectImpl()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: AdminObject
        Get the name for this AdminObject, usually the last component of the identifier.
        Specified by:
        getName in interface AdminObject
        Returns:
        String Name
      • setName

        public void setName​(String name)
      • getServerGroup

        public String getServerGroup()
      • getServerName

        public String getServerName()
      • getHostName

        public String getHostName()
      • setServerGroup

        public void setServerGroup​(String group)
      • setServerName

        public void setServerName​(String name)
      • setHostName

        public void setHostName​(String name)
      • getProperties

        public Properties getProperties()
        Description copied from interface: AdminObject
        Get the Configuration Properties that defines this process
        Specified by:
        getProperties in interface AdminObject
        Returns:
        Properties
      • setProperties

        public void setProperties​(Properties props)
      • getPropertiesMap

        public Map<String,​String> getPropertiesMap()
        Returns:
        a Map that is directly modifiable
      • getPropertyValue

        public String getPropertyValue​(String key)
        Description copied from interface: AdminObject
        Searches for the property with the specified key in this Admin Object. If the key is not found the method returns null.
        Specified by:
        getPropertyValue in interface AdminObject
        Parameters:
        key - the property key.
        Returns:
        the value in this Admin Object with the specified key value.
      • addProperty

        public void addProperty​(String key,
                                String value)
      • removeProperty

        public String removeProperty​(String key)
      • addAttchment

        @Deprecated
        public <T> T addAttchment​(Class<T> type,
                                  T attachment)
        Deprecated.
      • addAttachment

        public <T> T addAttachment​(Class<T> type,
                                   T attachment)
        Add attachment
        Type Parameters:
        T - the expected type
        Parameters:
        attachment - the attachment
        type - the type
        Returns:
        any previous attachment
        Throws:
        IllegalArgumentException - for a null name, attachment or type
        UnsupportedOperationException - when not supported by the implementation
      • removeAttachment

        public <T> T removeAttachment​(Class<T> type)
        Remove attachment
        Type Parameters:
        T - the expected type
        Parameters:
        type - the type
        Returns:
        the attachment or null if not present
        Throws:
        IllegalArgumentException - for a null name or type
      • getAttachment

        public <T> T getAttachment​(Class<T> type)
        Get attachment
        Type Parameters:
        T - the expected type
        Parameters:
        type - the type
        Returns:
        the attachment or null if not present
        Throws:
        IllegalArgumentException - for a null name or type