|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.ksb.api.bus.support.AbstractServiceDefinition
public abstract class AbstractServiceDefinition
The definition of a service on the service bus.
| Constructor Summary | |
|---|---|
protected |
AbstractServiceDefinition()
|
| Method Summary | |
|---|---|
protected abstract ServiceConfiguration |
configure()
|
boolean |
equals(Object object)
|
Endpoint |
establishEndpoint()
Establishes and returns an Endpoint to this service which
generates the ServiceConfiguration for this service definition
as well as including the actual service implementation as provided by
ServiceDefinition.getService(). |
String |
getApplicationId()
Returns the id of the application which owns this service. |
Boolean |
getBusSecurity()
Returns true if this service is secured by standard KSB security features. |
String |
getCacheManager()
Returns the name of the cache manager to use. |
CredentialsType |
getCredentialsType()
Returns the type of security credentials that should be used when attempting to authorize access to this service. |
URL |
getEndpointUrl()
Returns the URL of the endpoint which provides this service. |
String |
getInstanceId()
Returns the id of the specific instance of the application which owns this service |
String |
getLocalServiceName()
|
String |
getMessageExceptionHandler()
Returns the name of the exception handler to invoke whenever messages to this service fail to be sent. |
Long |
getMillisToLive()
Returns the maximum amount of milliseconds a message to this service can live and attempt to be processed successfully by this service before it's forced into processing by it's exception handler. |
Integer |
getPriority()
Returns the processing priority for messages that are sent to this service. |
Integer |
getRetryAttempts()
Returns the retry attempts to use when processing messages sent to this service. |
Object |
getService()
Return the actual service implementation to publish and export to the service bus. |
ClassLoader |
getServiceClassLoader()
Returns the ClassLoader that should be set as the context
classloader on the thread prior to any invocations on the service |
QName |
getServiceName()
Returns the qualified name for this service. |
String |
getServiceNameSpaceURI()
|
String |
getServicePath()
Returns the url path to export the service under. |
String |
getServiceVersion()
Returns the version of this service. |
int |
hashCode()
|
boolean |
isQueue()
Return true if this service uses queue-style messaging, false if it uses topic-style messaging. |
void |
setApplicationId(String applicationId)
|
void |
setBusSecurity(Boolean busSecurity)
|
void |
setCacheManager(String cacheManager)
|
void |
setCredentialsType(CredentialsType credentialsType)
|
void |
setEndpointUrl(URL endpointUrl)
|
void |
setInstanceId(String instanceId)
|
void |
setLocalServiceName(String serviceName)
|
void |
setMessageExceptionHandler(String messageExceptionHandler)
|
void |
setMillisToLive(Long millisToLive)
|
void |
setPriority(Integer priority)
|
void |
setQueue(boolean queue)
|
void |
setRetryAttempts(Integer retryAttempts)
|
void |
setService(Object service)
|
void |
setServiceClassLoader(ClassLoader serviceClassLoader)
|
void |
setServiceName(QName serviceName)
|
void |
setServiceNameSpaceURI(String serviceNameSpaceURI)
|
void |
setServicePath(String servicePath)
|
void |
setServiceVersion(String serviceVersion)
|
String |
toString()
|
void |
validate()
Validates the service definition after creation of the service definition. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.kuali.rice.ksb.api.bus.ServiceDefinition |
|---|
getType |
| Constructor Detail |
|---|
protected AbstractServiceDefinition()
| Method Detail |
|---|
public Object getService()
ServiceDefinition
getService in interface ServiceDefinitionpublic void setService(Object service)
public String getLocalServiceName()
public void setLocalServiceName(String serviceName)
public String getMessageExceptionHandler()
ServiceDefinition
getMessageExceptionHandler in interface ServiceDefinitionpublic void setMessageExceptionHandler(String messageExceptionHandler)
public Integer getPriority()
ServiceDefinition
getPriority in interface ServiceDefinitionpublic void setPriority(Integer priority)
public boolean isQueue()
ServiceDefinition
isQueue in interface ServiceDefinitionpublic void setQueue(boolean queue)
public Integer getRetryAttempts()
ServiceDefinition
getRetryAttempts in interface ServiceDefinitionpublic void setRetryAttempts(Integer retryAttempts)
public QName getServiceName()
ServiceDefinition
getServiceName in interface ServiceDefinitionpublic void setServiceName(QName serviceName)
public URL getEndpointUrl()
ServiceDefinition
getEndpointUrl in interface ServiceDefinitionpublic void setEndpointUrl(URL endpointUrl)
public void setCredentialsType(CredentialsType credentialsType)
public CredentialsType getCredentialsType()
ServiceDefinition
getCredentialsType in interface ServiceDefinitionpublic String getServiceVersion()
ServiceDefinition
getServiceVersion in interface ServiceDefinitionpublic void setServiceVersion(String serviceVersion)
public String getApplicationId()
ServiceDefinition
getApplicationId in interface ServiceDefinitionpublic void setApplicationId(String applicationId)
public String getInstanceId()
ServiceDefinition
getInstanceId in interface ServiceDefinitionpublic void setInstanceId(String instanceId)
public ClassLoader getServiceClassLoader()
ServiceDefinitionClassLoader that should be set as the context
classloader on the thread prior to any invocations on the service
getServiceClassLoader in interface ServiceDefinitionpublic void setServiceClassLoader(ClassLoader serviceClassLoader)
public String getCacheManager()
ServiceDefinition
getCacheManager in interface ServiceDefinitionpublic void setCacheManager(String cacheManager)
public void validate()
ServiceDefinition
validate in interface ServiceDefinitionpublic Endpoint establishEndpoint()
ServiceDefinitionEndpoint to this service which
generates the ServiceConfiguration for this service definition
as well as including the actual service implementation as provided by
ServiceDefinition.getService().
The ServiceDefinition.validate() method should be invoked prior to executing
this method in order to ensure that the appropriate internal state for
the ServiceDefinition has been established.
establishEndpoint in interface ServiceDefinitionprotected abstract ServiceConfiguration configure()
public String getServiceNameSpaceURI()
public void setServiceNameSpaceURI(String serviceNameSpaceURI)
public Long getMillisToLive()
ServiceDefinition
getMillisToLive in interface ServiceDefinitionpublic void setMillisToLive(Long millisToLive)
public Boolean getBusSecurity()
ServiceDefinition
getBusSecurity in interface ServiceDefinitionpublic void setBusSecurity(Boolean busSecurity)
public String getServicePath()
ServiceDefinition
getServicePath in interface ServiceDefinitionpublic void setServicePath(String servicePath)
servicePath - the servicePath to setpublic String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||