@POPClass(classId=15, className="JobMgr", deconstructor=true) public class POPJobManager extends POPJobService
definedMethodId, generateClassId, od, refCount| Constructor and Description |
|---|
POPJobManager()
Default constructor of POPJobManager.
|
POPJobManager(boolean daemon,
java.lang.String challenge,
java.lang.String url)
Constructor of POPJobManager with challenge string
|
POPJobManager(boolean daemon,
java.lang.String config,
java.lang.String challenge,
java.lang.String url)
Constructor of POPCodeManager with challenge string
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allocResource(java.lang.String localservice,
java.lang.String objname,
ObjectDescription od,
int howmany,
float[] fitness,
POPAccessPoint[] jobcontacts,
int[] reserveIDs,
int[] requestInfo,
int[] trace,
int tracesize)
Ask the JobMgr service to allocate resources for a new objects
|
void |
cancelReservation(int[] req,
int howmany)
Ask the JobMgr service to cancel some reservation for parallel object
|
int |
createObject(POPAccessPoint localservice,
POPString objname,
ObjectDescription od,
int howmany,
POPAccessPoint[] objcontacts,
int howmany2,
POPAccessPoint[] remotejobcontacts)
Ask the JobMgr service to create a new parallel object
|
void |
dump() |
int |
execObj(POPString objname,
int howmany,
int[] reserveIDs,
java.lang.String localservice,
POPAccessPoint[] objcontacts)
Ask the JobMgr service to execute a specific object
|
int |
query(POPString type,
POPString value)
Query configuration informations
|
void |
registerNode(java.lang.String url)
Register a other JobMgr as a neighbor
|
void |
selfRegister()
Register the local JobMgr service to its known neighbors
|
void |
start()
Start the JobMgr service
|
createObjectstart, stopaddSemantic, addSemantic, canKill, defineConstructor, defineMethod, deserialize, deserialize, exit, finalize, getAccessPoint, getBroker, getClassId, getClassName, getConstructorByInfo, getMethodByInfo, getMethodInfo, getMethodInfo, getOd, getPOPCReference, getSemantic, getSemantic, getThis, getThis, getTracked, getTracked, getTrackedUsers, hasDestructor, hasDestructor, initializeConstructorInfo, initializeMethodInfo, initializePOPObject, isDaemon, isTemporary, isTracking, loadPOPAnnotations, makePermanent, makeTemporary, PopRegisterFutureConnectorCertificate, printMethodInfo, serialize, setBroker, setClassId, setClassName, setOdpublic POPJobManager()
public POPJobManager(boolean daemon,
java.lang.String challenge,
java.lang.String url)
daemon - Set the service in deamon modechallenge - Challenge string needed for the service stopurl - URL of the JobMgr servicepublic POPJobManager(boolean daemon,
java.lang.String config,
java.lang.String challenge,
java.lang.String url)
daemon - Set the service in deamon modeconfig - Configuration informationchallenge - Challenge string needed for the service stopurl - URL of the JobMgr servicepublic void registerNode(java.lang.String url)
url - URL of the node to registerpublic int query(POPString type, POPString value)
type - Name of the configuration elementvalue - Output argument - Value of the configuration elementpublic int createObject(POPAccessPoint localservice, POPString objname, ObjectDescription od, int howmany, POPAccessPoint[] objcontacts, int howmany2, POPAccessPoint[] remotejobcontacts)
localservice - Access to the local application scope servicesobjname - Name of the object to createod - Object description for the resource requirements of this objecthowmany - Number of objects to createobjcontacts - Output arguments - contacts to the objects createdhowmany2 - ??remotejobcontacts - ??public boolean allocResource(java.lang.String localservice,
java.lang.String objname,
ObjectDescription od,
int howmany,
float[] fitness,
POPAccessPoint[] jobcontacts,
int[] reserveIDs,
int[] requestInfo,
int[] trace,
int tracesize)
localservice - Access to the local application scope servicesobjname - Name of the object to createod - Object description for the resource requirements of this objecthowmany - Number of objects to createfitness - Fitness of the resourcejobcontacts - Output arguments - contacts to the JobMgr to create objectsreserveIDs - Output arguments - reservation identifier for each objectsrequestInfo - infotrace - keep tracktracesize - track sizepublic void cancelReservation(int[] req,
int howmany)
req - Reservation identifiers of the reservations to cancelhowmany - Number of reservations to cancelpublic int execObj(POPString objname, int howmany, int[] reserveIDs, java.lang.String localservice, POPAccessPoint[] objcontacts)
objname - Name of the objecthowmany - Number of object to executereserveIDs - Reservations identifiers for these objectslocalservice - Access to the local application scope servicesobjcontacts - Output arguments - contacts to the objects createdpublic void dump()
public void start()
start in class POPServiceBasepublic void selfRegister()