org.globus.ogsa.impl.samples.counter.routable.master
Class HostingEnvStarter
java.lang.Object
org.globus.ogsa.impl.samples.counter.routable.master.HostingEnvStarter
- All Implemented Interfaces:
- HostStarter, ProxyTargetStarter, java.lang.Runnable
- public class HostingEnvStarter
- extends java.lang.Object
- implements HostStarter, java.lang.Runnable
Method Summary |
java.lang.String |
getUserName(java.lang.Exception e)
The user name (not the principal, no spaces allowed)
of the person whose hosting environment is being started |
void |
run()
|
java.lang.String |
startProxyTarget(java.lang.String localServicePath,
java.lang.String targetEndpoint,
java.lang.Exception cause)
This call must block until everything is started. |
static void |
stopAll()
|
void |
targetCreated(java.lang.String localServicePath,
java.lang.String remoteTargetUrl,
java.lang.Exception e)
Called by the RedirectProvider after it has created a new target for
a new instance in the new hosting environment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HostingEnvStarter
public HostingEnvStarter()
stopAll
public static void stopAll()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getUserName
public java.lang.String getUserName(java.lang.Exception e)
- Description copied from interface:
HostStarter
- The user name (not the principal, no spaces allowed)
of the person whose hosting environment is being started
- Specified by:
getUserName
in interface HostStarter
targetCreated
public void targetCreated(java.lang.String localServicePath,
java.lang.String remoteTargetUrl,
java.lang.Exception e)
- Description copied from interface:
HostStarter
- Called by the RedirectProvider after it has created a new target for
a new instance in the new hosting environment.
This will look like
localServicePath="base/jobmanager/someJob"
remoteTargetUrl="http://127.0.0.1:8081/ogsa/services/rob/base/jobmanager/someJob"
^different port ^userName
This could be passed along to the MasterJobManager
it is the same value returned by
RedirectProvider.getTarget(localServicePath);
- Specified by:
targetCreated
in interface HostStarter
startProxyTarget
public java.lang.String startProxyTarget(java.lang.String localServicePath,
java.lang.String targetEndpoint,
java.lang.Exception cause)
throws java.lang.Exception
- Description copied from interface:
ProxyTargetStarter
- This call must block until everything is started.
It can return a new target endpoint if the call is to be redirected somewhere
different, it may also return null.
It must throw an exception or rethrow the one passed in if it makes
no attempt to do anything (otherwise the RedirectProvider will pointlessly try
the same call again).
If you need something from the MessageContext you can call
MessageContext.getCurrentContext()
- Specified by:
startProxyTarget
in interface ProxyTargetStarter
- Parameters:
localServicePath
- The name of the local object (ServiceProperties.SERVICE_PATH)targetEndpoint
- The url of the remote target to redirect requests to, can be null
if it was not specified initially and this is the first call.cause
- The exception thrown by the remote target (ie - service not found) or
null if the remote target was not initially specified and has never been called before.
- Throws:
java.lang.Exception
Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.