EventEvaluator.Resource
Class ResourceEventImpl

java.lang.Object
  |
  +--org.omg.PortableServer.Servant
        |
        +--EventEvaluator.Resource.ResourceEventPOA
              |
              +--EventEvaluator.Resource.ResourceEventImpl
All Implemented Interfaces:
EventEvaluator.EventOperations, org.omg.CORBA.portable.InvokeHandler, EventEvaluator.Resource.ResourceEventOperations

public class ResourceEventImpl
extends EventEvaluator.Resource.ResourceEventPOA

Implements the EventEvaluator/Resource/ResourceEvent interface.


Constructor Summary
ResourceEventImpl(java.lang.String eid, org.omg.CORBA.ORB orb, Persistence pobj)
          Loads the state of the resource event this object is incarnating from persistent storage.
 
Method Summary
 java.lang.String description()
          Returns the description of this resource event.
 int duration_time()
          Returns the time the event expression must stay true in order trigger the event.
 java.lang.String eid()
          Returns the identification of this resource event.
 java.lang.String expression()
          Returns the expression of this resource event.
 MonitoredEntities.EntityType metype()
          Returns a reference for the monitored entity type this event relates to.
 
Methods inherited from class EventEvaluator.Resource.ResourceEventPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceEventImpl

public ResourceEventImpl(java.lang.String eid,
                         org.omg.CORBA.ORB orb,
                         Persistence pobj)
Loads the state of the resource event this object is incarnating from persistent storage. Receives an reference to the Persistence object and calls the method RELoadState that returns the state of the resource event this object is incarnating (identified by eid).

The state of the resource event is returned in an object array that must have its elements casted to the specific type of each class variable.

Parameters:
eid - identification of the resource event the object is incarnating
orb - reference to the orb
pobj - reference to the Persistence object
Method Detail

eid

public java.lang.String eid()
Returns the identification of this resource event.
Overrides:
eid in class EventEvaluator.Resource.ResourceEventPOA
Returns:
the identification of this resource event

description

public java.lang.String description()
Returns the description of this resource event.
Overrides:
description in class EventEvaluator.Resource.ResourceEventPOA
Returns:
the description of this resource event

expression

public java.lang.String expression()
Returns the expression of this resource event. This is a boolean expression that must stay true for at least duration_time seconds in order to trigger the event.
Overrides:
expression in class EventEvaluator.Resource.ResourceEventPOA
Returns:
the expression of this resource event

duration_time

public int duration_time()
Returns the time the event expression must stay true in order trigger the event.
Overrides:
duration_time in class EventEvaluator.Resource.ResourceEventPOA
Returns:
the duration time necessary to trigger the event

metype

public MonitoredEntities.EntityType metype()
Returns a reference for the monitored entity type this event relates to.
Overrides:
metype in class EventEvaluator.Resource.ResourceEventPOA
Returns:
reference to the entity type this event relates to