org.gridbus.broker.farming.common
Class ServerFactory

java.lang.Object
  |
  +--org.gridbus.broker.farming.common.ServerFactory

public class ServerFactory
extends java.lang.Object

Author:
krishna

Constructor Summary
ServerFactory()
           
 
Method Summary
static ComputeServer getComputeServer(int type, java.lang.String hostname)
          Creates an instance of a middle-ware specific computeserver, based on the specified "type".
static 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".
static 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()
Method Detail

getServerType

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

getComputeServer

public static 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 static 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 static 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: