Class MBeanRepository<O>

Type Parameters:
O - the generic type
All Implemented Interfaces:
MBeanService, MonitorCallback, Closeable, AutoCloseable, Runnable
Direct Known Subclasses:
MailMBean, MoverServer.DownloadRepository, StorageRepository, TransferScheduler.DestinationThread

public abstract class MBeanRepository<O> extends MBeanScheduler
The Class MBeanRepository.
  • Constructor Details Link icon

    • MBeanRepository Link icon

      public MBeanRepository(String group, String name)
      Instantiates a new m bean repository.
      Parameters:
      group - the group
      name - the name
    • MBeanRepository Link icon

      public MBeanRepository(String name)
      Instantiates a new m bean repository.
      Parameters:
      name - the name
  • Method Details Link icon

    • clear Link icon

      public void clear()
      Clear.
    • getKey Link icon

      public String getKey(O object)
      Gets the key.
      Parameters:
      object - the object
      Returns:
      the key
    • getStatus Link icon

      public String getStatus(O object)
      Gets the status.
      Parameters:
      object - the object
      Returns:
      the status
    • setComparator Link icon

      public void setComparator(Comparator<O> comparator)
      Sets the comparator.
      Parameters:
      comparator - the new comparator
    • setMaxAuthorisedSize Link icon

      public void setMaxAuthorisedSize(int maxAuthorisedSize)
      Sets the max authorised size.
      Parameters:
      maxAuthorisedSize - the max authorised size
    • getComparator Link icon

      public Comparator<O> getComparator()
      Gets the comparator.
      Returns:
      the comparator
    • setWakeup Link icon

      public void setWakeup(boolean wakeup)
      Sets the wakeup.
      Parameters:
      wakeup - the new wakeup
    • getWakeup Link icon

      public boolean getWakeup()
      Gets the wakeup.
      Returns:
      the wakeup
    • getStatus Link icon

      public String getStatus()
      Gets the status.
      Returns:
      the status
    • getList Link icon

      public List<O> getList()
      Gets the list.
      Returns:
      the list
    • getSize Link icon

      public int getSize()
      Gets the size.
      Returns:
      the size
    • getList Link icon

      public List<O> getList(Comparator<O> comparator)
      Gets the list.
      Parameters:
      comparator - the comparator
      Returns:
      the list
    • sort Link icon

      public List<O> sort(List<O> list)
      Sorts the list.
      Parameters:
      list - the list
      Returns:
      the list
    • getMBeanInfo Link icon

      public MBeanInfo getMBeanInfo()
      Gets the MBean info. Gets the MBean info. Gets the MBean info.
      Specified by:
      getMBeanInfo in interface MBeanService
      Overrides:
      getMBeanInfo in class MBeanScheduler
      Returns:
      the MBean info
    • invoke Link icon

      public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException
      Invoke. Invoke. Invoke.
      Specified by:
      invoke in interface MBeanService
      Overrides:
      invoke in class MBeanScheduler
      Parameters:
      operationName - the operation name
      params - the params
      signature - the signature
      Returns:
      the object
      Throws:
      NoSuchMethodException - the no such method exception
      MBeanException - the MBean exception
    • getAttribute Link icon

      public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException
      Gets the attribute. Gets the attribute. Gets the attribute.
      Specified by:
      getAttribute in interface MBeanService
      Overrides:
      getAttribute in class MBeanScheduler
      Parameters:
      attributeName - the attribute name
      Returns:
      the attribute
      Throws:
      AttributeNotFoundException - the attribute not found exception
      MBeanException - the MBean exception
    • put Link icon

      public void put(O object)
      Puts the object.
      Parameters:
      object - the object
    • removeValue Link icon

      public O removeValue(O object)
      Removes the value.
      Parameters:
      object - the object
      Returns:
      the o
    • removeKey Link icon

      public O removeKey(String key)
      Removes the key.
      Parameters:
      key - the key
      Returns:
      the o
    • containsValue Link icon

      public boolean containsValue(O object)
      Contains value.
      Parameters:
      object - the object
      Returns:
      true, if successful
    • containsKey Link icon

      public boolean containsKey(String key)
      Contains key.
      Parameters:
      key - the key
      Returns:
      true, if successful
    • getValue Link icon

      public O getValue(String key)
      Gets the value.
      Parameters:
      key - the key
      Returns:
      the value