public class ServiceManifest extends CloneableDataObject
Title: Service Event Fabric Core
Description: Registry for service descriptors.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
ServiceManifest() |
Modifier and Type | Method and Description |
---|---|
void |
addService(ServiceDescriptor service)
Adds service to the tail of the manifest.
|
void |
addServiceAt(int index,
ServiceDescriptor service)
Adds service to the specified position.
|
void |
clear() |
ServiceManifest |
clone()
Clones the object.
|
void |
enableServiceManifest(boolean value) |
boolean |
existsService(java.lang.String serviceName) |
java.util.Date |
getLastModified() |
ServiceDescriptor |
getService(java.lang.String fullName) |
int |
getServiceSequence(java.lang.String serviceName)
Returns sequence of the service in the manifest.
|
int |
getStartTimeout()
Returns timeout which is used for service start.
|
boolean |
isAbortOnFailure() |
boolean |
isManifestUsed() |
boolean |
isStartOnSuspectDataspace()
Checks if services have to be started even when dataspace store is suspect.
|
void |
removeService(int position)
Removes service on the specified position from the manifest.
|
void |
removeService(ServiceDescriptor service)
Removes service from the manifest.
|
boolean |
removeService(java.lang.String type,
java.lang.String name)
Removes service with specified type and name from the manifest.
|
java.util.List |
services() |
void |
setAbortOnFailure(boolean abort) |
void |
setServiceSequence(java.lang.String serviceName,
int sequence)
Changes service sequence to the specified.
|
void |
setStartOnSuspectDataspace(boolean value)
Specifies whether services have to be started even when dataspace store is suspect (recovery failed or store corrupted).
|
void |
setStartTimeout(int timeout)
Sets a service start timeout.
|
void |
touch() |
void |
useManifest(boolean value) |
getSerialVersionUID
public int getStartTimeout()
public void setStartTimeout(int timeout)
timeout
- the start timeout of a service.public void setAbortOnFailure(boolean abort)
public boolean isAbortOnFailure()
public void setStartOnSuspectDataspace(boolean value)
public boolean isStartOnSuspectDataspace()
public void addService(ServiceDescriptor service)
service
- the service to be added.public void addServiceAt(int index, ServiceDescriptor service) throws ServiceManagerException
index
- the index of added service.service
- the service to be added.ServiceManagerException
public void removeService(ServiceDescriptor service)
service
- the service to be removed.public boolean removeService(java.lang.String type, java.lang.String name)
type
- the type of the removed service.name
- the name of the removed service.public boolean existsService(java.lang.String serviceName)
public ServiceDescriptor getService(java.lang.String fullName)
public void removeService(int position)
position
- the position of the removed service.public java.util.List services()
public boolean isManifestUsed()
public void useManifest(boolean value)
public int getServiceSequence(java.lang.String serviceName)
serviceName
- the full name of the service.public void setServiceSequence(java.lang.String serviceName, int sequence) throws ServiceManagerException
serviceName
- the full name of the service.sequence
- the new sequence of the service.ServiceManagerException
public java.util.Date getLastModified()
public void touch()
public void clear()
public void enableServiceManifest(boolean value)
public ServiceManifest clone()
CloneableDataObject
clone
in interface CloneableObject
clone
in class CloneableDataObject
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.