public interface AvailabilityManagerLocal extends AvailabilityManagerRemote
| Modifier and Type | Method and Description |
|---|---|
List<AvailabilityPoint> |
findAvailabilitiesForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
long begin,
long end,
int points,
boolean withCurrentAvailability)
Get the individual availability data points for the given auto group.
|
List<AvailabilityPoint> |
findAvailabilitiesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int points,
boolean withCurrentAvailability)
Get the individual availability data points for the given resource.
|
List<AvailabilityPoint> |
findAvailabilitiesForResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
long begin,
long end,
int points,
boolean withCurrentAvailability)
Get the individual availability data points for the given resource group.
|
List<org.rhq.core.domain.measurement.Availability> |
findAvailabilityWithinInterval(int resourceId,
Date startDate,
Date endDate)
Deprecated.
|
org.rhq.core.domain.measurement.AvailabilityType |
getCurrentAvailabilityTypeForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Indicates if the given resource is currently up (i.e.
|
void |
mergeAvailabilitiesInNewTransaction(List<org.rhq.core.domain.measurement.Availability> availabilities,
org.rhq.enterprise.server.measurement.AvailabilityManagerBean.MergeInfo mergeInfo)
Internal use only.
|
boolean |
mergeAvailabilityReport(org.rhq.core.domain.discovery.AvailabilityReport report)
Merge an
AvailabilityReport that has been received from an agent. |
int |
purgeAvailabilities(long oldest)
Purges all availabilities that are old.
|
void |
updateAgentResourceAvailabilities(int agentId,
org.rhq.core.domain.measurement.AvailabilityType platformAvailabilityType,
org.rhq.core.domain.measurement.AvailabilityType childAvailabilityType)
Update availabilities for all resources managed by the given agent to the given availability type (which may be
null to indicate unknown). |
void |
updateLastAvailabilityReportInNewTransaction(int agentId)
Executing this method will update the given agent's lastAvailabilityReport time
in a new transaction
|
findAvailabilityByCriteria, findAvailabilityForResource, getCurrentAvailabilityForResourceint purgeAvailabilities(long oldest)
oldest time is the epoch milliseconds of the oldest
availability that is to be retained. The end time is the time that is examined.
No availability row with a null end time will ever be purged.oldest - oldest time (in epoch milliseconds) to retain; older records get purgedorg.rhq.core.domain.measurement.AvailabilityType getCurrentAvailabilityTypeForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - resourceId - List<AvailabilityPoint> findAvailabilitiesForResource(org.rhq.core.domain.auth.Subject subject, int resourceId, long begin, long end, int points, boolean withCurrentAvailability)
subject - resourceId - PK of the resource wantedbegin - start time for data we are interested inend - end time for data we are interested inpoints - number of data points to returnwithCurrentAvailability - if true, the last data point in the range will match the resource's current
availability no matter whatList<AvailabilityPoint> findAvailabilitiesForResourceGroup(org.rhq.core.domain.auth.Subject subject, int groupId, long begin, long end, int points, boolean withCurrentAvailability)
subject - groupId - PK of the resource group wantedbegin - start time for data we are interested inend - end time for data we are interested inpoints - number of data points to returnwithCurrentAvailability - if true, the last data point in the range will match the resource group's current
availability no matter whatList<AvailabilityPoint> findAvailabilitiesForAutoGroup(org.rhq.core.domain.auth.Subject subject, int parentResourceId, int resourceTypeId, long begin, long end, int points, boolean withCurrentAvailability)
subject - parentResourceId - PK of the parent resource of the auto group wantedresourceTypeId - PK of the resource type of the auto group wantedbegin - start time for data we are interested inend - end time for data we are interested inpoints - number of data points to returnwithCurrentAvailability - if true, the last data point in the range will match the autogroup's current
availability no matter whatboolean mergeAvailabilityReport(org.rhq.core.domain.discovery.AvailabilityReport report)
AvailabilityReport that has been received from an agent. A report will only contain those
availabilities that have changed since the agent's last sent report. Note that if an agent has been restarted, it
will always send a full report as its first. An agent is obliged to sent at least one availability record in the
report in order for the server to determine which agent is sending the report (since a record has a Resource in
it and from any Resource we can dsetermine the Agent).report - the report containing 1 or more availabilities for 1 or more resources.true, this indicates everything seems OK - the server merged everything successfully and
the server and agent seem to be in sync with each. If false, the server thinks something
isn't right and it may be out of sync with the agent. When false is returned, the caller
should send in a full availability report the next time in order to ensure the server and agent
are in sync. true should always be returned if the given availability report is already a
full report.void mergeAvailabilitiesInNewTransaction(List<org.rhq.core.domain.measurement.Availability> availabilities, org.rhq.enterprise.server.measurement.AvailabilityManagerBean.MergeInfo mergeInfo)
availabilities - mergeInfo - void updateLastAvailabilityReportInNewTransaction(int agentId)
agentId - the id of the agentvoid updateAgentResourceAvailabilities(int agentId,
org.rhq.core.domain.measurement.AvailabilityType platformAvailabilityType,
org.rhq.core.domain.measurement.AvailabilityType childAvailabilityType)
null to indicate unknown). NOTE: This does not include the top-level platform resource for
the agent. To update a single resource avail see #updateResourceAvailability(Subject, Availability).agentId - all resources managed by this agent will have their availabilities changedplatformAvailabilityType - the type that the agent's top level platform resource will havechildAvailabilityType - the type that the agent's child resources will have@Deprecated List<org.rhq.core.domain.measurement.Availability> findAvailabilityWithinInterval(int resourceId, Date startDate, Date endDate)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.