uk.ac.ncl.cs.instantsoap.wsapi
Class BlockedInvocationResponse

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.wsapi.BlockedInvocationResponse

public class BlockedInvocationResponse
extends Object

Response from a potentially blocking invocation.

Mature instances of this class should have no null properties.

Author:
Cheng-Yang(Louis) Tang, Matthew Pocock

Constructor Summary
BlockedInvocationResponse()
          Make an empty instance.
BlockedInvocationResponse(UUID uuid, Map<String,String> result)
          Make an instance with the information provided.
 
Method Summary
 boolean equals(Object o)
           
 Map<String,String> getResults()
          Get the results map.
 UUID getUuid()
          Get the uuid of this response.
 int hashCode()
           
 void setResults(Map<String,String> results)
          Set the results map.
 void setUuid(UUID uuid)
          Set the uuid of this response.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockedInvocationResponse

public BlockedInvocationResponse()
Make an empty instance.


BlockedInvocationResponse

public BlockedInvocationResponse(UUID uuid,
                                 Map<String,String> result)
Make an instance with the information provided.

This method retains the results instance and takes ownership of it.

Parameters:
uuid - the UUID identifying the job that this response pertains to
result - a Map of the result names and values
Method Detail

getUuid

public UUID getUuid()
Get the uuid of this response.

Returns:
the UUID identifying the job this relates to

setUuid

public void setUuid(UUID uuid)
Set the uuid of this response.


getResults

public Map<String,String> getResults()
Get the results map.

This object still owns the map. Do not modify it.

Returns:
the Map containing the results.

setResults

public void setResults(Map<String,String> results)
Set the results map.

This object takes ownership of the map. Do not modify it.

Parameters:
results - the Map of result values

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008. All Rights Reserved.