org.ourgrid.common.url
Class UserAgentURLProvider

java.lang.Object
  extended by org.ourgrid.common.url.URLProvider
      extended by org.ourgrid.common.url.UserAgentURLProvider

public class UserAgentURLProvider
extends URLProvider

This class provides URLs for the main components of User Agent that needed to be remotely referenced.


Field Summary
static java.lang.String USERAGENT
           
static java.lang.String USERAGENT_UIMANAGER
           
 
Constructor Summary
UserAgentURLProvider()
           
 
Method Summary
static java.lang.String publishedObjects()
          This method is used like a common point to get the address of the all UserAgent published objects.
static java.lang.String shutdownManager()
          This method is used like a common point to get the address of the ShutdownManager.
static java.lang.String shutdownManager(java.lang.String name, java.lang.String port)
          This method is used like a common point to get the address of the ShutdownManager from a defined UserAgent.
static java.lang.String userAgent()
          This method builds an user agent URL based on the name and port number used on the ua.properties configuration file.
static java.lang.String userAgent(java.lang.String hostname, int port)
          This method builds a UserAgent URL based on a hostname and a port number.
static java.lang.String userAgentFailureDetector()
          This method is used like a common point to get the address of the UserAgent Failure Detector.
static java.lang.String userAgentUIManager()
          This method is used like a common point to get the address of the all UserAgent published objects.
 
Methods inherited from class org.ourgrid.common.url.URLProvider
getExternalName, getFullURL, getHost, getName, getPort, getPort, getScheme
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERAGENT_UIMANAGER

public static final java.lang.String USERAGENT_UIMANAGER
See Also:
Constant Field Values

USERAGENT

public static final java.lang.String USERAGENT
See Also:
Constant Field Values
Constructor Detail

UserAgentURLProvider

public UserAgentURLProvider()
Method Detail

userAgent

public static java.lang.String userAgent()
This method builds an user agent URL based on the name and port number used on the ua.properties configuration file.

Returns:
A well-formed URL for an UserAgentServer object.

userAgent

public static java.lang.String userAgent(java.lang.String hostname,
                                         int port)
This method builds a UserAgent URL based on a hostname and a port number.

Parameters:
hostname - Hostname used to build this URL.
port - TCP port number used to build this URL.
Returns:
A well formed URL for a UserAgent server object.

shutdownManager

public static java.lang.String shutdownManager()
This method is used like a common point to get the address of the ShutdownManager.

Returns:
the RMI URL that points to the ShutdownManager

shutdownManager

public static java.lang.String shutdownManager(java.lang.String name,
                                               java.lang.String port)
This method is used like a common point to get the address of the ShutdownManager from a defined UserAgent.

Parameters:
name - Host name of the User Agent.
port - Port of this UserAgent.
Returns:
the RMI URL that points to the ShutdownManager

publishedObjects

public static java.lang.String publishedObjects()
This method is used like a common point to get the address of the all UserAgent published objects.

Returns:
the RMI URL that points to all UserAgent published objects.

userAgentFailureDetector

public static java.lang.String userAgentFailureDetector()
This method is used like a common point to get the address of the UserAgent Failure Detector.

Returns:
the RMI URL that points to the UserAgent Failure Detector.

userAgentUIManager

public static java.lang.String userAgentUIManager()
This method is used like a common point to get the address of the all UserAgent published objects.

Returns:
the RMI URL that points to all UserAgent published objects.