Built-in parser types
The base parser implementation comes with a rich collection of both scalar and
composite built-in types and classes to decode standard POP messages not
involving newly defined classes.
Scalars
The set of provided scalars include:
-
string
A simple parocstring XDR compatible decoder.
-
uint
-
int
-
float
-
popbool
POP specific boolean decoder.
The POP-C++ implementation doesn’t encode booleans as defined by the XDR RFC.
This alternate implementation provides a workaround.
-
bool
The XDR compliant equivalent of the popbool primitive.
Compound types
The set of provided complex and compound types include:
-
accesspoint
-
string endpoint
-
NodeInfo
-
string nodeId
-
string operatingSystem
-
float power
-
int cpuSpeed
-
float memorySize
-
int networkBandwidth
-
int diskSpace
-
string protocol
-
string encoding
-
ExplorationListNode[] ExplorationList
-
ExplorationListNode
-
string nodeId
-
array(string) visited
-
ObjectDescription
-
float power0
-
float power1
-
float memory0
-
float memory1
-
float bandwidth0
-
float bandwidth1
-
float walltime
-
int manual
-
string cwd
-
int search0
-
int search1
-
int search2
-
string url
-
string user
-
string core
-
string arch
-
string batch
-
string joburl
-
string executable
-
string platforms
-
string protocol
-
string encoding
-
dict(string, string) attributes
-
Request
-
string uid
-
int maxHops
-
optional(string) nodeId
-
optional(string) operatingSystem
-
optional(int) minCpuSpeed
-
optional(int) hasExpectedCpuSpeedSet
-
optional(float) minMemorySize
-
optional(float) expectedMemorySize
-
optional(int) minNetworkBandwidth
-
optional(int) expectedNetworkBandwidth
-
optional(int) minDiskSpace
-
optional(int) expectedDiskSpace
-
optional(float) minPower
-
optional(float) expectedPower
-
optional(string) protocol
-
optional(string) encoding
-
ExplorationList explorationList
-
Response
-
string uid
-
NodeInfo nodeInfo
-
ExplorationList explorationList
-
POPCSearchNode
-
ObjectDescription od
-
accesspoint accesspoint
-
int refcount
-
POPCSearchNodeInfo
-
string nodeId
-
string operatingSystem
-
float power
-
int cpuSpeed
-
float memorySize
-
int networkBandwidth
-
int diskSpace
-
string protocol
-
string encoding
Classes
The set of provided classes include:
-
class paroc_service_base
-
BindStatus() → int, string, string
-
AddRef() → int
-
DecRef() → int
-
Encoding(string) → bool
-
Kill() → void
-
ObjectAlive() → bool
-
ObjectAlive() → void
-
Stop(string) → bool
-
class CodeMgr
-
RegisterCode(string, string, string) → void
-
QueryCode(string, string) → string, int
-
GetPlatform(string) → string, int
-
class RemoteLog
-
Log(string) → void
-
class ObjectMonitor
-
ManageObject(string) → void
-
UnManageObject(string) → void
-
CheckObjects() → int
-
class JobCoreService
-
CreateObject(string, string, ObjectDescription, int) → int, string, int
-
class JobMgr
-
JobMgr(bool, string, string, string, string) → void
-
RegisterNode(string) → void
-
Reserve(ObjectDescription, int) → float, int
-
ExecObj(string, ObjectDescription, int, int, int, string) → int, string, int
-
GetNodeAccessPoint() → string
-
class AppCoreService
-
AppCoreService(string, bool, string) → void
-
class POPCSearchNode
-
POPCSearchNode(string, bool) → void
-
setJobMgrAccessPoint(string) → void
-
getJobMgrAccessPoint() → string
-
setPOPCSearchNodeId(string) → void
-
getPOPCSearchNodeId() → string
-
setOperatingSystem(string) → void
-
getOperatingSystem() → string
-
setPower(float) → void
-
getPower() → float
-
setMemorySize(float) → void
-
getMemorySize() → int
-
setNetworkBandwidth(int) → void
-
getNetworkBandwidth() → int
-
addNeighbor(POPCSearchNode) → POPCSearchNode
-
launchDiscovery(Request, int) → array of POPCSearchNodeInfo
-
askResourcesDiscovery(Request, string, string) → void
-
callbackResult(Response) → void
-
class ParentProcess
-
callback() → int, string
Note
For the provided classes not all methods are defined yet. The provided
definitions suffices for most basic measures involving other external
types, but it can be that some requests for more specific measures could not
be decoded without extending the method definitions.