fr.inria.peerunit
Class GlobalVariablesImpl

java.lang.Object
  extended by fr.inria.peerunit.GlobalVariablesImpl
All Implemented Interfaces:
GlobalVariables, java.rmi.Remote

public class GlobalVariablesImpl
extends java.lang.Object
implements GlobalVariables

Since:
1.0
Version:
1.0
Author:
Veronique Pelleau, sunye

Constructor Summary
GlobalVariablesImpl()
           
 
Method Summary
 void clearCollection()
          Clears all global variables for this object
 boolean containsKey(java.lang.Integer key)
          Returns true if this bootstrapper contains the specified variable.
 java.lang.Object get(java.lang.Integer key)
          Used to retrieve testing global variables
 java.util.Map<java.lang.Integer,java.lang.Object> getCollection()
          Used to retrieve all the variables of the testing global variables
 void put(java.lang.Integer key, java.lang.Object object)
          Used to cache testing global variables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalVariablesImpl

public GlobalVariablesImpl()
Method Detail

clearCollection

public void clearCollection()
                     throws java.rmi.RemoteException
Clears all global variables for this object

Specified by:
clearCollection in interface GlobalVariables
Throws:
java.rmi.RemoteException

containsKey

public boolean containsKey(java.lang.Integer key)
                    throws java.rmi.RemoteException
Returns true if this bootstrapper contains the specified variable.

Specified by:
containsKey in interface GlobalVariables
Parameters:
key - Value whose presence is to be tested
Returns:
true if this bootstrapper contains the specified variable.
Throws:
java.rmi.RemoteException

get

public java.lang.Object get(java.lang.Integer key)
                     throws java.rmi.RemoteException
Used to retrieve testing global variables

Specified by:
get in interface GlobalVariables
Parameters:
key -
Returns:
Object
Throws:
java.rmi.RemoteException

getCollection

public java.util.Map<java.lang.Integer,java.lang.Object> getCollection()
                                                                throws java.rmi.RemoteException
Used to retrieve all the variables of the testing global variables

Specified by:
getCollection in interface GlobalVariables
Returns:
A map containing all registered variables for this Bootstrapper
Throws:
java.rmi.RemoteException

put

public void put(java.lang.Integer key,
                java.lang.Object object)
         throws java.rmi.RemoteException
Used to cache testing global variables

Specified by:
put in interface GlobalVariables
Parameters:
key -
object -
Throws:
java.rmi.RemoteException


Copyright © 2010. All Rights Reserved.