org.globus.ogsa.impl.core.service
Class ServiceLocator

java.lang.Object
  extended byService
      extended byorg.globus.ogsa.impl.core.service.ServiceLocator
All Implemented Interfaces:
GridLocator, javax.naming.Referenceable, java.io.Serializable

public class ServiceLocator
extends Service
implements GridLocator

extends client side Axis service with GSI and SOAP Extensibility elements

See Also:
Serialized Form

Constructor Summary
ServiceLocator()
           
ServiceLocator(EngineConfiguration config)
           
 
Method Summary
 java.net.URL getEndpoint()
           
 GSR getGSR()
          gets the GSR that was last resolved
 java.lang.Object getLocal(HandleType targetService)
           
 java.lang.Object getServicePort(java.net.URL endpointAddress)
          creates a proxy for a particular endpoint URL
 void setEnableCacheGSR(boolean enableCacheGSR)
          determines whether all stubs created by this locator should be associated with the same reference.
 void setStubClass(java.lang.Class stubClass)
          sets the stub class to be created, typically done by generated typed locators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Constructor Detail

ServiceLocator

public ServiceLocator()

ServiceLocator

public ServiceLocator(EngineConfiguration config)
Method Detail

setEnableCacheGSR

public void setEnableCacheGSR(boolean enableCacheGSR)
Description copied from interface: GridLocator
determines whether all stubs created by this locator should be associated with the same reference. It can be used to do lazy initialization of a proxy.

Specified by:
setEnableCacheGSR in interface GridLocator
Parameters:
enableCacheGSR - if set to true (false is default) the locator will cache resolved GSRs

getServicePort

public java.lang.Object getServicePort(java.net.URL endpointAddress)
                                throws GridServiceException
Description copied from interface: GridLocator
creates a proxy for a particular endpoint URL

Specified by:
getServicePort in interface GridLocator
Parameters:
endpointAddress - endpoint URL that will be used to send messages invoked on the proxy created by this method
Returns:
JAX-RPC compliant client stub (only service interface is typically exposed)
Throws:
GridServiceException

getLocal

public java.lang.Object getLocal(HandleType targetService)
                          throws GridServiceException
Throws:
GridServiceException

getEndpoint

public java.net.URL getEndpoint()

getGSR

public GSR getGSR()
Description copied from interface: GridLocator
gets the GSR that was last resolved

Specified by:
getGSR in interface GridLocator

setStubClass

public void setStubClass(java.lang.Class stubClass)
Description copied from interface: GridLocator
sets the stub class to be created, typically done by generated typed locators

Specified by:
setStubClass in interface GridLocator