Package com.nt.udc.admin.server
Class AdminServerImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.nt.udc.admin.server.AdminServerImpl
- All Implemented Interfaces:
AdminServer,AcctEventListener,Serializable,Remote,EventListener
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class java.rmi.server.RemoteObject
refFields inherited from interface com.nt.udc.admin.server.AdminServer
ADMIN_API_FACTORY_NAME, NODE_API_FACTORY_NAME, SNMP_ADMIN_API_NAME -
Constructor Summary
ConstructorsConstructorDescriptionAdminServerImpl(String inOSAHome, int port, int adminSvrRMIPortNum, int aPIMetaFactoryRMIPortNo) constructor without SSLAdminServerImpl(String inOSAHome, int port, int adminSvrRMIPortNum, int aPIMetaFactoryRMIPortNo, boolean withSSL) constructor for enabling SSL -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) voidaddRRNodeDestination(String sourceNodeId, String destNodeId) voidaddTrapHost(com.nt.udc.admin.TrapHost host) Adds a new host to the list of SNMP Trap Hostsprotected voidaddTrapHostList(com.nt.udc.admin.TrapHostList hosts, String nmIP, int nmPort) This is a method used by the AdminServerImple to push a complete TrapHostList down to a specific Node Hosts that it is managing.voidaddUser(com.nt.udc.admin.User userToAdd, com.nt.udc.admin.User authUser) Attempts to adduserToAddto the list of users for this Admin Server.voidIndicates that the properties of an Admin Server have changed.voidareNodesDeletable(Vector nodeIds) voidbackUpNode(String nodeId) voidvoidvoidvoidchangeRoutingToRR(String sourceNodeId, String destNodeId) voidcleanOutputBackupNodeChainTest(String testId) This method cleans output backed up as part of a Node Chain Test.voidclearNMAlarm(String inIPAddress, int inPort) voidclearNodeAlarm(String nodeId) voidvoidcompileNPL(byte[] nplContent) This method takes nplContent as input and checks for any compilation errorsvoidcompleteNodeChainTest(String testId) This method completes all the tasks required to conclude a Node Chain Test.voidcompleteNodeChainTest(String testId, boolean isStale) This method completes all the tasks required to conclude a Node Chain Test.voidcopyNPL(DCNodeTypeIfc inNodeType, String inRuleFileName) booleandeleteRuleFile(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inFileName) voidbyte[]exportWithCustomization(Vector nmListToExport, String exportName) Returns a byte array of Customization content which includes 1.byte[]exportWithCustomization(Vector nmList, Vector nodesToExport, String exportName) exportXMLSystemModel(Vector vctNMItemsToExport) exportXMLSystemModel(Vector nMItems, Vector nodesToExport) exportXMLSystemModelOfNodeChain(Vector nodesToExport) booleanextendTestTimeout(String testId) Extends the timeout duration for a test by the default timeout value, identified by the given testId.voidfileChanged(com.nt.udc.admin.FileItem file) Indicates that a system file changed.static StringReturns the LDAP DN for the Admin user of the system.booleangetAdminSvrAuth(String adminIp, String nodeIp, int nodePort) getAllLockedAndRunningTestNodesSharingRuleFile(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName) This method return Set of nodeIds which are using same RuleFile which are under Test.Gets the Admin Server Config object (really just a Hashtable).byte[]getASLog()booleanreturns true if authentication is enabledgetCartridgeVersionInfo(String ip, int port) getConfigValue(DCNodeTypeIfc inNodeType, String inRuleFileName, String inKey) Retrieves the lock information for the current import, if any.getCurrentPerformanceMetrics(String ip, int port) getDestNodesInNM(String srcNode, String host, Integer port) getDetailsAboutTest(String testId) Retrieves details about a specific test.static StringReturns the LDAP domain currently being used by the system.Returns the Host name of the Data Server.Returns the Port of the Data Server.getExposedFields(DCNodeTypeIfc inNodeType, String inRuleFileName, String inReason) static StringReturns the LDAP group which indicates the group that users belong to in the directory.The import customization log will be returned.getImportTask(String importId, String importTaskId) Retrieves information about a specific import task associated with the given import ID and task ID.getInputFields(DCNodeTypeIfc inNodeType, String inRuleFileName) getInputNodes(String nodeId) static StringReturns the URL of the LDAP directory that this AdminServer is using for user authentication.getLicensedSet(Set allTemplates) static Stringcom.nt.udc.admin.NMItemgetNMInvolvedInTestNodeChain(NodeChainTestCfgItemReadOnlyIfc testNodeChainConfig) Retrieves a mapping of Node Managers involved in the test node chain.byte[]getNMVersionInfo(String ip, int port) This method returns NodeChainTestCfg object.getNodeContext(String nodeId) com.nt.udc.admin.NodeInfogetNodeInfo(String inNodeId) Returns a Vector of NodeItem objectsReturns a Vector of NodeInfo objectsgetNodeList(String inIPAddress, int inPort) byte[]getNodeLog(String inNodeId) booleangetNodeMgrInfo(String inIPAddress, int inPort, boolean lastTryFailed) Refreshes the node list and node manager status of the NMItem object stored in the SystemModel.getOutputFields(DCNodeTypeIfc inNodeType, String inRuleFileName) getOutputNodeChainTest(String nodeId) This method returns data from output file/s for a node, as part of Node Chain Test.getOutputNodes(String inNodeId) intgetPort()booleangetResetPwdInfo(com.nt.udc.admin.User user) This method receives the reset password information for given userintgetRole(com.nt.udc.admin.User user, com.nt.udc.admin.User authUser) Returns the role of the user passed as argumentgetRoleFromDN(String dnName) byte[]getRuleFileContent(com.nt.udc.admin.NodeInfo info, String inFileName) getRuleFileDisplayName(String nodeContext, String ruleFileName) This methods returns the ruleFileDisplayName for a given rule file.intgetSecondsToPasswordExpiration(com.nt.udc.admin.User user) This method receives the seconds for password expiration of given userThis method returns the list of names of available descriptor files.com.nt.udc.admin.TemplategetTemplate(String templateId) getTemplateDef(String templateId) com.nt.udc.admin.TemplateTreeRootstatic longlongreturns the time out value for session expirycom.nt.udc.admin.TrapHostListGets list of known SNMP Trap HostsgetUserList(com.nt.udc.admin.User authUser) Retrieves the list of users that may access this Admin ServergroupNodesBasedOnNM(ArrayList<String> nodesIds) This function groups nodes managed by the same NM together.booleanhasAdminPriv(com.nt.udc.admin.User user) Indicates whether the given User has Administrative privileges for this Admin ServerbooleanimportCustomization(ArrayList nmMaps, byte[] contents) This method receives the content of nmx file from admin client and extracts customization archives of individual node managers and distributes them to appropriate node managers based on node manager map.voidimportSystemModel(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) voidinitRegistry(int rmiPort, int aPIMetaFactoryRMIPortNo) voidintegrateRouting(String epdcHost, Integer epdcPort) voidintegrateRoutingCCNMScaleUp(String ccHost, Integer ccPort) voidvoidbooleanbooleanisLicensed(String templateId) booleanisNodePartOfRunningTNC(String nodeId) This method validates whether a node is under test or not.booleanisReceiverValid(String reciverId) booleanisSystemRuleFile(com.nt.udc.admin.NodeInfo info, String inFileName) booleanloadRuleClass(String className) Attempts to load the given class name.voidloadXMLSystemModel(String xmlSystemModel) login(com.nt.udc.admin.User user) Authenticates the given uservoidlogout(com.nt.udc.admin.User user) Removes the userId from the AS's current list of usersstatic voidvoidmodifyTrapHost(com.nt.udc.admin.TrapHost oldhost, com.nt.udc.admin.TrapHost newhost) Modifies a host in the list of SNMP Trap HostsvoidmodifyUser(com.nt.udc.admin.User userToAdd, com.nt.udc.admin.User authUser, Boolean changePassword) Attempts to modify attributes foruserToModvoidnodeChanged(com.nt.udc.admin.NMItem nmItem) Indicates that the properties of a Node have changed.voidnodeManagerChanged(com.nt.udc.admin.NMItem nmItem) Indicates that the properties of a Node Manager have changed.voidnodeManagersAdded(Vector nmList) Indicates that one or more NodeManagers were added.voidnodeManagersRemoved(Vector nmList) Indicates that one or more NodeManagers were removed.voidnodePerformanceUpdate(Vector perfs) Indicates that node performance information was updated.voidnodesAdded(com.nt.udc.admin.NMItem nmItem) Indicates that a Node has been added to a particular Node Manager.voidnodesRemoved(com.nt.udc.admin.NMItem nmItem) Indicates that a Node has been removed from a particular Node Manager.booleannplChanged(com.nt.udc.admin.NodeInfo nodeInfo) Always returns true.voidperformConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo nodeInfo) voidperformConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo nodeInfo, String ipAddr, int port) voidvoidvoidregisterTNCEventReceiver(String id, TNCEventReceiverIfc tncRec, boolean registerForAllTests) Registers a TNC event receiver with optional registration for all tests.voidreloadNPL(com.nt.udc.admin.NodeInfo nodeInfo) booleanreMapWalletPassword(String nodeId, List<int[]> indicesList) This method is used to map wallet passwords from old index to new index.voidvoidremoveNM(com.nt.udc.admin.NMItem nmItem) voidvoidvoidremoveNodes(Vector inNodeIds) voidremoveOutputNodes(String inNodeId, Vector inNodeOutputs) removeRoute(String sourceNodeId, String destNodeId) voidremoveRRNodeDestination(String destNodeId) voidremoveTrapHost(com.nt.udc.admin.TrapHost host) Removes a host from the list of SNMP Trap HostsvoidremoveTrapHosts(Vector hosts) Removes a list of hosts from the SNMP Trap Hosts objectvoidremoveUsers(Vector userList, com.nt.udc.admin.User authUser) Attempts to remove the Users contained inuserListfrom the list of users for this Admin Server.replicateNode(String sourceNodeId, String destNodeManagerId) Replicates a node to with the given nodeId to a destination node manager.booleanReplicates the node manager based on the provided request.Initiates the execution of an import operation with the specified import ID.voidrunNodeChainTest(String uploadId, NodeChainTestCfgItem cfgItem) This method writes test cfg item to nodeChainTest.cfg file and runs all the nodes which are part of node chain under test.booleanscaleDownNodeManager(String nmId, boolean isPreBackupCleanup) scaleDown node manager based on the provided flag.static voidsetAdminDN(String newDN) Sets the LDAP DN for the Admin user of the system.voidsetASConfig(Hashtable asConfig) Sets the Admin Server Config object.voidsetDirConnection(DirectoryConnection dirconn) static voidSets the LDAP domain to be used by the system.static voidsetGroupInfo(String newGroup) Sets the LDAP group which indicates the group that users should belong to in the directory.voidsetImportExportProperty(String[][] newNmMap) static voidsetLdapURL(String newURL) Sets the URL of the LDAP directory that this AdminServer is using for user authentication.static voidsetMemberInfo(String info) static voidthis method is used for unit testsvoidsetNodeDescription(com.nt.udc.admin.NodeInfo nInfo) Replaces the NodeInfo object withnodeInfofor the given Node contained innodeInfo.voidsetNodeInfo(com.nt.udc.admin.NodeInfo nodeInfo) Locates the reference to nodeManager for the given nodeId, and invokes the setNodeInfo() method of the nodeManager located, with the given nodeInfo.voidsetOutputNodes(String inNodeId, Vector inNodeOutputs) voidsetRefreshInterval(long inRefInt) static voidsetTimeoutValue(long value) voidshutdown()shutdown the admin servervoidshutdown(int exitCode) voidstartAllNodes(String inIPAddress, int inPort) voidstartNodes(Vector inNodeIds) voidstartNodesInternal(Vector inNodeIds) voidstopAllNodes(String inIPAddress, int inPort) voidvoidstopNodesInternal(Vector inNodeIds) voidsubscribeReceiverForTest(String receiverID, String testID) Subscribes a receiver to receive events for a specific test.voidsystemUpdate(SystemModel model) Indicates that the system has substantially changed.updateImportMetadata(String importId, ImportMetadata newMetadata) Updates the metadata associated with a specific import.updateRoute(String sourceNodeId, String destNodeId, String routeFunction) updateRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) updateRouteParameters(String sourceNodeId, String destNodeId, String rField, Vector rCondition) voidupdateRuleFileContent(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inRuleFileName, byte[] ruleFileContent) uploadImport(String configuration, byte[] customization) Uploads an import with the provided configuration and customization data.voiduploadNodeChainTestInputFile(byte[] data, String nodeId, String fileName) This method backs up input directory for a node if backup flag is set to true, and uploads the input file to the upload location provided.booleanvalidateNMForNodeTypes(String includeExclude, String majMin, String host, Integer port) voidvalidateNmMaps(List<com.nt.udc.upgrade.NodeManagerMap> nmMaps) voidvalidateNMName(String inName) voidwriteImportNodeCorrelationMap(String parent, String replicated) Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Field Details
-
SERVER_NAME
-
IS_CNE_ENV
- See Also:
-
OCOMC_AS_EVENT_SENDER_THREAD_COUNT_ENV
- See Also:
-
OCOMC_AS_EVENT_SENDER_THREAD_COUNT_PROP
- See Also:
-
OCOMC_AS_EVENT_SENDER_FORCE_SYNC_PROP
- See Also:
-
OCOMC_AS_EVENT_SENDER_FORCE_SYNC_ENV
- See Also:
-
-
Constructor Details
-
AdminServerImpl
public AdminServerImpl(String inOSAHome, int port, int adminSvrRMIPortNum, int aPIMetaFactoryRMIPortNo, boolean withSSL) throws RemoteException constructor for enabling SSL- Parameters:
inOSAHome- OSAHome is the installation directory for Network Mediationport- Admin Server portadminSvrRMIPortNum- RMI port for Admin ServeraPIMetaFactoryRMIPortNo-withSSL- indicates Admin Server should run in SSL mode or not- Throws:
RemoteException
-
AdminServerImpl
public AdminServerImpl(String inOSAHome, int port, int adminSvrRMIPortNum, int aPIMetaFactoryRMIPortNo) throws RemoteException constructor without SSL- Parameters:
inOSAHome- OSAHome is the installation directory for Network Mediationport- Admin Server PortadminSvrRMIPortNum- RMI port for Admin serveraPIMetaFactoryRMIPortNo-- Throws:
RemoteException
-
-
Method Details
-
getPort
public int getPort() -
getOsaHome
- Specified by:
getOsaHomein interfaceAdminServer
-
getLogger
-
isHostBasedEnv
- Specified by:
isHostBasedEnvin interfaceAdminServer- Throws:
RemoteException
-
getEventSender
- Specified by:
getEventSenderin interfaceAdminServer- Throws:
RemoteException
-
addAcctEventListener
- Specified by:
addAcctEventListenerin interfaceAdminServer- Throws:
RemoteException
-
registerTNCEventReceiver
public void registerTNCEventReceiver(String id, TNCEventReceiverIfc tncRec, boolean registerForAllTests) throws RemoteException Registers a TNC event receiver with optional registration for all tests. This method registers a TNCEventReceiverIfc implementation with the provided identifier, allowing an option to register for events across all tests.- Specified by:
registerTNCEventReceiverin interfaceAdminServer- Parameters:
id- The unique identifier for the TNC event receiver.tncRec- The TNCEventReceiverIfc implementation to be registered.registerForAllTests- A boolean flag indicating whether to register for events across all tests.- Throws:
RemoteException- If a remote exception occurs during the registration process.
-
subscribeReceiverForTest
Subscribes a receiver to receive events for a specific test. This method subscribes a receiver identified by receiverID to receive events associated with the specified testID.- Specified by:
subscribeReceiverForTestin interfaceAdminServer- Parameters:
testID- The unique identifier of the test for which the receiver is subscribing.recieverID- The unique identifier of the receiver to be subscribed.- Throws:
RemoteException- If a remote exception occurs during the subscription process.
-
removeAcctEventListener
- Specified by:
removeAcctEventListenerin interfaceAdminServer- Throws:
RemoteException
-
getSystemModel
- Specified by:
getSystemModelin interfaceAdminServer- Throws:
RemoteException
-
checkImportStatus
- Specified by:
checkImportStatusin interfaceAdminServer
-
importSystemModel
public void importSystemModel(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) throws com.nt.udc.upgrade.ImportException - Specified by:
importSystemModelin interfaceAdminServer- Throws:
com.nt.udc.upgrade.ImportException
-
doBackUp
- Specified by:
doBackUpin interfaceAdminServer- Throws:
BulkOpExceptionRemoteException
-
validateNmMaps
- Specified by:
validateNmMapsin interfaceAdminServer- Throws:
RemoteException
-
loadXMLSystemModel
- Specified by:
loadXMLSystemModelin interfaceAdminServer- Throws:
com.nt.udc.upgrade.ImportException
-
getImportedNodeManagerMap
- Specified by:
getImportedNodeManagerMapin interfaceAdminServer
-
exportXMLSystemModel
public String exportXMLSystemModel(Vector vctNMItemsToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModelin interfaceAdminServer- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModel
public String exportXMLSystemModel(Vector nMItems, Vector nodesToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModelin interfaceAdminServer- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModelOfNodeChain
public String exportXMLSystemModelOfNodeChain(Vector nodesToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModelOfNodeChainin interfaceAdminServer- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModel
- Specified by:
exportXMLSystemModelin interfaceAdminServer- Throws:
com.nt.udc.upgrade.ExportException
-
shutdown
shutdown the admin server- Specified by:
shutdownin interfaceAdminServer- Throws:
RemoteException
-
shutdown
- Throws:
RemoteException
-
setDirConnection
- Specified by:
setDirConnectionin interfaceAdminServer- Throws:
RemoteException
-
getNodeMgrInfo
public boolean getNodeMgrInfo(String inIPAddress, int inPort, boolean lastTryFailed) throws RemoteException Refreshes the node list and node manager status of the NMItem object stored in the SystemModel. This method is called from the NMConnector thread during AdminServer startup.- Parameters:
inIPAddress- IP address of the node managerinPort- RMI port of the node manager- Returns:
- true or false, indicating successful/unsuccessful connection
- Throws:
RemoteException
-
getAdminSvrAuth
- Specified by:
getAdminSvrAuthin interfaceAdminServer- Throws:
RemoteException
-
getNMList
- Specified by:
getNMListin interfaceAdminServer- Throws:
RemoteException
-
getNM
- Specified by:
getNMin interfaceAdminServer- Throws:
RemoteException
-
validateNMName
- Throws:
NodeMgrAddException
-
addNM
public void addNM(String inIPAddress, String inName, int inPort) throws NodeMgrAddException, FileAccessException, RemoteException - Specified by:
addNMin interfaceAdminServer- Throws:
NodeMgrAddExceptionFileAccessExceptionRemoteException
-
changeNM
public void changeNM(String inIPAddress, String inName, int inPort) throws RemoteException, NodeMgrAddException - Specified by:
changeNMin interfaceAdminServer- Throws:
RemoteExceptionNodeMgrAddException
-
changeNM
- Specified by:
changeNMin interfaceAdminServer- Throws:
RemoteExceptionNodeMgrAddException
-
changeNM
public void changeNM(com.nt.udc.admin.NMItem nmItem, String inName) throws RemoteException, NodeMgrAddException - Throws:
RemoteExceptionNodeMgrAddException
-
removeNM
public void removeNM(String inIPAddress, int inPort) throws FileAccessException, NodeMgrRemoveException, RemoteException - Specified by:
removeNMin interfaceAdminServer- Throws:
FileAccessExceptionNodeMgrRemoveExceptionRemoteException
-
removeNM
- Specified by:
removeNMin interfaceAdminServer- Throws:
FileAccessExceptionNodeMgrRemoveExceptionRemoteException
-
removeNM
public void removeNM(com.nt.udc.admin.NMItem nmItem) throws FileAccessException, NodeMgrRemoveException, RemoteException -
getNodeList
Returns a Vector of NodeInfo objects- Specified by:
getNodeListin interfaceAdminServer- Throws:
RemoteException
-
getNodeList
- Specified by:
getNodeListin interfaceAdminServer- Throws:
RemoteException
-
getNodeItemList
Returns a Vector of NodeItem objects- Specified by:
getNodeItemListin interfaceAdminServer- Throws:
RemoteException
-
addNode
public String addNode(String inIPAddress, int Port, com.nt.udc.admin.NodeInfo nodeInfo, boolean regNodeId) throws FileAccessException, NodeAddException, RemoteException - Specified by:
addNodein interfaceAdminServer- Throws:
FileAccessExceptionNodeAddExceptionRemoteException
-
addNode
public String addNode(String inIPAddress, int Port, com.nt.udc.admin.NodeInfo nodeInfo) throws FileAccessException, NodeAddException, RemoteException - Specified by:
addNodein interfaceAdminServer- Throws:
FileAccessExceptionNodeAddExceptionRemoteException
-
setImportExportProperty
- Specified by:
setImportExportPropertyin interfaceAdminServer- Throws:
RemoteException
-
nplChanged
Always returns true.- Specified by:
nplChangedin interfaceAdminServer- Throws:
RemoteException
-
loadRuleClass
Attempts to load the given class name. -
backUpNode
- Specified by:
backUpNodein interfaceAdminServer- Throws:
RemoteException
-
removeNodes
- Specified by:
removeNodesin interfaceAdminServer- Throws:
BulkOpExceptionRemoteException
-
areNodesDeletable
- Specified by:
areNodesDeletablein interfaceAdminServer- Throws:
BulkOpException
-
getOutputNodes
- Specified by:
getOutputNodesin interfaceAdminServer- Throws:
RemoteExceptionNodeNotFoundException
-
setOutputNodes
public void setOutputNodes(String inNodeId, Vector inNodeOutputs) throws FileAccessException, RemoteException, NodeNotFoundException - Specified by:
setOutputNodesin interfaceAdminServer- Throws:
FileAccessExceptionRemoteExceptionNodeNotFoundException
-
removeOutputNodes
- Specified by:
removeOutputNodesin interfaceAdminServer- Throws:
RemoteException
-
getTemplateTree
public com.nt.udc.admin.TemplateTreeRoot getTemplateTree()- Specified by:
getTemplateTreein interfaceAdminServer
-
getTemplate
- Specified by:
getTemplatein interfaceAdminServer
-
getTemplateDef
-
isLicensed
- Throws:
RemoteException
-
getLicensedSet
- Specified by:
getLicensedSetin interfaceAdminServer- Throws:
RemoteException
-
getSiteInfo
- Specified by:
getSiteInfoin interfaceAdminServer
-
getLicenses
- Specified by:
getLicensesin interfaceAdminServer
-
getRuleFileContent
public byte[] getRuleFileContent(com.nt.udc.admin.NodeInfo info, String inFileName) throws RemoteException - Specified by:
getRuleFileContentin interfaceAdminServer- Throws:
RemoteException
-
updateRuleFileContent
public void updateRuleFileContent(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inRuleFileName, byte[] ruleFileContent) throws RemoteException - Specified by:
updateRuleFileContentin interfaceAdminServer- Throws:
RemoteException
-
isSystemRuleFile
public boolean isSystemRuleFile(com.nt.udc.admin.NodeInfo info, String inFileName) throws RemoteException - Specified by:
isSystemRuleFilein interfaceAdminServer- Throws:
RemoteException
-
deleteRuleFile
public boolean deleteRuleFile(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inFileName) throws RemoteException - Specified by:
deleteRuleFilein interfaceAdminServer- Throws:
RemoteException
-
getInputFields
public ArrayList getInputFields(DCNodeTypeIfc inNodeType, String inRuleFileName) throws RemoteException - Throws:
RemoteException
-
getOutputFields
public ArrayList getOutputFields(DCNodeTypeIfc inNodeType, String inRuleFileName) throws RemoteException - Specified by:
getOutputFieldsin interfaceAdminServer- Throws:
RemoteException
-
getExposedFields
public ArrayList getExposedFields(DCNodeTypeIfc inNodeType, String inRuleFileName, String inReason) throws RemoteException - Specified by:
getExposedFieldsin interfaceAdminServer- Throws:
RemoteException
-
getConfigValue
public String getConfigValue(DCNodeTypeIfc inNodeType, String inRuleFileName, String inKey) throws RemoteException - Specified by:
getConfigValuein interfaceAdminServer- Throws:
RemoteException
-
copyNPL
- Specified by:
copyNPLin interfaceAdminServer- Throws:
RemoteException
-
getASLog
- Specified by:
getASLogin interfaceAdminServer- Throws:
FileAccessExceptionRemoteException
-
getNMLog
- Specified by:
getNMLogin interfaceAdminServer- Throws:
RemoteException
-
getNodeLog
- Specified by:
getNodeLogin interfaceAdminServer- Throws:
RemoteException
-
getStatus
- Specified by:
getStatusin interfaceAdminServer
-
startNodes
- Specified by:
startNodesin interfaceAdminServer- Throws:
BulkOpExceptionRemoteException
-
startNodesInternal
- Throws:
BulkOpExceptionRemoteException
-
stopNodes
- Specified by:
stopNodesin interfaceAdminServer- Throws:
BulkOpExceptionRemoteException
-
stopNodesInternal
- Throws:
BulkOpExceptionRemoteException
-
startAllNodes
- Specified by:
startAllNodesin interfaceAdminServer- Throws:
RemoteException
-
stopAllNodes
- Specified by:
stopAllNodesin interfaceAdminServer- Throws:
RemoteException
-
getCurrentPerformanceMetrics
- Specified by:
getCurrentPerformanceMetricsin interfaceAdminServer- Throws:
RemoteException
-
compileNPL
This method takes nplContent as input and checks for any compilation errors- Specified by:
compileNPLin interfaceAdminServer- Parameters:
nplContent- content of the npl to be compiled- Throws:
RemoteException- in case of any error during the compilation
-
reloadNPL
- Specified by:
reloadNPLin interfaceAdminServer- Throws:
RemoteException
-
setNodeDescription
Description copied from interface:AdminServerReplaces the NodeInfo object withnodeInfofor the given Node contained innodeInfo. This only updates the NodeInfo object in the table and does not save the node's configuration file(s), or cause node reconfiguration.- Specified by:
setNodeDescriptionin interfaceAdminServer- Parameters:
nInfo- NodeInfo object for node.- Throws:
RemoteException
-
setNodeInfo
Locates the reference to nodeManager for the given nodeId, and invokes the setNodeInfo() method of the nodeManager located, with the given nodeInfo.- Specified by:
setNodeInfoin interfaceAdminServer- Throws:
RemoteException
-
reMapWalletPassword
This method is used to map wallet passwords from old index to new index.- Specified by:
reMapWalletPasswordin interfaceAdminServer- Parameters:
nodeId- Node's identifierindicesList- List of int array, where each int array will have 2 indices, 0th index denotes old row index,and 1st index denotes new row index- Throws:
RemoteException- RemoteException
-
getNodeInfo
- Specified by:
getNodeInfoin interfaceAdminServer- Throws:
RemoteException
-
clearNMAlarm
- Specified by:
clearNMAlarmin interfaceAdminServer- Throws:
RemoteException
-
clearNodeAlarm
- Specified by:
clearNodeAlarmin interfaceAdminServer- Throws:
RemoteException
-
refreshStatuses
- Specified by:
refreshStatusesin interfaceAdminServer- Throws:
RemoteException
-
getVersionInfo
- Specified by:
getVersionInfoin interfaceAdminServer- Throws:
RemoteException
-
getCartridgeVersionInfo
- Specified by:
getCartridgeVersionInfoin interfaceAdminServer- Throws:
RemoteException
-
getNMVersionInfo
- Specified by:
getNMVersionInfoin interfaceAdminServer- Throws:
RemoteException
-
login
Description copied from interface:AdminServerAuthenticates the given user- Specified by:
loginin interfaceAdminServer- Throws:
RemoteExceptionAuthenticationException
-
logout
Description copied from interface:AdminServerRemoves the userId from the AS's current list of users- Specified by:
logoutin interfaceAdminServer- Throws:
RemoteException
-
hasAdminPriv
public boolean hasAdminPriv(com.nt.udc.admin.User user) throws RemoteException, AuthenticationException Description copied from interface:AdminServerIndicates whether the given User has Administrative privileges for this Admin Server- Specified by:
hasAdminPrivin interfaceAdminServer- Throws:
RemoteExceptionAuthenticationException
-
getRole
public int getRole(com.nt.udc.admin.User user, com.nt.udc.admin.User authUser) throws AuthenticationException Description copied from interface:AdminServerReturns the role of the user passed as argument- Specified by:
getRolein interfaceAdminServer- Throws:
AuthenticationException
-
getUserList
public Vector getUserList(com.nt.udc.admin.User authUser) throws RemoteException, AuthenticationException Description copied from interface:AdminServerRetrieves the list of users that may access this Admin Server- Specified by:
getUserListin interfaceAdminServer- Returns:
- Vector of User objects
- Throws:
RemoteExceptionAuthenticationException
-
getRoleFromDN
-
addUser
public void addUser(com.nt.udc.admin.User userToAdd, com.nt.udc.admin.User authUser) throws AuthenticationException, RemoteException Description copied from interface:AdminServerAttempts to adduserToAddto the list of users for this Admin Server.- Specified by:
addUserin interfaceAdminServer- Throws:
AuthenticationException- ifauthUserdoes not have Administrative privilegesRemoteException
-
modifyUser
public void modifyUser(com.nt.udc.admin.User userToAdd, com.nt.udc.admin.User authUser, Boolean changePassword) throws AuthenticationException, RemoteException Description copied from interface:AdminServerAttempts to modify attributes foruserToMod- Specified by:
modifyUserin interfaceAdminServer- Throws:
AuthenticationException- ifauthUserdoes not have Administrative privileges foruserToModRemoteException
-
removeUsers
public void removeUsers(Vector userList, com.nt.udc.admin.User authUser) throws AuthenticationException, RemoteException Description copied from interface:AdminServerAttempts to remove the Users contained inuserListfrom the list of users for this Admin Server.- Specified by:
removeUsersin interfaceAdminServer- Parameters:
userList- Vector of User objects- Throws:
AuthenticationException- ifauthUserdoes not have Administrative privilegesRemoteException
-
getDSHost
Returns the Host name of the Data Server.- Specified by:
getDSHostin interfaceAdminServer- Throws:
RemoteException
-
getDSPort
Returns the Port of the Data Server.- Specified by:
getDSPortin interfaceAdminServer- Throws:
RemoteException
-
getLdapURL
Returns the URL of the LDAP directory that this AdminServer is using for user authentication. -
setLdapURL
Sets the URL of the LDAP directory that this AdminServer is using for user authentication. -
getAdminDN
Returns the LDAP DN for the Admin user of the system. -
setAdminDN
Sets the LDAP DN for the Admin user of the system. -
getDomain
Returns the LDAP domain currently being used by the system. -
setDomain
Sets the LDAP domain to be used by the system. -
getGroupInfo
Returns the LDAP group which indicates the group that users belong to in the directory. -
setGroupInfo
Sets the LDAP group which indicates the group that users should belong to in the directory. -
getMemberInfo
-
setMemberInfo
-
getTimeoutValue
public static long getTimeoutValue() -
setTimeoutValue
public static void setTimeoutValue(long value) -
nodeManagersAdded
Description copied from interface:AcctEventListenerIndicates that one or more NodeManagers were added. The Vector associated with each NMItem object will represent all the nodes that are being managed by that Node Manager.- Specified by:
nodeManagersAddedin interfaceAcctEventListener- Throws:
RemoteException
-
nodeManagersRemoved
Description copied from interface:AcctEventListenerIndicates that one or more NodeManagers were removed.- Specified by:
nodeManagersRemovedin interfaceAcctEventListener- Parameters:
nmList- Vector of NMItem objects representing the Node Managers that were removed.- Throws:
RemoteException
-
nodeManagerChanged
Description copied from interface:AcctEventListenerIndicates that the properties of a Node Manager have changed.- Specified by:
nodeManagerChangedin interfaceAcctEventListener- Parameters:
nmItem- NMItem object representing the Node Manager that changed.- Throws:
RemoteException
-
nodesAdded
Description copied from interface:AcctEventListenerIndicates that a Node has been added to a particular Node Manager.- Specified by:
nodesAddedin interfaceAcctEventListener- Parameters:
nmItem- NMItem object which represents the Node Manager managing the node that was added. The Vector associated withnodeManagerwill contain only the node that was added.- Throws:
RemoteException
-
nodesRemoved
Description copied from interface:AcctEventListenerIndicates that a Node has been removed from a particular Node Manager.- Specified by:
nodesRemovedin interfaceAcctEventListener- Parameters:
nmItem- NMItem object which represents the Node Manager managing the node that was removed. The Vector associated withnodeManagerwill contain only the node(s) that was(were) removed.- Throws:
RemoteException
-
nodeChanged
Description copied from interface:AcctEventListenerIndicates that the properties of a Node have changed.- Specified by:
nodeChangedin interfaceAcctEventListener- Parameters:
nmItem- NMItem object which represents the Node Manager whose node changed. The Vector associated withnodeManagerwill contain the node that changed.- Throws:
RemoteException
-
nodePerformanceUpdate
Description copied from interface:AcctEventListenerIndicates that node performance information was updated.- Specified by:
nodePerformanceUpdatein interfaceAcctEventListener- Parameters:
perfs- Vector of node performance objects
-
fileChanged
Description copied from interface:AcctEventListenerIndicates that a system file changed.- Specified by:
fileChangedin interfaceAcctEventListener- Parameters:
file- FileItem object representing the system file that changed.- Throws:
RemoteException
-
adminServerChanged
Description copied from interface:AcctEventListenerIndicates that the properties of an Admin Server have changed.- Specified by:
adminServerChangedin interfaceAcctEventListener- Parameters:
sm- StatusMessage object representing the change in the AdminServer.- Throws:
RemoteException
-
systemUpdate
Description copied from interface:AcctEventListenerIndicates that the system has substantially changed.- Specified by:
systemUpdatein interfaceAcctEventListener- Parameters:
model- SystemModel representing the current state of the system.- Throws:
RemoteException
-
setRefreshInterval
- Specified by:
setRefreshIntervalin interfaceAdminServer- Throws:
RemoteException
-
initRegistry
public void initRegistry(int rmiPort, int aPIMetaFactoryRMIPortNo) -
getTrapHostList
Description copied from interface:AdminServerGets list of known SNMP Trap Hosts- Specified by:
getTrapHostListin interfaceAdminServer- Throws:
RemoteException
-
addTrapHost
Description copied from interface:AdminServerAdds a new host to the list of SNMP Trap Hosts- Specified by:
addTrapHostin interfaceAdminServer- Throws:
RemoteException
-
addTrapHostList
This is a method used by the AdminServerImple to push a complete TrapHostList down to a specific Node Hosts that it is managing. -
removeTrapHost
Description copied from interface:AdminServerRemoves a host from the list of SNMP Trap Hosts- Specified by:
removeTrapHostin interfaceAdminServer- Throws:
RemoteException
-
removeTrapHosts
Description copied from interface:AdminServerRemoves a list of hosts from the SNMP Trap Hosts object- Specified by:
removeTrapHostsin interfaceAdminServer- Throws:
RemoteException
-
modifyTrapHost
public void modifyTrapHost(com.nt.udc.admin.TrapHost oldhost, com.nt.udc.admin.TrapHost newhost) throws RemoteException Description copied from interface:AdminServerModifies a host in the list of SNMP Trap Hosts- Specified by:
modifyTrapHostin interfaceAdminServer- Throws:
RemoteException
-
pollRecordCounts
public void pollRecordCounts() -
getConfig
-
getASConfig
Description copied from interface:AdminServerGets the Admin Server Config object (really just a Hashtable).- Specified by:
getASConfigin interfaceAdminServer- Throws:
RemoteException
-
setASConfig
Description copied from interface:AdminServerSets the Admin Server Config object. All original attributes should be present, even if they haven't been changed.- Specified by:
setASConfigin interfaceAdminServer- Throws:
RemoteException
-
exportWithCustomization
public byte[] exportWithCustomization(Vector nmListToExport, String exportName) throws RemoteException Returns a byte array of Customization content which includes 1. archives of cartridges and customization folder from all running nodemanagers 2. archive of cartridges and customization folder of admin server 3. VersionInfo.xml which contains version information 4. Configuration xml 5. Export Log.- Specified by:
exportWithCustomizationin interfaceAdminServer- Parameters:
nmListToExport- list of node managers for which export should be done.exportName- exportName is the file name used for writing configuration xml- Returns:
- byte[] the content of complete archive will be returned as a byte array.
- Throws:
RemoteException
-
exportWithCustomization
public byte[] exportWithCustomization(Vector nmList, Vector nodesToExport, String exportName) throws RemoteException - Specified by:
exportWithCustomizationin interfaceAdminServer- Throws:
RemoteException
-
getImportCustomLog
The import customization log will be returned.- Specified by:
getImportCustomLogin interfaceAdminServer- Returns:
- String the contents of import customization log buffer will returned as a String.
-
importCustomization
This method receives the content of nmx file from admin client and extracts customization archives of individual node managers and distributes them to appropriate node managers based on node manager map.- Specified by:
importCustomizationin interfaceAdminServer- Parameters:
nmMaps- contains mapping information from old node manager ip:port to new node manager ip:portcontents- the contents of nmx file as byte array.- Returns:
- boolean returns true if the entire operation is successful. otherwise returns false.
-
getAuthUsers
returns true if authentication is enabled- Specified by:
getAuthUsersin interfaceAdminServer- Returns:
- Throws:
RemoteException
-
integrateRoutingCCNMScaleUp
- Specified by:
integrateRoutingCCNMScaleUpin interfaceAdminServer
-
getDestNodesInNM
- Specified by:
getDestNodesInNMin interfaceAdminServer
-
clearNodeIdCorrelationsMap
public void clearNodeIdCorrelationsMap()- Specified by:
clearNodeIdCorrelationsMapin interfaceAdminServer
-
integrateRouting
- Specified by:
integrateRoutingin interfaceAdminServer
-
changeRoutingToRR
- Specified by:
changeRoutingToRRin interfaceAdminServer
-
integrateScalingDownForNonSegregatedNM
- Specified by:
integrateScalingDownForNonSegregatedNMin interfaceAdminServer
-
integrateScalingDownForSegregatedNM
- Specified by:
integrateScalingDownForSegregatedNMin interfaceAdminServer
-
removeRRNodeDestination
-
addRRNodeDestination
- Specified by:
addRRNodeDestinationin interfaceAdminServer
-
removeRoute
- Specified by:
removeRoutein interfaceAdminServer- Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The destNodeId- Throws:
RemoteException
-
updateRoute
public String updateRoute(String sourceNodeId, String destNodeId, String routeFunction) throws RemoteException - Specified by:
updateRoutein interfaceAdminServer- Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The sourceNodeIDrouteFunction- The routingFunction to use, this function just accepts Round Robin and Multicast- Throws:
RemoteException
-
updateRoute
public String updateRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) throws RemoteException - Specified by:
updateRoutein interfaceAdminServer- Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The sourceNodeIDrouteFunction- The routingFunction to use, this function should be used only for Directed and ModulusrField- The routing attribute that should be used (must be present in NPL)rCondition- For Directed routing, this must be a vector of invalid input: '<'operator,operand1,operands2> where operands1 and operands2 are comma seperated string. Operand2 can be empty string if operator just requres one operand.- Throws:
RemoteException
-
updateRouteParameters
public String updateRouteParameters(String sourceNodeId, String destNodeId, String rField, Vector rCondition) throws RemoteException - Specified by:
updateRouteParametersin interfaceAdminServer- Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The sourceNodeIDrField- The routing attribute that should be used (must be present in NPL)rCondition- For Directed routing, this must be a vector of invalid input: '<'operator,operand1,operands2> where operands1 and operands2 are comma seperated string. Operand2 can be empty string if operator just requres one operand.- Throws:
RemoteException
-
addRoute
public String addRoute(String sourceNodeId, String destNodeId, String routeFunction) throws RemoteException - Specified by:
addRoutein interfaceAdminServer- Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The sourceNodeIDrouteFunction- The routingFunction to use, this function just accepts Round Robin and Multicast- Throws:
RemoteException
-
addRoute
public String addRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) throws RemoteException - Specified by:
addRoutein interfaceAdminServer- Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The sourceNodeIDrouteFunction- The routingFunction to use, this function should be used only for Directed and ModulusrField- The routing attribute that should be used (must be present in NPL)rCondition- For Directed routing, this must be a vector of invalid input: '<'operator,operand1,operands2> where operands1 and operands2 are comma seperated string. Operand2 can be empty string if operator just requres one operand.- Throws:
RemoteException
-
main
-
getResetPwdInfo
public boolean getResetPwdInfo(com.nt.udc.admin.User user) throws AuthenticationException, RemoteException This method receives the reset password information for given user- Specified by:
getResetPwdInfoin interfaceAdminServer- Parameters:
user- user information for which we want to get the information- Returns:
- boolean returns true if the password is reset by Administrator. otherwise returns false.
- Throws:
AuthenticationExceptionRemoteException
-
getSecondsToPasswordExpiration
public int getSecondsToPasswordExpiration(com.nt.udc.admin.User user) throws AuthenticationException, RemoteException This method receives the seconds for password expiration of given user- Specified by:
getSecondsToPasswordExpirationin interfaceAdminServer- Parameters:
user- user information for which we want to get the information- Returns:
- boolean returns number of seconds until password expiration
- Throws:
AuthenticationExceptionRemoteException
-
getTimeoutValueMiliSec
returns the time out value for session expiry- Specified by:
getTimeoutValueMiliSecin interfaceAdminServer- Returns:
- Throws:
RemoteException
-
setNoAuthentication
public static void setNoAuthentication()this method is used for unit tests -
performConfigAction
public void performConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo nodeInfo) throws RemoteException - Specified by:
performConfigActionin interfaceAdminServer- Throws:
RemoteException
-
performConfigAction
public void performConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo nodeInfo, String ipAddr, int port) throws RemoteException - Specified by:
performConfigActionin interfaceAdminServer- Throws:
RemoteException
-
getInputNodes
- Specified by:
getInputNodesin interfaceAdminServer- Throws:
RemoteException
-
writeImportNodeCorrelationMap
- Specified by:
writeImportNodeCorrelationMapin interfaceAdminServer- Throws:
RemoteException
-
validateNMForNodeTypes
public boolean validateNMForNodeTypes(String includeExclude, String majMin, String host, Integer port) - Specified by:
validateNMForNodeTypesin interfaceAdminServer
-
uploadNodeChainTestInputFile
public void uploadNodeChainTestInputFile(byte[] data, String nodeId, String fileName) throws RemoteException This method backs up input directory for a node if backup flag is set to true, and uploads the input file to the upload location provided.- Specified by:
uploadNodeChainTestInputFilein interfaceAdminServer- Parameters:
data- File's datanodeId- Node's identifierfileName- File's name, prefixed with test ID.- Throws:
RemoteException- Exception thrown during a remote call
-
getNodeChainTestCfg
This method returns NodeChainTestCfg object.- Specified by:
getNodeChainTestCfgin interfaceAdminServer
-
getNMInvolvedInTestNodeChain
public Map<String,List<String>> getNMInvolvedInTestNodeChain(NodeChainTestCfgItemReadOnlyIfc testNodeChainConfig) Retrieves a mapping of Node Managers involved in the test node chain. This method returns a Map where keys represent Node Manager identifiers, and values are Lists of nodeID associated with each Node Manager involved in the specified test node chain configuration.- Parameters:
testNodeChainConfig- The configuration item for the test node chain.- Returns:
- A Map of Node Managers and associated nodeID participating in the test node chain.
-
getNodeContext
-
groupNodesBasedOnNM
This function groups nodes managed by the same NM together.- Parameters:
nodeIds- List of identifiers of nodes spread accross 1 or more NMs- Returns:
- Map containing node manager's identifier to list of identifiers of the nodes managed by that NM mapping
-
runNodeChainTest
This method writes test cfg item to nodeChainTest.cfg file and runs all the nodes which are part of node chain under test.- Specified by:
runNodeChainTestin interfaceAdminServer- Parameters:
uploadId- Upload ID of the file uploadedcfgItem- NodeChainTestCfgItem object- Throws:
RemoteException- Exception thrown during a remote call
-
getDetailsAboutTest
Retrieves details about a specific test. This method returns information about test and nodes in the test for the provided testId.- Specified by:
getDetailsAboutTestin interfaceAdminServer- Parameters:
testId- The unique identifier of the test for which details are to be retrieved.- Returns:
- A TNCDetails object containing information about the specified test.
- Throws:
RemoteException- If a communication-related issue occurs during the remote method invocation.
-
getOutputNodeChainTest
This method returns data from output file/s for a node, as part of Node Chain Test.- Specified by:
getOutputNodeChainTestin interfaceAdminServer- Parameters:
nodeId- Node's identifier- Throws:
RemoteException- Exception thrown during a remote call
-
completeNodeChainTest
This method completes all the tasks required to conclude a Node Chain Test.- Specified by:
completeNodeChainTestin interfaceAdminServer- Parameters:
testId- Identifier of the test- Throws:
RemoteException- Exception thrown during a remote call
-
completeNodeChainTest
This method completes all the tasks required to conclude a Node Chain Test. This API is internally used, and should not be invoked by clients.- Parameters:
testId- Identifier of the testisStale- True if test to be completed is in stale state, else false.
-
cleanOutputBackupNodeChainTest
This method cleans output backed up as part of a Node Chain Test.- Parameters:
testId- Identifier of the test- Throws:
NodeChainTestException- Exception thrown if something goes wrong while cleaning output backup
-
getSol42DescriptorFiles
This method returns the list of names of available descriptor files.- Specified by:
getSol42DescriptorFilesin interfaceAdminServer- Parameters:
nmId- Node Manager idendifier- Throws:
RemoteException- Exception thrown during a remote call
-
getRuleFileDisplayName
public String getRuleFileDisplayName(String nodeContext, String ruleFileName) throws RemoteException This methods returns the ruleFileDisplayName for a given rule file.- Specified by:
getRuleFileDisplayNamein interfaceAdminServer- Parameters:
nodeContext- The node context.ruleFileName- The rule file name to retrieve the display name.- Returns:
- The ruleFileDisplayName of the rule file.
- Throws:
RemoteException- If an error occurs during the process.
-
extendTestTimeout
Extends the timeout duration for a test by the default timeout value, identified by the given testId.- Specified by:
extendTestTimeoutin interfaceAdminServer- Parameters:
testId- The unique identifier of the test to extend the timeout. throws NodeChainTestException- Throws:
RemoteException
-
uploadImport
public ImportMetadata uploadImport(String configuration, byte[] customization) throws ImportUploadException Uploads an import with the provided configuration and customization data.- Specified by:
uploadImportin interfaceAdminServer- Parameters:
configuration- The configuration data for the import.customization- The customization data for the import, provided as a byte array.- Returns:
- The metadata generated for the uploaded import files.
- Throws:
ImportUploadException- If an error occurs during the upload process.
-
updateImportMetadata
public ImportMetadata updateImportMetadata(String importId, ImportMetadata newMetadata) throws ImportMetadataUpdateException Updates the metadata associated with a specific import.- Specified by:
updateImportMetadatain interfaceAdminServer- Parameters:
importId- The ID of the import whose metadata is to be updated.newMetadata- The new metadata to be associated with the import.- Returns:
- The updated metadata for the import.
- Throws:
ImportMetadataUpdateException- If an error occurs while updating the import metadata.
-
getCurrentImport
Retrieves the lock information for the current import, if any.- Specified by:
getCurrentImportin interfaceAdminServer- Returns:
- The ImportLock object representing the lock information for the current import, or null if there is no current import lock.
- Throws:
RemoteException- If an error occurs while fetching the current import lock.
-
runImport
public ImportTaskItem runImport(String importId) throws ImportStartException, ConcurrentImportException, LongProcessInProgressException Initiates the execution of an import operation with the specified import ID.- Specified by:
runImportin interfaceAdminServer- Parameters:
importId- The ID of the import operation to be initiated.- Returns:
- A taskID, that can be used to track the progress of the import execution.
- Throws:
ImportStartException- If an error occurs during the initiation of the import operation.ConcurrentImportException- if another import is in progressLongProcessInProgressException- If another long process in progress (Currently only TNC and import)
-
getImportTask
public ImportTaskProgressResponse getImportTask(String importId, String importTaskId) throws RemoteException Retrieves information about a specific import task associated with the given import ID and task ID.- Specified by:
getImportTaskin interfaceAdminServer- Parameters:
importId- The ID of the import operation.importTaskId- The ID of the import task to retrieve.- Returns:
- The ImportTaskItem representing information about the specified import task.
- Throws:
RemoteException- If an error occurs during the retrieval of the import task.ImportTaskNotFoundException- If the specified import task cannot be found.
-
getAllLockedAndRunningTestNodes
- Specified by:
getAllLockedAndRunningTestNodesin interfaceAdminServer- Throws:
RemoteException
-
isNodePartOfRunningTNC
This method validates whether a node is under test or not.- Specified by:
isNodePartOfRunningTNCin interfaceAdminServer- Parameters:
nodeId- The ID of the node.- Throws:
RemoteException- If an error occurs during the validation for node under test or not.
-
getAllLockedAndRunningTestNodesSharingRuleFile
public Set<String> getAllLockedAndRunningTestNodesSharingRuleFile(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName) throws RemoteException This method return Set of nodeIds which are using same RuleFile which are under Test.- Parameters:
info- NodeInfo objectinRuleFileDisplayName- ruleFileDisplay name to match- Returns:
- It returns Set of nodeIds which are under test and belongs to same marketSegment and uses same rulefile
- Throws:
RemoteException- If an error occurs during the validation for node under test or not.
-
replicateNode
Replicates a node to with the given nodeId to a destination node manager.- Specified by:
replicateNodein interfaceAdminServer- Parameters:
sourceNodeId- the ID of the source node to be replicateddestNodeManagerId- the ID of the destination node manager where the node will be replicated- Returns:
- Node ID of the replicated node
- Throws:
RemoteException- if a remote communication error occurs during the replication
-
replicateNodeManager
Replicates the node manager based on the provided request.- Specified by:
replicateNodeManagerin interfaceAdminServer- Parameters:
request- the request object containing the details for the node manager replication- Returns:
trueif the replication was successful,falseotherwise- Throws:
RemoteException- if any exception occurs during the replication
-
isReceiverValid
- Specified by:
isReceiverValidin interfaceAdminServer- Throws:
RemoteException
-
scaleDownNodeManager
scaleDown node manager based on the provided flag.- Specified by:
scaleDownNodeManagerin interfaceAdminServer- Parameters:
nmId- - NodeManager IdisPreBackupCleanup- - if true then all the preBackUp tasks will be done- Returns:
trueif the scaleDown was successful,falseotherwise- Throws:
RemoteException- if any exception occurs during the scaleDown
-