public interface Service
Title: Open Service Framework
Description: This is the core interface for implementing an Open Service Framework
service.
A Service
has (edit documentation)
Life Cycle Management
Event Identity Management
Transport Factory Bindings and Connection Factory Persistence
Service Configuration and Configuration Artifact Persistence
Service Metric and Alert Registration
Global Variable Substitution support
Event Handler Registration
Native bindings for TruGrid Federated Directory Services (future)
Native bindings for Semantic Grid API (future to use Semantic Object Reference)
The service introduces some taxonomy that may prove helpful.
Object: A java Object
Artifact: An XML representation of the Object.
SCO: Service Configuration Object A service configuration object is used to configure one or more services.
It has a corresponding artifact in the Repository (SonicDS)
Entities such as the Pluggable Parser use SCO to create instances
of similarly configured Services.
SCA: Service Configuration Artifact
SAO: Service Access Object (There are usually 2, a Request and a Response)
SAA: Service Access Artifact (There are usually 2, a Request and a Response)
Transport Factory Object A Transport Factory Object implements the TransportFactory
interface
an is a generic mechanism for registering external transports in the
Service. The logic of mandating at most a single transport factory
object per service is rooted in the principles of Business Logic
Normalization. Overloading a single service to incorporate multiple
protocols reduces Process Visibility (because it blurs the
communication visibility boundary). If bridging of external transports
is required it is more effective to write several atomic services and
wire them together using an Itinerary or static pipes.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the service.
|
default int |
getMajorBuild()
Returns the major build number of the service
|
int |
getMajorVersion()
Returns the major version of the service.
|
int |
getMinorBuild()
Returns the minor build number of the service
|
int |
getMinorVersion()
Returns the minor version of the service.
|
java.lang.String |
getVersion()
Returns a string representation of the service version.
|
void |
init()
Initializes the service.
|
void |
resume()
Resumes the suspended service.
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
void |
suspend()
Suspends the service.
|
void init() throws ServiceFrameworkException
ServiceFrameworkException
- if some error occurs.void destroy() throws ServiceFrameworkException
ServiceFrameworkException
- if some error occurs.void start() throws ServiceFrameworkException
ServiceFrameworkException
- if some error occurs.void stop() throws ServiceFrameworkException
ServiceFrameworkException
- if some error occurs.void suspend() throws ServiceFrameworkException
ServiceFrameworkException
- if some error occurs.void resume() throws ServiceFrameworkException
ServiceFrameworkException
- if some error occurs.int getMajorVersion()
int getMinorVersion()
default int getMajorBuild()
int getMinorBuild()
java.lang.String getVersion()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.