Top Inners Fields Constructors Methods
one.jpro.jmemorybuddy

public Class JMemoryBuddyLive

extends Object
Class Inheritance
Imports
java.util.*, java.util.stream.Collectors

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
pack-priv static Set<JMemoryBuddyLive.CollectableEntry>
pack-priv static int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static synchronized JMemoryBuddyLive.Report

Returns:

The report.
getReport
()

This clas provides a report, containing a list with details about object marked as collectable with markCollectable.

public static synchronized void
markCollectable(String name, Object ref)

This class can be used to mark objects as collectable.

private static synchronized void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

collectablesback to summary
pack-priv static Set<JMemoryBuddyLive.CollectableEntry> collectables
collectedEntriesback to summary
pack-priv static int collectedEntries

Constructor Detail

JMemoryBuddyLiveback to summary
public JMemoryBuddyLive()

Method Detail

getReportback to summary
public static synchronized JMemoryBuddyLive.Report getReport()

This clas provides a report, containing a list with details about object marked as collectable with markCollectable.

Returns:JMemoryBuddyLive.Report

The report.

markCollectableback to summary
public static synchronized void markCollectable(String name, Object ref)

This class can be used to mark objects as collectable. As long as this object isn't collected, it can be found by searching for the class AssertCollectableLive in the heap dump. It can also be found the report accessible by the method getReport.

removeCollectableback to summary
private static synchronized void removeCollectable(JMemoryBuddyLive.CollectableEntry entry)
one.jpro.jmemorybuddy back to summary

pack-priv Class JMemoryBuddyLive.AssertCollectableLive

extends WeakReferenceWithRunnable
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
Inherited from one.jpro.jmemorybuddy.CleanupDetector.WeakReferenceWithRunnable:
r

Constructor Summary

AccessConstructor and Description
pack-priv

Field Detail

nameback to summary
pack-priv String name

Constructor Detail

AssertCollectableLiveback to summary
pack-priv AssertCollectableLive(String name, Object ref, Runnable r)
one.jpro.jmemorybuddy back to summary

public Class JMemoryBuddyLive.CollectableEntry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public Date
public String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

collectableSinceback to summary
public Date collectableSince
nameback to summary
public String name

Constructor Detail

CollectableEntryback to summary
pack-priv CollectableEntry(Date time, String name)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
one.jpro.jmemorybuddy back to summary

public Class JMemoryBuddyLive.Report

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public int
public List<JMemoryBuddyLive.CollectableEntry>

Constructor Summary

AccessConstructor and Description
pack-priv
Report(int collectedEntries, List<JMemoryBuddyLive.CollectableEntry> uncollectedEntries)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

collectedEntriesback to summary
public int collectedEntries
uncollectedEntriesback to summary
public List<JMemoryBuddyLive.CollectableEntry> uncollectedEntries

Constructor Detail

Reportback to summary
pack-priv Report(int collectedEntries, List<JMemoryBuddyLive.CollectableEntry> uncollectedEntries)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override