|
|||||||||
| Home >> All >> com >> flexstor >> flexdbserver >> [ services overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.flexstor.flexdbserver.services
Class ServiceQueue

java.lang.Objectcom.flexstor.flexdbserver.services.ServiceQueue
- public class ServiceQueue
- extends java.lang.Object
| Field Summary | |
private java.util.Hashtable |
sync_services
|
private java.util.Hashtable |
table
|
| Constructor Summary | |
ServiceQueue()
|
|
| Method Summary | |
void |
addItem(ServiceQueueItem assetMgr,
java.lang.String name)
|
ServiceQueueItem |
checkQueue(java.lang.String servicename)
|
java.lang.String |
findServiceRelationship(java.lang.String servicename)
When adding or checking the queue for a service; first we will see if the service is in a relationship with other services; we will do that by searching the sync_services hashtable and getting the identifier for the relation; if a identifier is not found; then the servicename is the actual element in the queue. |
boolean |
isServiceSynchronized(java.lang.String servicename)
|
void |
setServicesSynchronization(com.flexstor.common.util.PropertyMapper serviceMap)
Scan services in services.config looking for any synchronize_with property for creating relationship between services. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
table
private java.util.Hashtable table
sync_services
private java.util.Hashtable sync_services
| Constructor Detail |
ServiceQueue
public ServiceQueue()
| Method Detail |
addItem
public void addItem(ServiceQueueItem assetMgr, java.lang.String name)
checkQueue
public ServiceQueueItem checkQueue(java.lang.String servicename)
setServicesSynchronization
public void setServicesSynchronization(com.flexstor.common.util.PropertyMapper serviceMap)
- Scan services in services.config looking for any synchronize_with property
for creating relationship between services.
A relationship means that a service cannot be executed until another service in the
relationship is done.
The synchronize_with property will also ensure that the max_intances = 1
findServiceRelationship
public java.lang.String findServiceRelationship(java.lang.String servicename)
- When adding or checking the queue for a service; first we will see if the service is in a
relationship with other services; we will do that by searching the sync_services hashtable
and getting the identifier for the relation; if a identifier is not found; then the servicename
is the actual element in the queue.
isServiceSynchronized
public boolean isServiceSynchronized(java.lang.String servicename)
|
|||||||||
| Home >> All >> com >> flexstor >> flexdbserver >> [ services overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.flexstor.flexdbserver.services.ServiceQueue