Rio Project 4.2 API Documentation



org.rioproject.gnostic
Class GnosticImpl

java.lang.Object
  extended by org.rioproject.gnostic.GnosticImpl
All Implemented Interfaces:
Gnostic

public class GnosticImpl
extends Object
implements Gnostic

Gnostic provides support for Complex Event Processing, associating distributed metrics of associated services to rules that in turn provide decisions based on the temporal data accumulated in a knowledge base.

Author:
Dennis Reedy

Constructor Summary
GnosticImpl()
           
 
Method Summary
 boolean add(RuleMap ruleMap)
          Add a rule mapping to Gnostic.
 void cleanup()
           
 List<RuleMap> get()
          Get all managed rule mappings
 int getScannerInterval()
          Get the amount of time (in seconds) the Gnostic polls for changes to managed rules.
 boolean remove(RuleMap ruleMap)
          Remove an existing managed rule mapping
 void setScannerInterval(int interval)
          Set the amount of time (in seconds) the Gnostic polls for changes to managed rules.
 void setServiceBeanContext(ServiceBeanContext context)
           
 void setupDrools()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GnosticImpl

public GnosticImpl()
Method Detail

setServiceBeanContext

public void setServiceBeanContext(ServiceBeanContext context)

setupDrools

@Initialized
public void setupDrools()

getScannerInterval

public int getScannerInterval()
Description copied from interface: Gnostic
Get the amount of time (in seconds) the Gnostic polls for changes to managed rules.

Specified by:
getScannerInterval in interface Gnostic
Returns:
The amount of time (in seconds) the Gnostic polls for changes made to managed rules

setScannerInterval

public void setScannerInterval(int interval)
Description copied from interface: Gnostic
Set the amount of time (in seconds) the Gnostic polls for changes to managed rules.

Specified by:
setScannerInterval in interface Gnostic
Parameters:
interval - The amount of time (in seconds) to poll

add

public boolean add(RuleMap ruleMap)
Description copied from interface: Gnostic
Add a rule mapping to Gnostic.

Specified by:
add in interface Gnostic
Parameters:
ruleMap - The rule mapping to add.
Returns:
True if the rule mapping was added, false otherwise. If the rule mapping already exists, this method will return false. Note that adding a rule mapping is asynchronous. Returning true means that the rule was added for processing. The rule(s) still require compilation and validation, verifying that the rule has been added can be achieved by getting the managed rule mappings.

remove

public boolean remove(RuleMap ruleMap)
Description copied from interface: Gnostic
Remove an existing managed rule mapping

Specified by:
remove in interface Gnostic
Parameters:
ruleMap - The rule map to remove
Returns:
True if the rule mapping was removed, false otherwise. If the rule mapping does not exist, this method will return false.

get

public List<RuleMap> get()
Description copied from interface: Gnostic
Get all managed rule mappings

Specified by:
get in interface Gnostic
Returns:
A non-modifiable list of managed rule mappings. If there are no managed rule mappings a zer-length array is returned. A new array is created each time.

cleanup

@PreDestroy
public void cleanup()

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.