Class OutOfMemAgent

  • All Implemented Interfaces:
    IComponentStep<java.lang.Void>

    public class OutOfMemAgent
    extends java.lang.Object
    implements IComponentStep<java.lang.Void>
    An agent used to provoke out-of-memory-errors fur testing platform robustness.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.Object> objects
      The list of memory-hogging objects.
    • Constructor Summary

      Constructors 
      Constructor Description
      OutOfMemAgent()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IFuture<java.lang.Void> execute​(IInternalAccess ia)
      Main behavior just accumulates 1MB-sized objects.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • objects

        protected java.util.List<java.lang.Object> objects
        The list of memory-hogging objects.
    • Constructor Detail

      • OutOfMemAgent

        public OutOfMemAgent()
    • Method Detail

      • execute

        public IFuture<java.lang.Void> execute​(IInternalAccess ia)
        Main behavior just accumulates 1MB-sized objects.
        Specified by:
        execute in interface IComponentStep<java.lang.Void>
        Returns:
        The result of the command.