org.jclouds.reflect
Class InvocationSuccess

java.lang.Object
  extended by org.jclouds.reflect.InvocationSuccess

@Beta
public final class InvocationSuccess
extends Object

Holds the context of a successful call to Invokable.invoke(Object, Object...)

Author:
Adrian Cole

Method Summary
static InvocationSuccess create(Invocation invocation, Object result)
           
 boolean equals(Object o)
           
 Invocation getInvocation()
          what was invocation
 com.google.common.base.Optional<Object> getResult()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static InvocationSuccess create(Invocation invocation,
                                       @Nullable
                                       Object result)

getInvocation

public Invocation getInvocation()
what was invocation


getResult

public com.google.common.base.Optional<Object> getResult()

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

string

protected com.google.common.base.Objects.ToStringHelper string()


Copyright © 2009-2013 jclouds. All Rights Reserved.