GridSim 5.0 beta

gridsim.datagrid.index
Class DataRegionalGIS

Object
  extended by Thread
      extended by Sim_entity
          extended by GridSimCore
              extended by AbstractGIS
                  extended by RegionalGIS
                      extended by DataRegionalGIS
All Implemented Interfaces:
Cloneable, Runnable

public class DataRegionalGIS
extends RegionalGIS

A data GridInformationService (GIS) entity that is responsible for storing a registration info from a Replica Catalogue (RC) entity and answering any incoming queries.

Since:
GridSim Toolkit 4.0
Author:
Uros Cibej and Anthony Sulistio

Nested Class Summary
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class RegionalGIS
myID_
 
Fields inherited from class AbstractGIS
GIS_INQUIRY_RESOURCE_AR_LIST, GIS_INQUIRY_RESOURCE_AR_RESULT, GIS_INQUIRY_RESOURCE_LIST, GIS_INQUIRY_RESOURCE_RESULT, INQUIRY_GLOBAL_RESOURCE_AR_LIST, INQUIRY_GLOBAL_RESOURCE_LIST, INQUIRY_LOCAL_RESOURCE_AR_LIST, INQUIRY_LOCAL_RESOURCE_LIST, INQUIRY_REGIONAL_GIS, NOTIFY_GIS_RESOURCE_FAILURE, REGISTER_REGIONAL_GIS, REGISTER_RESOURCE, REGISTER_RESOURCE_AR, systemGIS_
 
Fields inherited from class GridSimCore
input, NETWORK_TYPE, output
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DataRegionalGIS(String name, Link link)
          Creates a new Data GIS entity
 
Method Summary
protected  void processEndSimulation()
          Notifies the registered entities about the end of simulation.
protected  void processOtherEvent(Sim_event ev)
          Processes an incoming request related to a RC inquiry.
 
Methods inherited from class RegionalGIS
getListFromOtherRegional, processGISResourceARList, processGISResourceARResult, processGISResourceList, processGISResourceResult, processGlobalResourceARList, processGlobalResourceList, processInquiryRegionalGIS, processRegisterResource, processRegisterResourceAR, processResourceARList, processResourceList, registerOtherEntity, requestFromSystemGIS, requestFromSystemGIS, sendListToSender, storeRegistrationID
 
Methods inherited from class AbstractGIS
body, notifySystemGIS
 
Methods inherited from class GridSimCore
finalizeGridSimulation, getLink, getPingResult, isNetworked, ping, ping, ping, ping, pingBlockingCall, pingBlockingCall, pingBlockingCall, pingBlockingCall, send, send, send, send, send, send, setBackgroundTraffic, setBackgroundTraffic, terminateIOEntities
 
Methods inherited from class Sim_entity
add_generator, add_param, add_port, clone, get_id, get_name, get_port, get_port, get_stat, run, send_on, set_invisible, set_stat, sim_cancel, sim_completed, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_pause_for, sim_pause_for, sim_pause_until, sim_pause_until, sim_pause, sim_process_for, sim_process_for, sim_process_until, sim_process_until, sim_process, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, sim_wait_for, sim_wait_for, sim_wait_for, sim_wait, sim_waiting, sim_waiting
 
Methods inherited from class Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataRegionalGIS

public DataRegionalGIS(String name,
                       Link link)
                throws Exception
Creates a new Data GIS entity

Parameters:
name - this entity name
link - the link that this GridSim entity will use to communicate with other GridSim or Network entities.
Throws:
Exception - This happens when one of the input parameters are invalid.
Method Detail

processOtherEvent

protected void processOtherEvent(Sim_event ev)
Processes an incoming request related to a RC inquiry.

Overrides:
processOtherEvent in class RegionalGIS
Parameters:
ev - a Sim_event object (or an incoming event or request)

processEndSimulation

protected void processEndSimulation()
Notifies the registered entities about the end of simulation.

Overrides:
processEndSimulation in class RegionalGIS

GridSim 5.0 beta

The University of Melbourne, Australia, 2009