| Modifier and Type | Field and Description |
|---|---|
protected float |
bandwidthMin |
protected float |
bandwidthReq |
protected java.lang.String |
batch |
protected java.lang.String |
codeFile |
protected java.lang.String |
connectionSecret |
protected ConnectionType |
connectionType |
protected static java.lang.String |
CONNECTOR_KEY |
protected java.lang.String |
directory |
protected java.lang.String |
encoding |
protected java.lang.String |
hostarch |
protected java.lang.String |
hostcore |
protected java.lang.String |
hostName |
protected java.lang.String |
hostuser |
protected boolean |
isLocalJob |
protected boolean |
isManual |
protected java.lang.String |
jobUrl |
protected java.lang.String |
jvmParamters |
protected int |
maxDepth |
protected int |
maxSize |
protected float |
memoryMin |
protected float |
memoryReq |
protected static java.lang.String |
NETWORK_KEY |
protected POPAccessPoint |
originAppService |
protected java.lang.String |
platform |
protected float |
powerMin |
protected float |
powerReq |
protected java.lang.String[] |
protocols |
protected java.lang.String |
remoteAccessPoint |
protected java.util.List<java.lang.String> |
searchHosts |
protected boolean |
searchSet |
protected boolean |
tracking |
protected boolean |
upnp |
protected java.lang.Boolean |
useLocalJVM |
protected int |
waitTime |
protected float |
wallTime |
| Constructor and Description |
|---|
ObjectDescription()
Create a new empty instance of ObjectDescription
|
ObjectDescription(ObjectDescription od) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSearchHosts(java.lang.String searchHost)
Add an host to the OD, see
setSearchHosts(java.lang.String...) |
boolean |
deserialize(POPBuffer buffer)
Deserialize the object description from the buffer
|
float |
getBandwidthMin() |
float |
getBandwidthReq() |
java.lang.String |
getBatch()
Get the OD batch value
|
java.lang.String |
getCodeFile()
Get the OD code file value
|
java.lang.String |
getConnectionSecret() |
ConnectionType |
getConnectionType()
Returns the connection type to be used if the object has to be run remotely
|
java.lang.String |
getConnector()
Job Manager connector to use
|
java.lang.String |
getDirectory()
Get the directory we want the process to run into
|
java.lang.String |
getEncoding()
Get the OD encoding value
|
java.lang.String |
getHostarch()
Get the OD host architecture value
|
java.lang.String |
getHostcore()
Get the OD host core value
|
java.lang.String |
getHostName()
Get the OD hostname value
|
java.lang.String |
getHostuser()
Get the OD host user value
|
java.lang.String |
getJobUrl()
Get the OD JobUrl value
|
java.lang.String |
getJVMParameters()
Returns the parameters that should be used when creating the JVM for this
object
|
float |
getMemoryMin() |
float |
getMemoryReq() |
java.lang.String |
getNetwork()
The network to use for this request
|
POPAccessPoint |
getOriginAppService() |
java.lang.String |
getPlatform()
Get he OD platform value
|
float |
getPowerMin()
Get the OD bandwith value
|
float |
getPowerReq() |
java.lang.String[] |
getProtocols()
Get the OD protocol value
|
java.lang.String |
getRemoteAccessPoint() |
java.lang.String[] |
getSearchHosts()
The hosts which should answer a request.
|
int |
getSearchMaxDepth()
Get the OD search maximum depth value
|
int |
getSearchMaxSize()
Get the OD search maximum size value
|
int |
getSearchWaitTime()
Get the OD search waiting time value
|
java.lang.String |
getValue(java.lang.String key)
Get a specific attribute from the list
|
float |
getWallTime()
Get the OD walltime value
|
boolean |
isEmpty()
Check if the current object is empty
|
boolean |
isSearchSet()
Say if the OD search is set
|
boolean |
isTracking() |
boolean |
isUPNPEnabled() |
void |
manual(boolean a)
Set the manual OD
|
void |
merge(ObjectDescription od)
Merge another object description with this object description
|
void |
removeAllAttributes()
Remove all attributes from the list
|
void |
removeValue(java.lang.String key)
Remove a specific attribute from the list
|
boolean |
serialize(POPBuffer buffer)
Serialize the object description into the buffer
|
void |
setBandwidth(float required,
float min)
Set the bandwidth OD by values
|
void |
setBatch(java.lang.String batch)
Set the OD batch value
|
void |
setCodeFile(java.lang.String codeFile)
Set the OD Code file value
|
void |
setConnectionSecret(java.lang.String secret)
Sets the secret key to be used to connect to this object.
|
void |
setConnectionType(ConnectionType type)
Sets the connection type to be used if the object has to be created remotely
|
void |
setConnector(java.lang.String connector)
Job Manager connector to use
|
void |
setDirectory(java.lang.String d)
Set the directory OD
|
void |
setEncoding(java.lang.String encoding)
Set the OD encoding value
|
void |
setHostarch(java.lang.String arch)
Set the OD host architecture value
|
void |
setHostcore(java.lang.String core)
Set the OD host core value
|
void |
setHostname(java.lang.String hostname)
Set the OD host name value
|
void |
setHostuser(java.lang.String user)
Set the OD host user value
|
void |
setJobUrl(java.lang.String jobUrl)
Set the OD JobUrl value
|
void |
setJVMParamters(java.lang.String parameters)
Sets the jvm parameters that should be used when creating this object
|
void |
setMemory(float required,
float min)
Set the memory OD by values
|
void |
setNetwork(java.lang.String network)
Specify network name to use
|
void |
setOriginAppService(POPAccessPoint originAppService) |
void |
setPlatform(java.lang.String platform)
Set the OD platform value
|
void |
setPower(float required,
float min)
Set the power OD by values
|
void |
setProtocols(java.lang.String[] protocols)
Set the OD protocol value
|
void |
setRemoteAccessPoint(java.lang.String accessPoint) |
void |
setSearch(int maxdepth,
int maxsize,
int waittime)
Set the search OD values
|
void |
setSearchHosts(java.lang.String... searchHosts)
Set the OD to tell that only the specified hosts should answer.
|
void |
setTracking(boolean tracking) |
void |
setUPNP(boolean upnp) |
void |
setUseLocalJVM(boolean localJVM) |
void |
setValue(java.lang.String key,
java.lang.String value)
Set a specific attribute in the list
|
void |
setWallTime(float walltime)
Set the walltime OD
|
java.lang.String |
toString()
Format the object description as a string value
|
boolean |
useLocalJVM() |
protected boolean isLocalJob
protected boolean isManual
protected int maxDepth
protected int waitTime
protected int maxSize
protected boolean searchSet
protected java.lang.String hostarch
protected java.lang.String hostcore
protected java.lang.String hostuser
protected float powerMin
protected float powerReq
protected float bandwidthMin
protected float bandwidthReq
protected float memoryMin
protected float memoryReq
protected float wallTime
protected java.lang.String encoding
protected java.lang.String[] protocols
protected java.lang.String platform
protected java.lang.String hostName
protected java.lang.String jobUrl
protected java.lang.String codeFile
protected java.lang.String directory
protected java.lang.String batch
protected java.util.List<java.lang.String> searchHosts
protected java.lang.String remoteAccessPoint
protected POPAccessPoint originAppService
protected static final java.lang.String NETWORK_KEY
protected static final java.lang.String CONNECTOR_KEY
protected java.lang.String jvmParamters
protected ConnectionType connectionType
protected java.lang.String connectionSecret
protected java.lang.Boolean useLocalJVM
protected boolean tracking
protected boolean upnp
public ObjectDescription()
public ObjectDescription(ObjectDescription od)
public boolean useLocalJVM()
public void setUseLocalJVM(boolean localJVM)
public void setDirectory(java.lang.String d)
d - Specific directorypublic java.lang.String getDirectory()
public void setPower(float required,
float min)
required - The required powermin - The minimum powerpublic void setMemory(float required,
float min)
required - The required memorymin - The minimum memorypublic void setBandwidth(float required,
float min)
required - The required bandwidthmin - The minimum bandwidthpublic void setWallTime(float walltime)
walltime - time allocated for the wall executionpublic void setSearchHosts(java.lang.String... searchHosts)
searchHosts - which hosts should respond to our inquirypublic void addSearchHosts(java.lang.String searchHost)
setSearchHosts(java.lang.String...)searchHost - which hosts should respond to our inquirypublic java.lang.String[] getSearchHosts()
public void manual(boolean a)
a - true = manualpublic void setSearch(int maxdepth,
int maxsize,
int waittime)
maxdepth - The maximum depth for the search algorithmmaxsize - The maximum size of a search requestwaittime - The waiting time of the search algorithm (0 = take the first
answer)public int getSearchMaxDepth()
public int getSearchMaxSize()
public int getSearchWaitTime()
public boolean isSearchSet()
public void setHostname(java.lang.String hostname)
hostname - host name to execute the objectpublic void setHostarch(java.lang.String arch)
arch - host architecture to execute the objectpublic java.lang.String getHostarch()
public void setHostcore(java.lang.String core)
core - core valuepublic java.lang.String getHostcore()
public void setHostuser(java.lang.String user)
user - USer to execute the objectpublic java.lang.String getHostuser()
public void setBatch(java.lang.String batch)
batch - batch valuepublic java.lang.String getBatch()
public void setJobUrl(java.lang.String jobUrl)
jobUrl - job manager access pointpublic void setCodeFile(java.lang.String codeFile)
codeFile - Get the OD code file valuepublic void setProtocols(java.lang.String[] protocols)
protocols - protocol to be used to communicate with the objectpublic void setEncoding(java.lang.String encoding)
encoding - encoding to be used to communicate with the objectpublic void setPlatform(java.lang.String platform)
platform - platform on which the object must be executedpublic void setJVMParamters(java.lang.String parameters)
parameters - the jvm parameterspublic void setConnectionType(ConnectionType type)
type - the type of connectionpublic void setConnectionSecret(java.lang.String secret)
secret - the connection secretpublic float getPowerMin()
public float getPowerReq()
public float getMemoryMin()
public float getMemoryReq()
public float getBandwidthMin()
public float getBandwidthReq()
public float getWallTime()
public java.lang.String getHostName()
public java.lang.String getJobUrl()
public java.lang.String[] getProtocols()
public java.lang.String getEncoding()
public java.lang.String getJVMParameters()
public ConnectionType getConnectionType()
public java.lang.String getConnectionSecret()
public java.lang.String getPlatform()
public java.lang.String getCodeFile()
public java.lang.String getNetwork()
public void setNetwork(java.lang.String network)
network - the new networkpublic java.lang.String getConnector()
public void setConnector(java.lang.String connector)
connector - the connector to use for object creationpublic void setValue(java.lang.String key,
java.lang.String value)
key - Key for this attributevalue - value for this attributepublic java.lang.String getValue(java.lang.String key)
key - Key of the specific attributepublic void removeValue(java.lang.String key)
key - Key of the attribute to be removedpublic void removeAllAttributes()
public void setRemoteAccessPoint(java.lang.String accessPoint)
public java.lang.String getRemoteAccessPoint()
public POPAccessPoint getOriginAppService()
public void setOriginAppService(POPAccessPoint originAppService)
public void setTracking(boolean tracking)
public boolean isTracking()
public void setUPNP(boolean upnp)
public boolean isUPNPEnabled()
public boolean isEmpty()
public boolean deserialize(POPBuffer buffer)
deserialize in interface IPOPBasebuffer - The buffer to deserialize frompublic boolean serialize(POPBuffer buffer)
public void merge(ObjectDescription od)
od - The object description to be merged with this onepublic java.lang.String toString()
toString in class java.lang.Object