org.gridbus.broker.farming.common
Class ServerFactory

java.lang.Object
  extended by org.gridbus.broker.farming.common.ServerFactory

public final class ServerFactory
extends java.lang.Object

Author:
krishna

Constructor Summary
ServerFactory()
           
ServerFactory(java.lang.Object config)
           
 
Method Summary
 ComputeServer getComputeServer(int type, java.lang.String hostname)
          Creates an instance of a middle-ware specific computeserver, based on the specified "type".
 ComputeServer getComputeServer(int type, java.lang.String hostname, Dispatcher d)
           
 ComputeServer getComputeServer(int type, java.lang.String hostname, java.lang.String contactString)
          Creates an instance of a middle-ware specific computeserver, based on the specified "type".
 ComputeServer getComputeServer(java.lang.String hostname)
          Creates an instance of a middle-ware specific computeserver, based on the specified "type".
static int getServerType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerFactory

public ServerFactory(java.lang.Object config)
Parameters:
config - - optional configuration properties.

ServerFactory

public ServerFactory()
Method Detail

getServerType

public static int getServerType(java.lang.String type)
Parameters:
type -
Returns:

getComputeServer

public ComputeServer getComputeServer(java.lang.String hostname)
Creates an instance of a middle-ware specific computeserver, based on the specified "type". The middleware type is assumed to be Globus. The contactString is assumed to be the same as the hostname.

Parameters:
hostname -
Returns:

getComputeServer

public ComputeServer getComputeServer(int type,
                                      java.lang.String hostname)
Creates an instance of a middle-ware specific computeserver, based on the specified "type". The contactString is assumed to be the same as the hostname.

Parameters:
type -
hostname -
Returns:

getComputeServer

public ComputeServer getComputeServer(int type,
                                      java.lang.String hostname,
                                      Dispatcher d)
Parameters:
type -
hostname -
d -
Returns:

getComputeServer

public ComputeServer getComputeServer(int type,
                                      java.lang.String hostname,
                                      java.lang.String contactString)
Creates an instance of a middle-ware specific computeserver, based on the specified "type". For Globus the contactString is assumed to be in the form: :/ For Unicore it is assumed to be the gateway Url: [ssl://]: For Alchemi it is assumed to be the manager Webservice Url: http://

Parameters:
type -
hostname -
contactString -
Returns: