public class JobManagerConfig
extends java.lang.Object
| Constructor and Description |
|---|
JobManagerConfig() |
| Modifier and Type | Method and Description |
|---|---|
POPNetworkDetails[] |
availableNetworks()
Array of networks available locally
|
void |
changeAvailableBandwidth(float limit)
Change the value of available bandwidth on the job manager
|
void |
changeAvailableMemory(float limit)
Change the value of available memory on the job manager
|
void |
changeAvailablePower(float limit)
Change the value of available power on the job manager
|
void |
changeMaxJobBandwidth(float limit)
Change the value maximal bandwidth an object can request
|
void |
changeMaxJobLimit(int limit)
Change the maximal number of object that can be create with this job manager
|
void |
changeMaxJobMemory(float limit)
Change the value maximal memory an object can request
|
void |
changeMaxJobPower(float limit)
Change the value maximal power an object can request
|
POPNetworkDetails |
createNetwork(java.lang.String friendlyName)
Create a new network of interest, return the details with UUID.
|
POPNetworkDetails |
createNetwork(java.lang.String networkUUID,
java.lang.String friendlyName)
Create a new network of interest, return the details with UUID.
|
void |
dump()
Deprecated.
Should removed in production
|
boolean |
generateKeyStore(KeyStoreDetails ksDetails,
KeyPairDetails keyDetails)
Generate a KeyStore with private key and certificate.
|
Resource |
getInitialAvailableResources()
The initial capacity of the node
|
Resource |
getJobResourcesLimit()
The upper limit for each job
|
int |
getMaxJobs()
The maximum number of simultaneous object available on the JM machine
|
POPNode[] |
networkNodes(java.lang.String networkUUID)
All the node available in a network Use
POPNode.getConnectorDescriptor() to know which type you are working
with. |
boolean |
publishTFCObject(java.lang.Object object,
java.lang.String tfcNetworkUUID,
java.lang.String secret)
Register a POPObject and make it available for discovery in a network
|
void |
registerNode(java.lang.String networksUUID,
POPNode node)
Add a new Node/Friend to a network
|
void |
registerNode(java.lang.String networkUUID,
POPNode node,
java.security.cert.Certificate certificate)
Register a new node with a certificate associated to it
|
void |
removeNetwork(java.lang.String networkUUID)
Remove a network of interest with all its members
|
void |
setConfigurationFileLocation(java.io.File location)
Change configuration file location.
|
void |
unregisterNode(java.lang.String networkUUID,
POPNode node)
Remove a Node/Friend from a network
|
void |
withdrawnTFCObject(java.lang.Object object,
java.lang.String tfcNetworkUUID,
java.lang.String secret)
Unregister a POPObject from the local JobManager
|
public boolean publishTFCObject(java.lang.Object object,
java.lang.String tfcNetworkUUID,
java.lang.String secret)
object - the object to publishtfcNetworkUUID - in which network should the object be visible insecret - a secret to un-register the object manually, if the object dies it
will un-register itselfpublic void withdrawnTFCObject(java.lang.Object object,
java.lang.String tfcNetworkUUID,
java.lang.String secret)
object - the object to publishtfcNetworkUUID - the network the object is registered insecret - the secret used when the object was publishedpublic void registerNode(java.lang.String networksUUID,
POPNode node)
networksUUID - The name of the networknode - A network node implementationpublic void registerNode(java.lang.String networkUUID,
POPNode node,
java.security.cert.Certificate certificate)
networkUUID - Name of the networknode - The node to addcertificate - The certificate to usepublic void unregisterNode(java.lang.String networkUUID,
POPNode node)
networkUUID - The name of the networknode - A network node implementationpublic POPNetworkDetails createNetwork(java.lang.String friendlyName)
friendlyName - A friendly name to identify the network locally.public POPNetworkDetails createNetwork(java.lang.String networkUUID, java.lang.String friendlyName)
networkUUID - The UUID the network will usefriendlyName - A friendly name to identify the network locally.public void removeNetwork(java.lang.String networkUUID)
networkUUID - the network to removepublic void changeAvailablePower(float limit)
limit - the new power limitpublic void changeAvailableMemory(float limit)
limit - the new memory limitpublic void changeAvailableBandwidth(float limit)
limit - the new bandwidth limitpublic void changeMaxJobLimit(int limit)
limit - the new limit of spawned objectspublic void changeMaxJobPower(float limit)
limit - the upper power an object can have allocatedpublic void changeMaxJobMemory(float limit)
limit - the upper memory an object can have allocatedpublic void changeMaxJobBandwidth(float limit)
limit - the upper bandwidth an object can have allocatedpublic POPNetworkDetails[] availableNetworks()
public POPNode[] networkNodes(java.lang.String networkUUID)
POPNode.getConnectorDescriptor() to know which type you are working
with.networkUUID - the network we want to know the nodespublic boolean generateKeyStore(KeyStoreDetails ksDetails, KeyPairDetails keyDetails)
SSLUtils.generateKeyStore(ch.icosys.popjava.core.util.ssl.KeyStoreDetails, ch.icosys.popjava.core.util.ssl.KeyPairDetails)ksDetails - the details of the keystorekeyDetails - the details about the private keypublic void setConfigurationFileLocation(java.io.File location)
throws java.io.IOException
location - The new location of the configuration file.java.io.IOException - If you can't write in the location specified.public Resource getInitialAvailableResources()
public Resource getJobResourcesLimit()
public int getMaxJobs()
@Deprecated public void dump()