|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MeasurementScheduleManagerLocal
A manager for MeasurementSchedules.
| Method Summary | |
|---|---|
void |
createSchedulesForExistingResources(ResourceType type,
MeasurementDefinition newDefinition)
Create MeasurementSchedules for existing resources hanging on newType. |
void |
disableAllDefaultCollections(Subject subject)
Disables all collection schedules for all measurement definitions. |
void |
disableAllSchedules(Subject subject)
Disables all collection schedules attached to all resources. |
void |
disableDefaultCollectionForMeasurementDefinitions(Subject subject,
int[] measurementDefinitionIds,
boolean updateSchedules)
Disables all collection schedules in the given measurement definition IDs. |
void |
disableMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds)
|
void |
disableSchedulesForAutoGroup(Subject subject,
int parentResourceId,
int childResourceType,
int[] measurementDefinitionIds)
Disable the measurement schedules for the passed definitions of the rsource ot the passed auto group. |
void |
disableSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds)
Disable the measurement schedules for the passed definitions for the resources of the passed compatible group. |
void |
disableSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds)
Disables all collection schedules attached to the given resource whose schedules are based off the given definitions. |
void |
enableMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds)
|
void |
enableSchedulesForAutoGroup(Subject subject,
int parentResourceId,
int childResourceType,
int[] measurementDefinitionIds)
Enable the measurement schedules for the passed definitions of the resource ot the passed auto group. |
void |
enableSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds)
Enable the measurement schedules for the passed definitions for the resources of the passed compatible group. |
void |
enableSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds)
Enable the schedules for the provided definitions and resource |
void |
errorCorrectSchedules()
This method should be called when it is determined that the data in the measurement schedule table might be corrupt. |
PageList<MeasurementScheduleComposite> |
findScheduleCompositesForResource(Subject subject,
int resourceId,
DataType dataType,
PageControl pageControl)
Retrieves the metric collection schedules for the given resource. |
PageList<MeasurementSchedule> |
findSchedulesByCriteria(Subject subject,
MeasurementScheduleCriteria criteria)
|
java.util.List<MeasurementSchedule> |
findSchedulesByIds(int[] ids)
Return a list of MeasurementSchedules for the given ids |
java.util.List<MeasurementSchedule> |
findSchedulesByResourceIdAndDefinitionIds(Subject subject,
int resourceId,
int[] definitionIds)
Return a list of MeasurementSchedules for the given definition ids and resource id. |
java.util.List<MeasurementSchedule> |
findSchedulesByResourceIdsAndDefinitionId(Subject subject,
int[] resourceIds,
int definitionId)
Find MeasurementSchedules that are attached to a certain definition and some resources |
PageList<MeasurementScheduleComposite> |
findSchedulesForAutoGroup(Subject subject,
int parentId,
int childType,
PageControl pageControl)
Get the MeasurementSchedule composites for an autogroup |
PageList<MeasurementScheduleComposite> |
findSchedulesForCompatibleGroup(Subject subject,
int groupId,
PageControl pageControl)
|
PageList<MeasurementScheduleComposite> |
findSchedulesForResource(Subject subject,
int resourceId,
PageControl pageControl)
Retrieves the metric collection schedules for the given resource. |
java.util.Set<ResourceMeasurementScheduleRequest> |
findSchedulesForResourceAndItsDescendants(int[] resourceIds,
boolean getDescendents)
Given a resource ID, this will return all schedule collections for all of the resource's measurements, including all measurements for the resource's children. |
java.util.List<MeasurementSchedule> |
findSchedulesForResourceAndType(Subject subject,
int resourceId,
DataType dataType,
DisplayType displayType,
boolean enabledOnly)
Determine the Schedules for a Resource and DataType. |
AgentClient |
getAgentClientForSchedule(MeasurementSchedule sched)
Get the AgentClient (the connection to the agent) that is associated with the given schedule. |
MeasurementSchedule |
getSchedule(Subject subject,
int resourceId,
int definitionId,
boolean attachBaseline)
Find MeasurementSchedules that are attached to a certain definition and a resource |
MeasurementSchedule |
getScheduleById(Subject subject,
int scheduleId)
Obtain a MeasurementSchedule by its Id after a check for a valid session |
int |
getScheduledMeasurementsPerMinute()
|
int |
insertSchedulesFor(int[] batchIds)
|
int |
returnSchedulesFor(int[] batchIds,
java.util.Set<ResourceMeasurementScheduleRequest> allSchedules)
|
void |
updateDefaultCollectionIntervalForMeasurementDefinitions(Subject subject,
int[] measurementDefinitionIds,
long collectionInterval,
boolean updateExistingSchedules)
(Re-)Enables all collection schedules in the given measurement definition IDs and sets their collection intervals. |
void |
updateMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds,
long collectionInterval)
|
void |
updateSchedule(Subject subject,
MeasurementSchedule schedule)
Reattach a Schedule to a PersitenceContext after a successful check for a valid session |
void |
updateSchedulesForAutoGroup(Subject subject,
int parentResourceId,
int childResourceType,
int[] measurementDefinitionIds,
long collectionInterval)
Enables all collection schedules attached to the given auto group whose schedules are based off the given definitions. |
void |
updateSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds,
long collectionInterval)
Enables all collection schedules attached to the given compatible group whose schedules are based off the given definitions. |
void |
updateSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds,
long collectionInterval)
Enables all collection schedules attached to the given resource whose schedules are based off the given definitions. |
| Method Detail |
|---|
java.util.Set<ResourceMeasurementScheduleRequest> findSchedulesForResourceAndItsDescendants(int[] resourceIds,
boolean getDescendents)
resourceIds - IDs of the resources whose measurements are to be returnedgetDescendents - if true, descendents will be loaded as well
AgentClient getAgentClientForSchedule(MeasurementSchedule sched)
AgentClient (the connection to the agent) that is associated with the given schedule.
sched - a MeasurementSchedule for which we need a connection to the Agent
AgentClient that can be used to communicate with the Agent
java.util.List<MeasurementSchedule> findSchedulesByResourceIdAndDefinitionIds(Subject subject,
int resourceId,
int[] definitionIds)
definitionIds - resourceId -
MeasurementSchedule getScheduleById(Subject subject,
int scheduleId)
subject - a session id that must be validscheduleId - The primary key of the Schedule
MeasurementSchedule getSchedule(Subject subject,
int resourceId,
int definitionId,
boolean attachBaseline)
throws MeasurementNotFoundException
subject - definitionId - The primary key of a MeasurementDefinitionresourceId - the id of the resourceattachBaseline - TODO
MeasurementNotFoundException
PageList<MeasurementScheduleComposite> findScheduleCompositesForResource(Subject subject,
int resourceId,
@Nullable
DataType dataType,
PageControl pageControl)
subject - the current userresourceId - a Resource iddataType - the data type to limit results to, or null to not limit results to a particular data typepageControl - the page control for the results
void disableDefaultCollectionForMeasurementDefinitions(Subject subject,
int[] measurementDefinitionIds,
boolean updateSchedules)
#disableSchedules(Subject, int[], int).
subject - measurementDefinitionIds - updateSchedules - TODOvoid disableAllDefaultCollections(Subject subject)
#disableAllMeasurementSchedules(Subject).
This is a highly disruptive method - it turns off monitoring for future resources. The user making this call must have global inventory and setting permissions to execute this.
subject - user that must have global inventory and setting rightsvoid disableAllSchedules(Subject subject)
disableAllDefaultCollections(Subject).
This is a highly disruptive method - it turns off monitoring for existing resources. The user making this call must have global inventory and setting permissions to execute this.
subject - user that must have global inventory and setting rights
void updateDefaultCollectionIntervalForMeasurementDefinitions(Subject subject,
int[] measurementDefinitionIds,
long collectionInterval,
boolean updateExistingSchedules)
subject - a valid subject that has Permission.MANAGE_SETTINGSmeasurementDefinitionIds - The primary keys for the definitionscollectionInterval - the new interval in millisconds for collectionupdateExistingSchedules - If true, then existing schedules for this definition will also be updated.
void updateSchedulesForAutoGroup(Subject subject,
int parentResourceId,
int childResourceType,
int[] measurementDefinitionIds,
long collectionInterval)
subject - Subject of the callermeasurementDefinitionIds - the definitions on which the schedules to update are basedparentResourceId - the Id of the parent resourcechildResourceType - the ID of the ResourceType of the children that form the autogroupcollectionInterval - the new interval
java.util.List<MeasurementSchedule> findSchedulesForResourceAndType(Subject subject,
int resourceId,
DataType dataType,
DisplayType displayType,
boolean enabledOnly)
subject - Subject of the callerresourceId - PK of the resource we're interested indataType - DataType of the desired results use null for no filteringdisplayType - the display type desired or null for no filteringenabledOnly - should we restrict the query to certain enablement state? null means "don't care".
int getScheduledMeasurementsPerMinute()
void disableSchedulesForAutoGroup(Subject subject,
int parentResourceId,
int childResourceType,
int[] measurementDefinitionIds)
subject - measurementDefinitionIds - parentResourceId - childResourceType -
void enableSchedulesForAutoGroup(Subject subject,
int parentResourceId,
int childResourceType,
int[] measurementDefinitionIds)
subject - measurementDefinitionIds - parentResourceId - childResourceType -
void createSchedulesForExistingResources(ResourceType type,
MeasurementDefinition newDefinition)
MeasurementSchedules for existing resources hanging on newType.
type - The ResourceType for which we want to add schedulesnewDefinition - The MeasurementDefinition where we derive the schedules from
int insertSchedulesFor(int[] batchIds)
throws java.lang.Exception
java.lang.Exception
int returnSchedulesFor(int[] batchIds,
java.util.Set<ResourceMeasurementScheduleRequest> allSchedules)
throws java.lang.Exception
java.lang.Exceptionvoid errorCorrectSchedules()
java.util.List<MeasurementSchedule> findSchedulesByIds(int[] ids)
ids - PrimaryKeys of the schedules searched
java.util.List<MeasurementSchedule> findSchedulesByResourceIdsAndDefinitionId(Subject subject,
int[] resourceIds,
int definitionId)
subject - A session id that must be validdefinitionId - The primary key of a MeasurementDefinitionresourceIds - primary of Resources wanted
PageList<MeasurementScheduleComposite> findSchedulesForAutoGroup(Subject subject,
int parentId,
int childType,
PageControl pageControl)
subject - parentId - childType - pageControl -
PageList<MeasurementScheduleComposite> findSchedulesForCompatibleGroup(Subject subject,
int groupId,
PageControl pageControl)
PageList<MeasurementScheduleComposite> findSchedulesForResource(Subject subject,
int resourceId,
PageControl pageControl)
subject - the current userresourceId - a Resource idpageControl - the page control for the results
void disableSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds)
subject - measurementDefinitionIds - resourceId -
void disableSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds)
void disableMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds)
void enableSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds)
subject - measurementDefinitionIds - resourceId -
void enableSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds)
void enableMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds)
void updateSchedule(Subject subject,
MeasurementSchedule schedule)
subject - A session id that must be validschedule - A MeasurementSchedule to persist.
void updateSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds,
long collectionInterval)
subject - measurementDefinitionIds - resourceId - collectionInterval -
void updateSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds,
long collectionInterval)
subject - Subject of the callermeasurementDefinitionIds - the definitions on which the schedules to update are basedgroupId - ID of the groupcollectionInterval - the new interval
void updateMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds,
long collectionInterval)
PageList<MeasurementSchedule> findSchedulesByCriteria(Subject subject,
MeasurementScheduleCriteria criteria)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||