p2pcm
Class ComponentControl

java.lang.Object
  extended by p2pcm.ComponentControl

public class ComponentControl
extends java.lang.Object

This class models any component's life cycle manager. It provides the necessary callbacks for component activation and passivation

Version:
1.2
Author:
Carles Pairot

Constructor Summary
ComponentControl(ComponentInterface cmpInt, long timeToPassivate, int maxInvocations)
          Constructor
 
Method Summary
 void incInvocationNum()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentControl

public ComponentControl(ComponentInterface cmpInt,
                        long timeToPassivate,
                        int maxInvocations)
Constructor

Parameters:
cmpInt - ComponentInterface Component's callback reference
timeToPassivate - long Time for component's passivation if no invocations occur
maxInvocations - int Per interval maximum number of invocations for component's new activation to occur
Method Detail

incInvocationNum

public void incInvocationNum()