|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The ServiceProperties interface used to share properties between
delegation layers. This interface also gives services access to the
service specific configuration parameters provided in the deployment
descriptor. Further, it also allows services to get service meta data set by
the container. A ServiceProperties instance is typically
associated with one service instance and can contain both transient data,
as well as persistent data. Persistent properties can be checkpointed
to the deployment descriptor using the flush() method.
| Method Summary | |
void |
flush()
gives a hint that this property should be checkpointed to the deployment descriptor, it is however not guaranteed that the properties have been persisted when the method returns |
Object |
getPersistentProperty(String name)
gets a persistent property (checkpointed to deployment descriptor) keyed by name |
Object |
getProperty(String name)
gets a property keyed by name |
void |
setPersistentProperty(String name,
Object obj)
sets a persistent property (checkpointed to deployment descriptor) keyed by name |
void |
setProperty(String name,
Object obj)
sets a property keyed by name |
| Field Detail |
public static final String INSTANCE_PREFIX
public static final String PORT
public static final String CONFIG_PATH
public static final String PROTOCOL
public static final String FACTORY
public static final String WSDL
public static final String INSTANCE_WSDL
public static final String SCHEMA_LOCATION
public static final String HANDLE
public static final String FACTORY_HANDLE
public static final String ENDPOINT
public static final String DESTRUCTION_SKELETON
public static final String TIMEOUT
public static final String NAME
public static final String SERVICE_DATA
public static final String NOTIFICATION_SOURCE
public static final String GSR_DESCRIPTION
public static final String INSTANCE_GSR_DESCRIPTION
public static final String PERSISTENT_PROPERTIES
public static final String SERVICE_DEPLOYMENT
public static final String DEACTIVATED_PERSISTENT
public static final String DEACTIVATED_TRANSIENT
public static final String SINK_ID
public static final String INVOCATION_ID
public static final String ROUTER_HEADER
public static final String ROUTER_VIA
public static final String CONTAINS_REFERENCE
public static final String DEACTIVATED_STATE
STARTUP_STATE
property.
public static final String STARTUP_STATE
DEACTIVATED_STATE property.
The service state can be retrieved from the MessageContext
object embedded in the GridContext object available in
activate or postCreate GridService callback
methods.
public static final String CUSTOM_EXTENSIBILITY_SERIALIZER
public static final String CUSTOM_EXTENSIBILITY_DESERIALIZER
public static final String CUSTOM_MAPPING_REGISTERED
public static final String TIMESTAMP
public static final String ACTIVATION
public static final String LIFECYCLE_MONITOR
public static final String QUERY_ENGINE
public static final String NOTIFICATION_ENGINE
public static final String REDIRECT_RESOLVER
public static final String DESTROY_LISTENER
public static final String SERVICE_GROUP_PROVIDER
public static final String SERVICE_GROUP_ENTRY
public static final String LAZY_CREATION
public static final String FACTORY_PROVIDER
public static final String SCHEMA_PATH
public static final String INSTANCE_SCHEMA_PATH
public static final String LIFECYCLE
public static final String INSTANCE_LIFECYCLE
public static final String SERVICE_PATH
public static final String SERVICE_NODE
public static final String REGISTRY
public static final String INSTANCE_REGISTRY
public static final String HANDLE_PROTOCOL
public static final String HANDLE_PORT
public static final String PORT_TYPE
public static final String INSTANCE_PORT_TYPE
public static final String PORT_TYPE_NS
public static final String INSTANCE_PORT_TYPE_NS
public static final String WEBSTART_URL
public static final String WEBSTART_PANEL_NAME
public static final String SERVICE_ACTIVATOR
public static final String SERVICE_LOADER
public static final String NOTIFICATION_FACTORY
public static final String ACTIVATE_ON_STARTUP
public static final String BOOTSTRAP
public static final String PRIMARY_KEY
public static final String PERSISTENT
public static final String TRANSIENT
public static final String DEACTIVATION
DefaultServiceDeactivator lifecycle monitor
class. It indicates the idle time of the service before it gets
deactivated. It is specified in milliseconds. Value can be of either
String or Long type.
public static final String INSTANCE_DEACTIVATION
ServiceProperties.DEACTIVATION for details
public static final String LIFECYCLE_MONITOR_CLASS
public static final String RESOLVER_CACHE
public static final String FACTORY_CALLBACK
public static final String OPERATION_PROVIDERS
public static final String INTERFACE_CLASS_NAME
public static final String BASE_CLASS_NAME
public static final String SWEEP_SERVICE_DATA
public static final String ENTRY_INSTANCE_CREATION
public static final String DISABLE_FACTORY_REGISTRY
public static final String USER
public static final String FACTORY_REGISTRY
public static final String INSTANCE_CLASS
public static final String TYPE
public static final String CREATION_EXTENSIBILITY
DynamicFactoryCallbackImpl
public static final String CREATION_EXTENSIBILITY_OUTPUT
DynamicFactoryCallbackImpl
| Method Detail |
public Object getProperty(String name)
name - property key
public void setProperty(String name,
Object obj)
name - property keyobj - property value, if null the property will be removed
(if it exists)public Object getPersistentProperty(String name)
name - property key
public void setPersistentProperty(String name,
Object obj)
name - property keyobj - property value, if null the property will be removed
(if it exists)
public void flush()
throws ServicePropertiesException
ServicePropertiesException - if the properties could not be
persisted
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||