org.globus.ogsa.router
Interface ProxyTargetStarter
- All Known Subinterfaces:
- HostStarter
- All Known Implementing Classes:
- HostingEnvStarter
- public interface ProxyTargetStarter
Implement this interface if you want to start a remote service on demand, or
do something if the remote service fails.
Method Summary |
java.lang.String |
startProxyTarget(java.lang.String localServicePath,
java.lang.String targetEndpoint,
java.lang.Exception exception)
This call must block until everything is started. |
startProxyTarget
public java.lang.String startProxyTarget(java.lang.String localServicePath,
java.lang.String targetEndpoint,
java.lang.Exception exception)
throws java.lang.Exception
- 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()
- 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.exception
- 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.