org.semispace.ws.client
Class SemiSpaceProxy

java.lang.Object
  extended by org.semispace.ws.client.SemiSpaceProxy
All Implemented Interfaces:
org.semispace.SemiSpaceInterface

public class SemiSpaceProxy
extends Object
implements org.semispace.SemiSpaceInterface

Client side proxy of SemiSpace web services


Method Summary
 org.semispace.SemiEventRegistration notify(Object template, org.semispace.SemiEventListener listener, long duration)
          Notify is illegal to use in proxy
 Object read(Object template, long duration)
           
 Object readIfExists(Object template)
           
protected static WsSpace readSpaceServiceAsSpring()
          An alternative way of performing lookup
protected static WsSpace readSpaceServiceAsStandardPort()
           
protected static WsSpace readSpaceServiceAsStandardPort(String endpointAddress)
           
static org.semispace.SemiSpaceInterface retrieveSpace(String endpoint)
          Open WS connection to the defined end point.
protected static SemiSpaceProxy retrieveSpace(WsSpace space)
          This is a bit roundabout, but is used for junit purposes.
protected  void setSpace(WsSpace space)
           
 Object take(Object template, long duration)
           
 Object takeIfExists(Object template)
           
 org.semispace.SemiLease write(Object obj, long duration)
          TODO Consider fixing that null is always returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

retrieveSpace

public static org.semispace.SemiSpaceInterface retrieveSpace(String endpoint)
Open WS connection to the defined end point. This should be something similar to http://localhost:8080/semispace-war/services/space.


readSpaceServiceAsSpring

protected static WsSpace readSpaceServiceAsSpring()
An alternative way of performing lookup


readSpaceServiceAsStandardPort

protected static WsSpace readSpaceServiceAsStandardPort()

readSpaceServiceAsStandardPort

protected static WsSpace readSpaceServiceAsStandardPort(String endpointAddress)

retrieveSpace

protected static SemiSpaceProxy retrieveSpace(WsSpace space)
This is a bit roundabout, but is used for junit purposes.


notify

public org.semispace.SemiEventRegistration notify(Object template,
                                                  org.semispace.SemiEventListener listener,
                                                  long duration)
Notify is illegal to use in proxy

Specified by:
notify in interface org.semispace.SemiSpaceInterface

read

public Object read(Object template,
                   long duration)
Specified by:
read in interface org.semispace.SemiSpaceInterface

readIfExists

public Object readIfExists(Object template)
Specified by:
readIfExists in interface org.semispace.SemiSpaceInterface

take

public Object take(Object template,
                   long duration)
Specified by:
take in interface org.semispace.SemiSpaceInterface

takeIfExists

public Object takeIfExists(Object template)
Specified by:
takeIfExists in interface org.semispace.SemiSpaceInterface

write

public org.semispace.SemiLease write(Object obj,
                                     long duration)
TODO Consider fixing that null is always returned.

Specified by:
write in interface org.semispace.SemiSpaceInterface
Returns:
will presently ALWAYS return null, even when operation was a success.
See Also:
SemiSpaceInterface.write(java.lang.Object, long)

setSpace

protected void setSpace(WsSpace space)


Copyright © 2008-2012. All Rights Reserved.