|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.service.helper.ServiceInput
This class implements a service input object used for executing a service.
Field Summary | |
static java.lang.String |
FUNCTION_NAME
Tag for a function name |
static java.lang.String |
REQUEST_TAG
Tag for a service request tag |
static java.lang.String |
SERVICE_ID
Tag for a service id |
static java.lang.String |
SERVICE_INPUT
Tag for a service input |
static java.lang.String |
SERVICE_NAME
Tag for a service name |
Constructor Summary | |
ServiceInput(DataObject data)
Basic constructor that creates a serviceInput object from a DataObject. |
|
ServiceInput(java.lang.String service,
java.lang.String function,
Attributes input)
Basic constructor that creates a serviceInput object for a synchronous services. |
|
ServiceInput(java.lang.String serviceId,
java.lang.String service,
java.lang.String function,
Attributes input,
java.lang.String host,
int port,
java.lang.String id,
java.lang.String requestTag)
Basic constructor that creates a serviceInput object for an asynchronous services. |
|
ServiceInput(java.lang.String serviceId,
java.lang.String service,
java.lang.String function,
Attributes input,
java.lang.String host,
java.lang.String port,
java.lang.String id,
java.lang.String requestTag)
Basic constructor that creates a serviceInput object for an asynchronous services. |
Method Summary | |
java.lang.String |
getFunctionName()
Returns the requested service function name. |
java.lang.String |
getHostname()
Returns the requester's hostname. |
java.lang.String |
getId()
Returns the requester's id. |
Attributes |
getInput()
Returns the input to the service. |
java.lang.String |
getPort()
Returns the requester's port. |
java.lang.String |
getRequestTag()
Returns the requester's requesting tag |
java.lang.String |
getServiceId()
Returns the id of the component offering the service. |
java.lang.String |
getServiceName()
Returns the requested service name. |
java.lang.String |
getUniqueId()
Returns the requester's unique id. |
void |
setFunctionName(java.lang.String function)
Sets the requested service function name. |
void |
setHostname(java.lang.String host)
Sets the requester's hostname. |
void |
setId(java.lang.String id)
Sets the requester's id. |
void |
setInput(Attributes input)
Sets the input to the service. |
void |
setPort(java.lang.String port)
Sets the requester's port. |
void |
setRequestTag(java.lang.String requestTag)
Sets the requester's request tag. |
void |
setServiceId(java.lang.String serviceId)
Sets the id of the component offering the service. |
void |
setServiceName(java.lang.String service)
Sets the requested service name. |
DataObject |
toDataObject()
This method converts the service input info to a DataObject |
java.lang.String |
toString()
This method returns a printable version of this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String SERVICE_INPUT
public static final java.lang.String SERVICE_ID
public static final java.lang.String SERVICE_NAME
public static final java.lang.String FUNCTION_NAME
public static final java.lang.String REQUEST_TAG
Constructor Detail |
public ServiceInput(java.lang.String service, java.lang.String function, Attributes input)
service
- Name of the service to executefunction
- Name of the service function to executepublic ServiceInput(java.lang.String serviceId, java.lang.String service, java.lang.String function, Attributes input, java.lang.String host, int port, java.lang.String id, java.lang.String requestTag)
serviceId
- Id of the component offering the serviceservice
- Name of the service to executefunction
- Name of the service function to executehost
- Hostname of the component requesting the serviceport
- Port of the component requesting the servicepublic ServiceInput(java.lang.String serviceId, java.lang.String service, java.lang.String function, Attributes input, java.lang.String host, java.lang.String port, java.lang.String id, java.lang.String requestTag)
serviceId
- Id of the component offering the serviceservice
- Name of the service to executefunction
- Name of the service function to executehost
- Hostname of the component requesting the serviceport
- Port of the component requesting the servicepublic ServiceInput(DataObject data)
Method Detail |
public DataObject toDataObject()
public void setServiceId(java.lang.String serviceId)
serviceId
- Id of the component offering the servicepublic java.lang.String getServiceId()
public void setServiceName(java.lang.String service)
public java.lang.String getServiceName()
public void setFunctionName(java.lang.String function)
public java.lang.String getFunctionName()
public void setInput(Attributes input)
input
- Attributes for the service to operate withpublic Attributes getInput()
public void setHostname(java.lang.String host)
host
- Hostname of the requesterpublic java.lang.String getHostname()
public void setPort(java.lang.String port)
port
- Port of the requesterpublic java.lang.String getPort()
public void setId(java.lang.String id)
id
- Id of the requesterpublic java.lang.String getId()
public void setRequestTag(java.lang.String requestTag)
requestTag
- Tag for the requester's requestpublic java.lang.String getRequestTag()
public java.lang.String getUniqueId()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |