Skip navigation links
A B C D E F G H I N O R S T V 

A

AbstractAgent - Class in net.obvj.agents
A common interface for all managed agents
AbstractAgent.State - Enum in net.obvj.agents
 
afterRun() - Method in class net.obvj.agents.CronAgent
 
afterRun() - Method in class net.obvj.agents.TimerAgent
 
Agent - Annotation Type in net.obvj.agents.annotation
Identifies the annotated class as an Agent.
AgentConfiguration - Class in net.obvj.agents.conf
An object that parses and stores the configuration data for a particular agent.
agentConfiguration(String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates an AgentConfigurationException with a formatted message.
agentConfiguration(Throwable, String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates an AgentConfigurationException with a cause and a formatted message.
AgentConfiguration.Builder - Class in net.obvj.agents.conf
An AgentConfiguration builder.
AgentConfiguration.Source - Enum in net.obvj.agents.conf
Enumerates supported configuration sources and their precedence levels.
AgentConfigurationException - Exception in net.obvj.agents.exception
An exception that can be thrown in cases of bad agent configuration.
AgentConfigurationException(String) - Constructor for exception net.obvj.agents.exception.AgentConfigurationException
Constructs an AgentConfigurationException with the specified detail message.
AgentConfigurationException(String, Throwable) - Constructor for exception net.obvj.agents.exception.AgentConfigurationException
Constructs a new exception with the specified detail message and cause.
AgentConfigurationException(Throwable) - Constructor for exception net.obvj.agents.exception.AgentConfigurationException
Constructs a new exception with the specified cause and a detail message of {@code (cause==null ?
AgentFactory - Class in net.obvj.agents.util
A factory that creates AbstractAgent objects based on given AgentConfiguration.
AgentManager - Class in net.obvj.agents
A component that provides methods for Agents maintenance.
AgentManager() - Constructor for class net.obvj.agents.AgentManager
 
agentRuntime(String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates an AgentRuntimeException with a formatted message.
agentRuntime(Throwable, String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates an AgentRuntimeException with a cause and a formatted message.
AgentRuntimeException - Exception in net.obvj.agents.exception
An exception that can be thrown by agents at runtime.
AgentRuntimeException(String) - Constructor for exception net.obvj.agents.exception.AgentRuntimeException
Constructs an AgentRuntimeException with the specified detail message.
AgentRuntimeException(String, Throwable) - Constructor for exception net.obvj.agents.exception.AgentRuntimeException
Constructs a new exception with the specified detail message and cause.
AgentRuntimeException(Throwable) - Constructor for exception net.obvj.agents.exception.AgentRuntimeException
Constructs a new exception with the specified cause and a detail message of {@code (cause==null ?
AgentThreadFactory - Class in net.obvj.agents.util
An object that creates new threads for SMART agents.
AgentThreadFactory(String) - Constructor for class net.obvj.agents.util.AgentThreadFactory
Creates a new thread factory for the agent identified by the given name.
AgentType - Enum in net.obvj.agents
Enumerates available Agent types and associated facilities.
AnnotatedAgent - Class in net.obvj.agents.impl
An object that prepares and holds the required metadata and infrastructure for the execution of an object annotated as @Agent.
AnnotatedAgent(AgentConfiguration) - Constructor for class net.obvj.agents.impl.AnnotatedAgent
Validates annotations and prepares all objects for execution.
AnnotatedAgentScanner - Class in net.obvj.agents.util
Contains methods for scanning package(s) to find annotated agents.
AnnotatedCronAgent - Class in net.obvj.agents.impl
A CronAgent that runs an object annotated with @Agent.
AnnotatedCronAgent(AgentConfiguration) - Constructor for class net.obvj.agents.impl.AnnotatedCronAgent
 
AnnotatedTimerAgent - Class in net.obvj.agents.impl
A TimerAgent that runs an object annotated with @Agent.
AnnotatedTimerAgent(AgentConfiguration) - Constructor for class net.obvj.agents.impl.AnnotatedTimerAgent
Creates a new AnnotatedTimerAgent for the given AgentConfiguration.
AnnotationUtils - Class in net.obvj.agents.util
Utility methods for working with annotations and package scanning.
AnnotationUtils.MethodFilter - Enum in net.obvj.agents.util
Enumerates applicable method filters.
ApplicationContextFacade - Class in net.obvj.agents.util
A facade for the Application Context holding the components required by this project.

B

build() - Method in class net.obvj.agents.conf.AgentConfiguration.Builder
 
Builder(AgentType) - Constructor for class net.obvj.agents.conf.AgentConfiguration.Builder
Provides a new AgentConfiguration builder.

C

className(String) - Method in class net.obvj.agents.conf.AgentConfiguration.Builder
 
convert(long, TimeUnit) - Method in enum net.obvj.agents.util.TimeUnit
Converts the given time duration from a source Time Unit to this Time Unit.
create(AgentConfiguration) - Static method in class net.obvj.agents.util.AgentFactory
Creates a new agent instance from the given AgentConfiguration.
CronAgent - Class in net.obvj.agents
An agent that runs a particular task at specified times and dates, similar to the Cron service available in Unix/Linux systems.

D

DateUtils - Class in net.obvj.agents.util
Utility methods for working with dates
DEFAULT - Static variable in enum net.obvj.agents.util.TimeUnit
The default time unit

E

equals(Object) - Method in class net.obvj.agents.conf.AgentConfiguration
 
equals(Object) - Method in class net.obvj.agents.util.TimeInterval
 
Exceptions - Class in net.obvj.agents.util
Shorthands creating exceptions with a formatted message.

F

findAgentByName(String) - Method in class net.obvj.agents.AgentManager
Searches and returns the agent with the specified name in this manager's scope.
findByIdentifier(String) - Static method in enum net.obvj.agents.util.TimeUnit
Returns a TimeUnit that is identifiable by the given string.
findClassesWithAnnotation(Class<? extends Annotation>, String) - Static method in class net.obvj.agents.util.AnnotationUtils
Scans the class path from a base package to find classes annotated with a given annotation.
formatDate(Calendar) - Static method in class net.obvj.agents.util.DateUtils
Formats the given calendar using a standardized date format.
formatDate(ZonedDateTime) - Static method in class net.obvj.agents.util.DateUtils
Formats the given ZonedDateTime using a standardized date format.
formatDate(Date) - Static method in class net.obvj.agents.util.DateUtils
Formats the given date using a standardized date format.
fromAnnotatedClass(Class<?>) - Static method in class net.obvj.agents.conf.AgentConfiguration
Parses the agent configuration by checking the Agent annotation in the specified class.

G

getAgentClass() - Method in class net.obvj.agents.impl.AnnotatedAgent
 
getAgentInstance() - Method in class net.obvj.agents.impl.AnnotatedAgent
 
getAgents() - Method in class net.obvj.agents.AgentManager
 
getAgentStatusStr(String) - Method in class net.obvj.agents.AgentManager
Returns a string containing agent status information for reporting.
getAverageRunDuration() - Method in class net.obvj.agents.AbstractAgent
 
getBean(Class<T>) - Static method in class net.obvj.agents.util.ApplicationContextFacade
Return the bean instance that uniquely matches the given object type.
getCalendarConstant() - Method in enum net.obvj.agents.util.TimeUnit
Returns the Calendar constant associated with this Time Unit.
getClassName() - Method in class net.obvj.agents.conf.AgentConfiguration
 
getClonedCalendar(Calendar) - Static method in class net.obvj.agents.util.DateUtils
Creates and returns a clone of the given calendar object.
getConfiguration() - Method in class net.obvj.agents.AbstractAgent
 
getCronExpression() - Method in class net.obvj.agents.CronAgent
 
getDefaultInterval() - Method in enum net.obvj.agents.AgentType
Returns the default interval for an agent type.
getDuration() - Method in class net.obvj.agents.util.TimeInterval
Returns the duration of this TimeUnit.
getFactoryFunction() - Method in enum net.obvj.agents.AgentType
Returns the default factory Function to be applied for instantiating new agents of this type.
getHighestPrecedenceConfiguration(Collection<AgentConfiguration>) - Static method in class net.obvj.agents.conf.AgentConfiguration
Returns the AgentConfiguration with the highest precedence level among the objects in the specified Collection.
getHighestPrecedenceSource(AgentConfiguration.Source...) - Static method in enum net.obvj.agents.conf.AgentConfiguration.Source
Returns the source with the highest precedence level among the specified sources
getInstance() - Static method in class net.obvj.agents.AgentManager
Returns the managed instance of this component.
getInterval() - Method in class net.obvj.agents.conf.AgentConfiguration
 
getInterval() - Method in class net.obvj.agents.TimerAgent
Returns the interval configured for this TimerAgent.
getLastRunDate() - Method in class net.obvj.agents.AbstractAgent
 
getName() - Method in class net.obvj.agents.AbstractAgent
 
getName() - Method in class net.obvj.agents.conf.AgentConfiguration
 
getNextExactDateEveryInterval(int, TimeUnit) - Static method in class net.obvj.agents.util.DateUtils
Return the next exact date for a given interval and time unit after the current time.
getNextExactDateEveryInterval(int, TimeUnit, Date) - Static method in class net.obvj.agents.util.DateUtils
Return the next exact date given a specific interval and time unit after the specified date.
getNextExactDateEveryInterval(int, TimeUnit, Calendar) - Static method in class net.obvj.agents.util.DateUtils
Return the next exact date given a specific interval and time unit after the specified Calendar instance.
getNextExecutionDate() - Method in class net.obvj.agents.CronAgent
 
getPrecedence() - Method in enum net.obvj.agents.conf.AgentConfiguration.Source
Returns the precedence level for this source, ordered from highest to lowest, so that higher-level sources have more precedence/importance than the other ones.
getRunMethod() - Method in class net.obvj.agents.impl.AnnotatedAgent
 
getSinglePublicMethodWithAnnotation(Class<? extends Annotation>, Class<?>) - Static method in class net.obvj.agents.util.AnnotationUtils
Returns the public method of the given class that is annotated with the given annotation, provided that only a single method containing this annotation exists in the class.
getSinglePublicMethodWithAnnotation(Class<? extends Annotation>, Class<?>, AnnotationUtils.MethodFilter) - Static method in class net.obvj.agents.util.AnnotationUtils
Returns the public method of the given class that is annotated with the given annotation, provided that only a single method containing this annotation exists in the class.
getSource() - Method in class net.obvj.agents.conf.AgentConfiguration
 
getStartDate() - Method in class net.obvj.agents.AbstractAgent
 
getState() - Method in class net.obvj.agents.AbstractAgent
 
getStatusString() - Method in class net.obvj.agents.AbstractAgent
 
getStatusString() - Method in class net.obvj.agents.CronAgent
 
getStatusString() - Method in class net.obvj.agents.TimerAgent
 
getTimeUnit() - Method in class net.obvj.agents.util.TimeInterval
Returns the TimeUnit associated with this TimeInterval.
getType() - Method in class net.obvj.agents.AbstractAgent
 
getType() - Method in class net.obvj.agents.conf.AgentConfiguration
 

H

hashCode() - Method in class net.obvj.agents.conf.AgentConfiguration
 
hashCode() - Method in class net.obvj.agents.util.TimeInterval
Returns a hash code value for the object, to support hash tables.

I

illegalArgument(String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates an IllegalArgumentException with a formatted message.
illegalArgument(Throwable, String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates an IllegalArgumentException with a cause and a formatted message.
illegalState(String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates an IllegalStateException with a formatted message.
illegalState(Throwable, String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates an IllegalStateException with a cause and a formatted message.
interval(String) - Method in class net.obvj.agents.conf.AgentConfiguration.Builder
 
invalidClass(String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates a InvalidClassException with a formatted message.
invalidClass(Throwable, String, Object...) - Static method in class net.obvj.agents.util.Exceptions
Creates a InvalidClassException with a cause and a formatted message.
InvalidClassException - Exception in net.obvj.agents.exception
An exception that can be thrown in cases of invalid class setup.
InvalidClassException(String) - Constructor for exception net.obvj.agents.exception.InvalidClassException
Constructs a new InvalidClassException with the specified detail message.
InvalidClassException(String, Throwable) - Constructor for exception net.obvj.agents.exception.InvalidClassException
Constructs a new InvalidClassException with the specified detail message and cause.
InvalidClassException(Throwable) - Constructor for exception net.obvj.agents.exception.InvalidClassException
Constructs a new InvalidClassException with the specified cause and a detail message of {@code (cause==null ?
isAgentRunning(String) - Method in class net.obvj.agents.AgentManager
Returns a flag indicating whether an agent is running or not.
isAgentStarted(String) - Method in class net.obvj.agents.AgentManager
Returns a flag indicating whether an agent is started or not.
isIdentifiableBy(String) - Method in enum net.obvj.agents.util.TimeUnit
Checks a given string against a list of known identifiers for a TimeUnit, returning true if a match is found.
isRunning() - Method in class net.obvj.agents.AbstractAgent
 
isStarted() - Method in class net.obvj.agents.AbstractAgent
 
isStopped() - Method in class net.obvj.agents.AbstractAgent
 

N

name(String) - Method in class net.obvj.agents.conf.AgentConfiguration.Builder
 
net.obvj.agents - package net.obvj.agents
The base package.
net.obvj.agents.annotation - package net.obvj.agents.annotation
Provides annotations for agents setup.
net.obvj.agents.conf - package net.obvj.agents.conf
Provides classes for working with agents configuration.
net.obvj.agents.exception - package net.obvj.agents.exception
Provides custom exceptions for proper error handling, whether on agents setup, configuration, or runtime.
net.obvj.agents.impl - package net.obvj.agents.impl
Provides mainly internal classes for agents runtime.
net.obvj.agents.util - package net.obvj.agents.util
Provides utility classes in general.
newThread(Runnable) - Method in class net.obvj.agents.util.AgentThreadFactory
Constructs a new Thread.
now() - Static method in class net.obvj.agents.util.DateUtils
Returns the current date-time as a ZonedDateTime, using the system clock.

O

of(String) - Static method in class net.obvj.agents.util.TimeInterval
Builds a TimerInterval by parsing the given string.
onStart() - Method in class net.obvj.agents.AbstractAgent
 
onStart() - Method in class net.obvj.agents.CronAgent
Starts this agent schedule considering the Cron expression.
onStart() - Method in class net.obvj.agents.TimerAgent
Starts this agent timer considering the interval settled in this object for execution.
onStop() - Method in class net.obvj.agents.AbstractAgent
 
onStop() - Method in class net.obvj.agents.CronAgent
 
onStop() - Method in class net.obvj.agents.TimerAgent
Terminates this agent timer gracefully.

R

removeAgent(String) - Method in class net.obvj.agents.AgentManager
Removes an agent identified by the given name, if it is not started
resetAgent(String) - Method in class net.obvj.agents.AgentManager
Creates a new instance of the agent identified by the given name.
run() - Method in class net.obvj.agents.AbstractAgent
The method called by the system to execute the agent task automatically.
run(boolean) - Method in class net.obvj.agents.AbstractAgent
 
Run - Annotation Type in net.obvj.agents.annotation
Identifies the annotated method as the one to be executed for a class annotated with @Agent.
runAgentTask() - Method in class net.obvj.agents.impl.AnnotatedAgent
Invokes the method annotated as @Run for the agent.
runNow(String) - Method in class net.obvj.agents.AgentManager
Posts immediate execution of the agent identified by the given name.

S

scanPackage(String) - Method in class net.obvj.agents.AgentManager
Scans the specified base package for agent candidates.
scanPackage(String) - Static method in class net.obvj.agents.util.AnnotatedAgentScanner
Scans the specified base package for agents.
start() - Method in class net.obvj.agents.AbstractAgent
Starts this agent timer considering the interval settled in this object for execution.
startAgent(String) - Method in class net.obvj.agents.AgentManager
Starts the agent identified by the given name.
startAllAgents() - Method in class net.obvj.agents.AgentManager
 
stop() - Method in class net.obvj.agents.AbstractAgent
Suspends this agent.
stopAgent(String) - Method in class net.obvj.agents.AgentManager
Posts a graceful stop request for the agent identified by the given name.

T

TimeInterval - Class in net.obvj.agents.util
An object that represents a time interval, which consists of a duration and a TimeUnit, with advanced text parsing logic.
TimeInterval(int, TimeUnit) - Constructor for class net.obvj.agents.util.TimeInterval
Builds a TimeInterval with a given duration and TimeUnit.
TimeInterval(TimeInterval) - Constructor for class net.obvj.agents.util.TimeInterval
Builds a new TimeInterval with the same attributes from a preset object.
TimerAgent - Class in net.obvj.agents
A thread-safe extensible Agent for tasks that are scheduled in the system to run repeatedly, given an interval that is particular to each task.
TimeUnit - Enum in net.obvj.agents.util
Enumerates the supported time units for Timer agents execution.
toMillis() - Method in class net.obvj.agents.util.TimeInterval
Returns this time interval's duration, in milliseconds.
toMillis(long) - Method in enum net.obvj.agents.util.TimeUnit
Converts the given amount into milliseconds.
toString() - Method in class net.obvj.agents.conf.AgentConfiguration
Generates a string representation of this AgentConfiguration.
toString() - Method in class net.obvj.agents.impl.AnnotatedCronAgent
 
toString() - Method in class net.obvj.agents.impl.AnnotatedTimerAgent
 
toString() - Method in class net.obvj.agents.util.TimeInterval
Returns a human-friendly string representation of this TimeInterval, for example: "2 minute(s)".
toString() - Method in enum net.obvj.agents.util.TimeUnit
Returns a string representation of this TimeUnit.

V

valueOf(String) - Static method in enum net.obvj.agents.AbstractAgent.State
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.obvj.agents.AgentType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.obvj.agents.conf.AgentConfiguration.Source
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.obvj.agents.util.AnnotationUtils.MethodFilter
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.obvj.agents.util.TimeUnit
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.obvj.agents.AbstractAgent.State
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.obvj.agents.AgentType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.obvj.agents.conf.AgentConfiguration.Source
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.obvj.agents.util.AnnotationUtils.MethodFilter
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.obvj.agents.util.TimeUnit
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I N O R S T V 
Skip navigation links

Copyright © 2021. All rights reserved.