grinda.impl
Class GrindaContext

java.lang.Object
  extended by ResourceHomeImpl
      extended by grinda.impl.GrindaContext

public class GrindaContext
extends ResourceHomeImpl

Allows to access to all internal useful interfaces and configurations. Settings are stored in the file //etc/grinda.properties that contains the following properties:

Version:
1.0
Author:
Sirio Capizzi

Constructor Summary
GrindaContext()
           
 
Method Summary
 ResourceKey createTupleBroker(java.lang.String spaceName, TupleSpaceConfigurationParameter[] params)
           
 BlockingOperationManager getBlockManager()
           
 PeerCommunicator getCommunicator()
           
static GrindaContext getInstance()
          Gets a new instance of this class
 NotificationManager getNotificationManager()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
 TupleBroker getTupleBroker(java.lang.String spaceName)
          Gets the tuplebroker associated with the given spaceName.
 TupleSpaceSet getTupleSpaceSet()
          The default TupleBroker of the system.
 void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrindaContext

public GrindaContext()
Method Detail

getInstance

public static GrindaContext getInstance()
Gets a new instance of this class

Returns:
GrindaContext

createTupleBroker

public ResourceKey createTupleBroker(java.lang.String spaceName,
                                     TupleSpaceConfigurationParameter[] params)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getTupleBroker

public TupleBroker getTupleBroker(java.lang.String spaceName)
Gets the tuplebroker associated with the given spaceName.

Parameters:
spaceName - String
Returns:
TupleBroker the specific broker or the default broker

getTupleSpaceSet

public TupleSpaceSet getTupleSpaceSet()
The default TupleBroker of the system. If no broker is registered for a space, tuples are forwarded using this broker

Returns:
TupleBroker

getBlockManager

public BlockingOperationManager getBlockManager()

getNotificationManager

public NotificationManager getNotificationManager()

getCommunicator

public PeerCommunicator getCommunicator()

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)

getProperty

public java.lang.String getProperty(java.lang.String key)

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006 Sirio Capizzi. All Rights Reserved.