fr.inria.peerunit
Interface StorageTester

All Known Subinterfaces:
Tester
All Known Implementing Classes:
AbstractTester, DistributedTesterImpl, TesterImpl

public interface StorageTester

This interface contains some methods for the stocking and the retrieval of testing global variables who can't be known before runtime.

Since:
1.0
Version:
1.0
Author:
Eduardo Almeida, Aboubakar Koïta
See Also:
fr.inria.peerunit.VolatileTester, TesterImpl, Tester

Method Summary
 void clear()
          Used to clear the Collection of testing global variables
 boolean containsKey(java.lang.Integer key)
          Returns true if the key key can be map in the global variables cache, return false else.
 java.lang.Object get(java.lang.Integer key)
          Used to retrieve a testing global variable.
 java.util.Map<java.lang.Integer,java.lang.Object> getCollection()
          Used to retrieve all the peer of the testing global variables.
 void put(java.lang.Integer key, java.lang.Object object)
          Allow to stock global variables who will accessed by all others participants.
 

Method Detail

put

void put(java.lang.Integer key,
         java.lang.Object object)
         throws java.rmi.RemoteException
Allow to stock global variables who will accessed by all others participants.

Parameters:
key - the key of object
object - the variable to stock
Throws:
java.rmi.RemoteException

getCollection

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

Returns:
all the peer of the testing global variables
Throws:
java.rmi.RemoteException - because the method is distant

get

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

Parameters:
key - a key
Returns:
object a variable corresponding to the key
Throws:
java.rmi.RemoteException

containsKey

boolean containsKey(java.lang.Integer key)
                    throws java.rmi.RemoteException
Returns true if the key key can be map in the global variables cache, return false else.

Parameters:
key - a key
Returns:
true if we can map the key key, return false else
Throws:
java.rmi.RemoteException - because the method is distant

clear

void clear()
           throws java.rmi.RemoteException
Used to clear the Collection of testing global variables

Throws:
java.rmi.RemoteException


Copyright © 2010. All Rights Reserved.