wt.transfer.policy
Class StandardTransferPolicyService
java.lang.Object
wt.services.StandardManager
wt.transfer.policy.StandardTransferPolicyService
- All Implemented Interfaces:
- Manager, NetFactor, Serializable, TransferPolicyService
- public class StandardTransferPolicyService
- extends StandardManager
- implements TransferPolicyService, Serializable
Use the newStandardTransferPolicyService
static factory
method(s), not the StandardTransferPolicyService
constructor,
to construct instances of this class. Instances must be constructed
using the static factory(s), in order to ensure proper initialization
of the instance.
Supported API: false
Extendable: false
- See Also:
- Serialized Form
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Method Summary |
private Long |
addIds(ObjectGraphNode aNode,
Hashtable hashIds)
|
String |
getConceptualClassname()
Returns the conceptual (modeled) name for the class. |
private Element |
getFirstChildElementOf(Node node)
|
private Object |
getKeyFromHashtable(Hashtable hash,
Object element)
|
private Element |
getNextSiblingElementOf(Node node)
|
static StandardTransferPolicyService |
newStandardTransferPolicyService()
Default factory for the class. |
protected void |
performStartupProcess()
Overrides the startup process specific to the transfer service to
provide custom startup for event subscription. |
void |
registerEvents(ManagerService manager)
Overrides the registration of all applicable transfer service events
with the service manager. |
private String |
replace(String s,
String oldString,
String newString)
|
void |
replaceOids(Node node,
Hashtable table)
|
void |
stagingToTargetTransfer(ObjectGraph graph)
|
private void |
updateOids(ObjectGraphNode thisNode,
Long preOid,
Long postOid,
Hashtable hashIds,
Hashtable oidToNode,
Hashtable nodeToOid)
|
private String |
updateXmlWithMapping(String xml,
Hashtable mapping)
|
Methods inherited from class wt.services.StandardManager |
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
DefaultXMLParser
private static String DefaultXMLParser
StandardTransferPolicyService
public StandardTransferPolicyService()
getConceptualClassname
public String getConceptualClassname()
- Returns the conceptual (modeled) name for the class.
Supported API: true
- Specified by:
getConceptualClassname
in interface NetFactor
- Overrides:
getConceptualClassname
in class StandardManager
- Returns:
- String
registerEvents
public void registerEvents(ManagerService manager)
- Overrides the registration of all applicable transfer service events
with the service manager.
Supported API: false
- Specified by:
registerEvents
in interface Manager
- Overrides:
registerEvents
in class StandardManager
- Parameters:
manager
-
performStartupProcess
protected void performStartupProcess()
throws ManagerException
- Overrides the startup process specific to the transfer service to
provide custom startup for event subscription. During subscription
an anonymous inner class adapter is created per subscription to handle
each specific event of interest.
Supported API: false
- Overrides:
performStartupProcess
in class StandardManager
- Throws:
ManagerException
newStandardTransferPolicyService
public static StandardTransferPolicyService newStandardTransferPolicyService()
throws WTException
- Default factory for the class.
Supported API: false
- Returns:
- StandardTransferPolicyService
- Throws:
WTException
stagingToTargetTransfer
public void stagingToTargetTransfer(ObjectGraph graph)
throws TransferPolicyException
- Throws:
TransferPolicyException
getFirstChildElementOf
private Element getFirstChildElementOf(Node node)
getNextSiblingElementOf
private Element getNextSiblingElementOf(Node node)
addIds
private Long addIds(ObjectGraphNode aNode,
Hashtable hashIds)
updateOids
private void updateOids(ObjectGraphNode thisNode,
Long preOid,
Long postOid,
Hashtable hashIds,
Hashtable oidToNode,
Hashtable nodeToOid)
getKeyFromHashtable
private Object getKeyFromHashtable(Hashtable hash,
Object element)
replace
private String replace(String s,
String oldString,
String newString)
updateXmlWithMapping
private String updateXmlWithMapping(String xml,
Hashtable mapping)
replaceOids
public void replaceOids(Node node,
Hashtable table)
throws TransferPolicyException
- Throws:
TransferPolicyException