Brooklyn

brooklyn.management.internal
[Java] Interface UsageManager


@Beta
public interface UsageManager

Method Summary
ApplicationUsage getApplicationUsage(java.lang.String appId)

Returns the usage info for the application with the given id, or null if unknown.

java.util.Set getApplicationUsage(Predicate filter)

Returns the usage info that matches the given predicate.

LocationUsage getLocationUsage(java.lang.String locationId)

Returns the usage info for the location with the given id, or null if unknown.

java.util.Set getLocationUsage(Predicate filter)

Returns the usage info that matches the given predicate.

void recordApplicationEvent(Application app, Lifecycle state)

Adds this application event to the usage record for the given app (creating the usage record if one does not already exist).

void recordLocationEvent(Location loc, Lifecycle state)

Adds this location event to the usage record for the given location (creating the usage record if one does not already exist).

 

Method Detail

getApplicationUsage

public ApplicationUsage getApplicationUsage(java.lang.String appId)
Returns the usage info for the application with the given id, or null if unknown.


getApplicationUsage

public java.util.Set getApplicationUsage(Predicate filter)
Returns the usage info that matches the given predicate. For example, could be used to find applications used within a given time period.


getLocationUsage

public LocationUsage getLocationUsage(java.lang.String locationId)
Returns the usage info for the location with the given id, or null if unknown.


getLocationUsage

public java.util.Set getLocationUsage(Predicate filter)
Returns the usage info that matches the given predicate. For example, could be used to find locations used within a given time period.


recordApplicationEvent

public void recordApplicationEvent(Application app, Lifecycle state)
Adds this application event to the usage record for the given app (creating the usage record if one does not already exist).


recordLocationEvent

public void recordLocationEvent(Location loc, Lifecycle state)
Adds this location event to the usage record for the given location (creating the usage record if one does not already exist).


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.