public class ApplicationManagement
extends java.lang.Object
This class will
ApplicationType
object back to XML file with the same
schema.
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationManagement.SortedProperties
This inner-class extends java.util.Properties with all properties sorted
alphabetically.
|
Constructor and Description |
---|
ApplicationManagement(java.io.File xmlFile) |
Modifier and Type | Method and Description |
---|---|
static <A extends com.tibco.xmlns.applicationmanagement.ActionType> |
addAction(com.tibco.xmlns.applicationmanagement.Actions actions,
A action) |
protected static <E extends com.tibco.xmlns.applicationmanagement.EventType> |
addEvent(com.tibco.xmlns.applicationmanagement.Events events,
E event) |
static <E extends fr.fastconnect.factory.tibco.bw.maven.packaging.monitoring.AbstractEvent> |
addEvent(com.tibco.xmlns.applicationmanagement.Events events,
E event) |
void |
addMonitoringEventsToAllServices(com.tibco.xmlns.applicationmanagement.Events events)
Add <events> in <monitor> element of all <bw> elements.
|
protected java.util.Properties |
getAdapterArchives()
This method focuses on all child elements of
|
protected <T extends com.tibco.xmlns.applicationmanagement.ServiceType> |
getBindings(T service)
This method focuses on bindings found in these paths :
"/application/services/bw/bindings/binding"
"/application/services/adapter/bindings/binding"
|
protected java.util.Properties |
getCheckpoints(com.tibco.xmlns.applicationmanagement.Bw bwService)
This method focuses on checkpoints found in this path :
"/application/services/bw/checkpoints/checkpoint"
|
java.lang.String |
getContact() |
java.lang.String |
getDescription() |
java.lang.Object |
getElement(java.lang.String path,
java.lang.String element,
java.lang.String value,
java.lang.Object parent)
This method will create JAXB objects from Properties through recursive
calls.
|
protected java.util.Properties |
getFaultTolerant(com.tibco.xmlns.applicationmanagement.Bw bwService)
This method focuses on faultTolerant object found in this path :
"/application/services/bw/faultTolerant"
|
java.util.Properties |
getGlobalVariables()
The Global Variables are inside the NVPairs element with @name attribute
equals to "Global Variables" at the root level.
|
java.util.List<java.lang.String> |
getInstancesNames(boolean onlyEnabledServices) |
java.lang.String |
getMaxDeploymentRevision() |
com.tibco.xmlns.applicationmanagement.Monitor |
getMonitor(java.lang.String service) |
java.lang.String |
getName() |
protected java.util.Properties |
getProcessArchives()
This method focuses on all child elements of
|
protected java.util.Properties |
getProcesses(com.tibco.xmlns.applicationmanagement.Bw bwService)
This method focuses on processes found in this path :
"/application/services/bw/bwprocesses/bwprocess"
|
com.tibco.xmlns.applicationmanagement.RepoInstances |
getRepoInstances() |
java.util.Properties |
getServices() |
void |
removeDefaultBindingIfNotExists(java.util.Properties properties)
This will remove from the XML the default binding (with empty name
attribute) if it is not found in the properties.
|
void |
removeDuplicateBinding()
This will remove from the XML the second duplicate default binding (with
empty name attribute) to keep only the first one.
|
void |
save()
This will marshall the object back to the XML file.
|
void |
setContact(java.lang.String contact) |
void |
setDescription(java.lang.String description) |
void |
setGlobalVariable(java.lang.String key,
java.lang.String value) |
void |
setMaxDeploymentRevision(java.lang.String maxDeploymentRevision) |
void |
setName(java.lang.String name) |
public ApplicationManagement(java.io.File xmlFile) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void save() throws javax.xml.bind.JAXBException
This will marshall the object back to the XML file.
javax.xml.bind.JAXBException
public java.util.List<java.lang.String> getInstancesNames(boolean onlyEnabledServices)
public java.util.Properties getGlobalVariables()
The Global Variables are inside the NVPairs element with @name attribute equals to "Global Variables" at the root level.
ApplicationManagement.SortedProperties
object.public void setGlobalVariable(java.lang.String key, java.lang.String value)
public java.util.Properties getServices()
protected java.util.Properties getProcessArchives()
This method focuses on all child elements of
protected java.util.Properties getAdapterArchives()
This method focuses on all child elements of
protected <T extends com.tibco.xmlns.applicationmanagement.ServiceType> java.util.Properties getBindings(T service)
This method focuses on bindings found in these paths : "/application/services/bw/bindings/binding" "/application/services/adapter/bindings/binding"
protected java.util.Properties getProcesses(com.tibco.xmlns.applicationmanagement.Bw bwService)
This method focuses on processes found in this path : "/application/services/bw/bwprocesses/bwprocess"
protected java.util.Properties getCheckpoints(com.tibco.xmlns.applicationmanagement.Bw bwService)
This method focuses on checkpoints found in this path : "/application/services/bw/checkpoints/checkpoint"
protected java.util.Properties getFaultTolerant(com.tibco.xmlns.applicationmanagement.Bw bwService)
This method focuses on faultTolerant object found in this path : "/application/services/bw/faultTolerant"
public java.lang.Object getElement(java.lang.String path, java.lang.String element, java.lang.String value, java.lang.Object parent)
This method will create JAXB objects from Properties through recursive calls. Each property has a path. The last part of a path (after last /) is the element.
public void removeDuplicateBinding()
This will remove from the XML the second duplicate default binding (with empty name attribute) to keep only the first one. This is is because "AppManage -export -max" exports two empty bindings to prepare fault tolerance configuration.
public void removeDefaultBindingIfNotExists(java.util.Properties properties)
This will remove from the XML the default binding (with empty name attribute) if it is not found in the properties.
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getContact()
public java.lang.String getMaxDeploymentRevision()
public void setName(java.lang.String name)
public void setContact(java.lang.String contact)
public void setDescription(java.lang.String description)
public void setMaxDeploymentRevision(java.lang.String maxDeploymentRevision)
public com.tibco.xmlns.applicationmanagement.RepoInstances getRepoInstances()
public com.tibco.xmlns.applicationmanagement.Monitor getMonitor(java.lang.String service)
public static <E extends fr.fastconnect.factory.tibco.bw.maven.packaging.monitoring.AbstractEvent> void addEvent(com.tibco.xmlns.applicationmanagement.Events events, E event)
protected static <E extends com.tibco.xmlns.applicationmanagement.EventType> void addEvent(com.tibco.xmlns.applicationmanagement.Events events, E event)
public static <A extends com.tibco.xmlns.applicationmanagement.ActionType> void addAction(com.tibco.xmlns.applicationmanagement.Actions actions, A action)
public void addMonitoringEventsToAllServices(com.tibco.xmlns.applicationmanagement.Events events)
events
-