|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.parallel.util.Helper
public class Helper
See method description for details.
Nested Class Summary | |
---|---|
class |
Helper.SimpleConnectionThread
if a connection to the given resource is possible the ResourceProperties of this object are returned. |
Constructor Summary | |
---|---|
Helper()
|
Method Summary | |
---|---|
static void |
bind(String bindingName,
Remote bindingInstance,
int registryPort)
Bind the remote object's stub in the registry. |
static double[] |
calculateWeights(int[] ratings)
Calculates weights out of ratings. |
static Vector<ComputingResourceContainer> |
getResourceContainersForVector(Vector<ComputingResource> res)
Gets the remote resources from all given ComputingResource objects. |
static void |
unbind(String bindingName)
Unbinds a a stub from the registry! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Helper()
Method Detail |
---|
public static void bind(String bindingName, Remote bindingInstance, int registryPort) throws RemoteException
bindingName
- the name to be used for binding (with port specified, if necessary)bindingInstance
- an instance of the type to bind to the registryregistryPort
- the default registry port
RemoteException
- if something goes wrongpublic static void unbind(String bindingName)
bindingName
- public static Vector<ComputingResourceContainer> getResourceContainersForVector(Vector<ComputingResource> res)
ComputingResource
objects.
For this all resources are queried. If a ressouce does not respond the
Resource is removed form the Vector(!!!!!) and a warning is given to the
logger.
res
- public static double[] calculateWeights(int[] ratings)
ratings
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |