|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ServiceDefinition
public void setService(Object service)
public String getLocalServiceName()
public void setLocalServiceName(String serviceName)
public String getMessageExceptionHandler()
ServiceDefinition
getMessageExceptionHandler
in interface ServiceDefinition
public void setMessageExceptionHandler(String messageExceptionHandler)
public Integer getPriority()
ServiceDefinition
getPriority
in interface ServiceDefinition
public void setPriority(Integer priority)
public boolean isQueue()
ServiceDefinition
isQueue
in interface ServiceDefinition
public void setQueue(boolean queue)
public Integer getRetryAttempts()
ServiceDefinition
getRetryAttempts
in interface ServiceDefinition
public void setRetryAttempts(Integer retryAttempts)
public QName getServiceName()
ServiceDefinition
getServiceName
in interface ServiceDefinition
public void setServiceName(QName serviceName)
public URL getEndpointUrl()
ServiceDefinition
getEndpointUrl
in interface ServiceDefinition
public void setEndpointUrl(URL endpointUrl)
public void setCredentialsType(CredentialsType credentialsType)
public CredentialsType getCredentialsType()
ServiceDefinition
getCredentialsType
in interface ServiceDefinition
public String getServiceVersion()
ServiceDefinition
getServiceVersion
in interface ServiceDefinition
public void setServiceVersion(String serviceVersion)
public String getApplicationId()
ServiceDefinition
getApplicationId
in interface ServiceDefinition
public void setApplicationId(String applicationId)
public String getInstanceId()
ServiceDefinition
getInstanceId
in interface ServiceDefinition
public void setInstanceId(String instanceId)
public ClassLoader getServiceClassLoader()
ServiceDefinition
ClassLoader
that should be set as the context
classloader on the thread prior to any invocations on the service
getServiceClassLoader
in interface ServiceDefinition
public void setServiceClassLoader(ClassLoader serviceClassLoader)
public String getCacheManager()
ServiceDefinition
getCacheManager
in interface ServiceDefinition
public void setCacheManager(String cacheManager)
public void validate()
ServiceDefinition
validate
in interface ServiceDefinition
public Endpoint establishEndpoint()
ServiceDefinition
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()
.
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 ServiceDefinition
protected abstract ServiceConfiguration configure()
public String getServiceNameSpaceURI()
public void setServiceNameSpaceURI(String serviceNameSpaceURI)
public Long getMillisToLive()
ServiceDefinition
getMillisToLive
in interface ServiceDefinition
public void setMillisToLive(Long millisToLive)
public Boolean getBusSecurity()
ServiceDefinition
getBusSecurity
in interface ServiceDefinition
public void setBusSecurity(Boolean busSecurity)
public String getServicePath()
ServiceDefinition
getServicePath
in interface ServiceDefinition
public void setServicePath(String servicePath)
servicePath
- the servicePath to setpublic String toString()
toString
in class Object
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |