|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectThread
Sim_entity
GridSimCore
AbstractGIS
public abstract class 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).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| 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 |
NOTIFY_GIS_RESOURCE_FAILURE
Denotes an inquiry regarding to a resource failure. |
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 GridSimCore |
|---|
input, NETWORK_TYPE, output |
| 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.NOTE: ev.get_data() should contain an Integer object |
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 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 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 |
| 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
public static final int NOTIFY_GIS_RESOURCE_FAILURE
| 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 empty| Method Detail |
|---|
public void body()
body in class Sim_entityprotected 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 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||