org.gcube.data.tml.proxies
Class BindRequest

java.lang.Object
  extended by org.gcube.data.tml.proxies.BindRequest

public class BindRequest
extends Object

The input model for a call to the factory.

Author:
Fabio Simeoni

Constructor Summary
BindRequest(String plugin)
          Creates a new instance
BindRequest(String plugin, Element payload)
          Creates a new instance
BindRequest(String plugin, Element payload, boolean broadcast)
          Creates a new instance
 
Method Summary
 boolean equals(Object obj)
           
 Element getPayload()
          Returns the input specific to the plugin.
 String getPlugin()
          Returns the name of the target plugin.
 int hashCode()
           
 boolean isBroadcast()
          Indicates whether the input is to be broadcast to other service endpoints.
 void setBroadcast(boolean broadcast)
          Indicates whether the input is to be broadcasted to other running instances.
 void setPayload(Element payload)
          Sets the input specific to the plugin.
 void setPlugin(String name)
          Sets the name of the target plugin.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindRequest

public BindRequest(String plugin)
Creates a new instance


BindRequest

public BindRequest(String plugin,
                   Element payload)
Creates a new instance


BindRequest

public BindRequest(String plugin,
                   Element payload,
                   boolean broadcast)
Creates a new instance

Method Detail

getPlugin

public String getPlugin()
Returns the name of the target plugin.

Returns:
the name

setPlugin

public void setPlugin(String name)
               throws IllegalArgumentException
Sets the name of the target plugin.

Parameters:
name - the name
Throws:
IllegalArgumentException - if the name is null

isBroadcast

public boolean isBroadcast()
Indicates whether the input is to be broadcast to other service endpoints.

Returns:
true if it is, falseotherwise

setBroadcast

public void setBroadcast(boolean broadcast)
Indicates whether the input is to be broadcasted to other running instances.

Parameters:
broadcast - true if it is, falseotherwise

getPayload

public Element getPayload()
Returns the input specific to the plugin.

Returns:
the input

setPayload

public void setPayload(Element payload)
Sets the input specific to the plugin.

Parameters:
payload - the input.
Throws:
IllegalArgumentException - if the payload is null

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.