|
GridSim v3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThread
eduni.simjava.Sim_entity
gridsim.GridSimCore
gridsim.index.AbstractGIS
AbstractGIS is an abstract class which aims to provide skeletons for its chid classes to implement the required base functionalities of a regional GridInformationService (GIS).
Field Summary | |
static int |
GIS_INQUIRY_RESOURCE_AR_LIST
Denotes an inquiry regarding to a list of local resources, which supports advanced reservation. |
static int |
GIS_INQUIRY_RESOURCE_AR_RESULT
Denotes a result regarding to a list of local resources, which supports advanced reservation. |
static int |
GIS_INQUIRY_RESOURCE_LIST
Denotes an inquiry regarding to a list of local resources. |
static int |
GIS_INQUIRY_RESOURCE_RESULT
Denotes a result regarding to a list of local resources. |
static int |
INQUIRY_GLOBAL_RESOURCE_AR_LIST
Denotes a list of resources, which support advanced reservation, that are listed in other regional GIS entities. |
static int |
INQUIRY_GLOBAL_RESOURCE_LIST
Denotes a list of resources that are listed in other regional GIS entities. |
static int |
INQUIRY_LOCAL_RESOURCE_AR_LIST
Denotes a list of resources, that only support advance reservation, that are listed in this regional GIS entity. |
static int |
INQUIRY_LOCAL_RESOURCE_LIST
Denotes a list of all resources, including the ones that can support advance reservation, that are listed in this regional GIS entity. |
static int |
INQUIRY_REGIONAL_GIS
Denotes a list of regional GIS IDs, including this entity ID. |
static int |
REGISTER_REGIONAL_GIS
Registers this regional GIS to the GridInformationService or system GIS.
|
static int |
REGISTER_RESOURCE
Denotes a grid resource to be registered to this regional GIS entity. |
static int |
REGISTER_RESOURCE_AR
Denotes a grid resource, that can support advance reservation, to be registered to this regional GIS entity. |
protected int |
systemGIS_
System GIS or GridInformationService entity ID. |
Fields inherited from class gridsim.GridSimCore |
input, output |
Fields inherited from class eduni.simjava.Sim_entity |
|
Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
protected |
AbstractGIS(String name,
Link link)
Creates a new regional GIS entity |
Method Summary | |
void |
body()
Handles incoming requests to this entity, DO NOT OVERRIDE this method. |
protected boolean |
notifySystemGIS(Sim_event ev,
int tag)
Notify GridInformationService or system GIS about a
specific request as defined in the tag name. |
protected abstract void |
processEndSimulation()
Informs the registered entities regarding to the end of a simulation. |
protected abstract void |
processGISResourceARList(Sim_event ev)
Process an incoming request from other GIS entities about getting a list of resource IDs supporting Advanced Reservation, that are registered to this regional GIS entity. |
protected abstract void |
processGISResourceARResult(Sim_event ev)
Process an incoming delivery from other GIS entities about their resource list supporting Advanced Reservation. |
protected abstract void |
processGISResourceList(Sim_event ev)
Process an incoming request from other GIS entities about getting a list of resource IDs, that are registered to this regional GIS entity. |
protected abstract void |
processGISResourceResult(Sim_event ev)
Process an incoming delivery from other GIS entities about their resource list. |
protected abstract void |
processGlobalResourceARList(Sim_event ev)
Process an incoming request from users about getting a list of resource IDs supporting Advanced Reservation, that are registered in other regional GIS entities. |
protected abstract void |
processGlobalResourceList(Sim_event ev)
Process an incoming request from users about getting a list of resource IDs, that are registered in other regional GIS entities. |
protected abstract void |
processInquiryRegionalGIS(Sim_event ev)
Process an incoming request about getting a list of regional GIS IDs (including this entity ID), that are registered to the GridInformationService or system GIS. |
protected abstract void |
processOtherEvent(Sim_event ev)
Process an incoming request that uses a user-defined tag. |
protected abstract void |
processRegisterResource(Sim_event ev)
Process a registration request from a resource entity to this regional GIS entity. |
protected abstract void |
processRegisterResourceAR(Sim_event ev)
Process a registration request from a resource entity supporting Advanced Reservation to this regional GIS entity. |
protected abstract void |
processResourceARList(Sim_event ev)
Process an incoming request from users about getting a list of resource IDs supporting Advanced Reservation, that are registered to this regional GIS entity. |
protected abstract void |
processResourceList(Sim_event ev)
Process an incoming request from users about getting a list of resource IDs, that are registered to this regional GIS entity. |
protected abstract void |
registerOtherEntity()
Registers other information to GridInformationService or
system GIS. |
Methods inherited from class gridsim.GridSimCore |
finalize, finalizeGridSimulation, getLink, getPingResult, isNetworked, IsNetworked, ping, ping, ping, ping, pingBlockingCall, pingBlockingCall, pingBlockingCall, pingBlockingCall, send, Send, send, Send, send, Send, send, Send, send, Send, send, Send, setBackgroundTraffic, setBackgroundTraffic, TerminateInputOutputEntities, terminateIOEntities |
Methods inherited from class eduni.simjava.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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int systemGIS_
GridInformationService
entity ID.
public static final int REGISTER_REGIONAL_GIS
GridInformationService
or system GIS.
This tag should be called from Regional GIS to the system GIS.
public static final int REGISTER_RESOURCE
GridSimTags.REGISTER_RESOURCE
.
This tag should be called from Regional GIS to the system GIS.
public static final int REGISTER_RESOURCE_AR
GridSimTags.REGISTER_RESOURCE_AR
.
This tag should be called from Regional GIS to the system GIS.
public static final int INQUIRY_LOCAL_RESOURCE_LIST
GridSimTags.RESOURCE_LIST
.
This tag should be called from a user to Regional GIS.
public static final int INQUIRY_LOCAL_RESOURCE_AR_LIST
GridSimTags.RESOURCE_AR_LIST
.
This tag should be called from a user to Regional GIS.
public static final int INQUIRY_GLOBAL_RESOURCE_LIST
public static final int INQUIRY_GLOBAL_RESOURCE_AR_LIST
public static final int INQUIRY_REGIONAL_GIS
public static final int GIS_INQUIRY_RESOURCE_LIST
public static final int GIS_INQUIRY_RESOURCE_RESULT
public static final int GIS_INQUIRY_RESOURCE_AR_LIST
public static final int GIS_INQUIRY_RESOURCE_AR_RESULT
Constructor Detail |
protected AbstractGIS(String name, Link link) throws Exception
name
- this regional GIS namelink
- a network link to this entity
Exception
- This happens when creating this entity before
initializing GridSim package or this entity name is
null or emptyMethod Detail |
public void body()
body
in class Sim_entity
protected abstract void processGlobalResourceARList(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void processGlobalResourceList(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void processResourceList(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void processResourceARList(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void processGISResourceList(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void processGISResourceARList(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void processGISResourceResult(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void processGISResourceARResult(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void processRegisterResourceAR(Sim_event ev)
ev
- a Sim_event object (or a registration request)protected abstract void processRegisterResource(Sim_event ev)
ev
- a Sim_event object (or a registration request)protected abstract void processInquiryRegionalGIS(Sim_event ev)
GridInformationService
or system GIS.
ev
- a Sim_event object (or an incoming event or request)protected abstract void processOtherEvent(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)protected abstract void registerOtherEntity()
GridInformationService
or
system GIS.
protected abstract void processEndSimulation()
protected boolean notifySystemGIS(Sim_event ev, int tag)
GridInformationService
or system GIS about a
specific request as defined in the tag name.
ev
- a Sim_event object (or requests to be sent to system GIS)tag
- a tag name or type of request
|
GridSim v3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |