GridSim 5.0 beta

gridsim.datagrid.index
Class DataGIS

Object
  extended by Thread
      extended by Sim_entity
          extended by GridSimCore
              extended by GridInformationService
                  extended by DataGIS
All Implemented Interfaces:
Cloneable, Runnable

public class DataGIS
extends GridInformationService

A Data GridInformationService (GIS) entity that is responsible only for storing a registration info from a Replica Catalogue (RC) entity. This class is only used by GridSim for notifying the end of a simulation to the registered RC entities. Hence, users and resources communicate to a Data GIS using the DataRegionalGIS class.

Since:
GridSim Toolkit 4.0
Author:
Uros Cibej and Anthony Sulistio
See Also:
DataRegionalGIS

Nested Class Summary
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class GridSimCore
input, NETWORK_TYPE, output
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DataGIS()
          Allocates a new Data GIS
DataGIS(String name)
          Allocates a new Data GIS with a default baud rate.
DataGIS(String name, double baud_rate)
          Allocates a new Data GIS
 
Method Summary
protected  void processEndSimulation()
          Notifies the registered entities about the end of simulation.
protected  void processOtherEvent(Sim_event ev)
          Processes an incoming request for registering a RC entity.
 
Methods inherited from class GridInformationService
body, getAdvReservList, getList, isResourceExist, isResourceExist, resourceSupportAR, resourceSupportAR, signalShutdown
 
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

DataGIS

public DataGIS(String name,
               double baud_rate)
        throws Exception
Allocates a new Data GIS

Parameters:
name - the name to be associated with this entity (as required by Sim_entity class from simjava package)
baud_rate - communication speed
Throws:
Exception - This happens when creating this entity before initializing GridSim package or this entity name is null or empty
See Also:
GridSim.init(int, Calendar, boolean), GridSim.init(int, Calendar, boolean, String[], String[], String), Sim_entity

DataGIS

public DataGIS()
        throws Exception
Allocates a new Data GIS

Throws:
Exception - This happens when creating this entity before initializing GridSim package
See Also:
GridSim.init(int, Calendar, boolean), GridSim.init(int, Calendar, boolean, String[], String[], String), Sim_entity

DataGIS

public DataGIS(String name)
        throws Exception
Allocates a new Data GIS with a default baud rate.

Parameters:
name - the name to be associated with this entity (as required by Sim_entity class from simjava package)
Throws:
Exception - This happens when creating this entity before initializing GridSim package or this entity name is null or empty
See Also:
GridSim.init(int, Calendar, boolean), GridSim.init(int, Calendar, boolean, String[], String[], String), Sim_entity
Method Detail

processOtherEvent

protected void processOtherEvent(Sim_event ev)
Processes an incoming request for registering a RC entity.

Overrides:
processOtherEvent in class GridInformationService
Parameters:
ev - a Sim_event object (or an incoming event or request)
See Also:
GridInformationService.body()

processEndSimulation

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

Overrides:
processEndSimulation in class GridInformationService

GridSim 5.0 beta

The University of Melbourne, Australia, 2009