Package com.nt.udc.admin.server
Class AdminServerAPI
java.lang.Object
com.nt.common.util.ServerAPI
com.nt.udc.admin.server.AdminServerAPI
- All Implemented Interfaces:
AdminServerAPIInterface,TNCEventReceiverIfc,AcctEventListener,Serializable,Remote,EventListener
- Direct Known Subclasses:
ASProxy
public class AdminServerAPI
extends com.nt.common.util.ServerAPI
implements AdminServerAPIInterface, AcctEventListener, TNCEventReceiverIfc
AdminServerAPI
API class for allowing communication between a local client and a remote
AdminServer. This class is an extension of ServerAPI, and as with all
extensions of that class should be constructed with the static method
getInstance().
- See Also:
-
Field Summary
FieldsFields inherited from class com.nt.common.util.ServerAPI
ipaddr, lastServerCommFailed, port, remoteFreshener, selfRefs, showDialogOnServerCommFailure -
Constructor Summary
ConstructorsConstructorDescriptionAdminServerAPI(String ip, int port) AdminServerAPI Constructor The constructors for AdminServerAPI should only be called by AdminServerAPI.getInstance() methods.AdminServerAPI(String ip, String port) AdminServerAPI Constructor The constructors for AdminServerAPI should only be called by AdminServerAPI.getInstance() methods. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidInform the Admin Server that a node manager exists at the specified IP Address and port, and that it should be referred to by the specified display name.Add a new node (represented by the NodeInfo object) to the node manager residing at the specified IP Address and port.voidaddReceiver(String id, TNCEventReceiverIfc recv, String testID) Adds a receiver with the specified identifier for a given test.addRoute(String sourceNodeId, String destNodeId, String routeFunc, 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 HostsbooleanaddUser(com.nt.udc.admin.User user) Adds a new User to the current list of valid usersvoidIndicates that the properties of an Admin Server have changed.voidThis function is used to change the name of existing Node ManagervoidTell the Admin Server to change the display name associated with the node manager at the specified IP Address and port to the specified value.voidchangeRoutingToRR(String srcNodeid, String destNodeId) voidvoidclearNMAlarm(String ipAddress, int inPort) Clears the alarm on a Node ManagervoidclearNodeAlarm(String nodeId) clears the alarm on a specific nodebooleanvoidcompileNPL(byte[] nplContent) Compiles given npl content for testing if there are any compilation errorsvoidcompleteNodeChainTest(String testId) voidcopyNPL(DCNodeTypeIfc inNodeType, String inRuleFileName) booleandeleteRuleFile(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inFileName) voidbyte[]exportWithCustomization(Vector nmListToExport, String exportName) makes call to exportWithCustomization() method of Admin Server and returns the byte array which it received from the call.byte[]exportWithCustomization(Vector nmList, Vector nodesToExport, String exportName) makes call to exportWithCustomization() method of Admin Server and returns the byte array which it received from the call.exportXMLSystemModel(Vector vctNMItemsToExport) exportXMLSystemModel(Vector nMItems, Vector nodesToExport) exportXMLSystemModelOfNodeChain(Vector nodesToExport) booleanextendTestTimeout(String testId) voidfileChanged(com.nt.udc.admin.FileItem file) Indicates that a system file changed.booleangetAdminSvrAuth(String adminIP, String nodeIp, int nodePort) Get a copy of the current Admin Server Config object.byte[]getASLog()Return the contents of the log for the Admin Serverbooleanreturns true if authentication is enabledgetCartridgeVersionInfo(String ip, int port) Return a Map containing cartridge name.getConfigValue(DCNodeTypeIfc inNodeType, String inRuleFileName, String inKey) getCurrentPerformanceMetrics(String ip, int port) Return a vector of performance objectscom.nt.udc.admin.UserReturn the User object representing current logged in userReturns the ID of the user currently accessing the Admin Server through this AdminServerAPI ObjectgetDestNodesInNM(String srcNode, String host, Integer port) getDetailsAboutTest(String testId) Gets Data Server host nameGets Data Server portgetExposedFields(DCNodeTypeIfc inNodeType, String inRuleFileName, String inReason) Get the exposed fields from an expose clause of the specified rule file.makes call to getImportCustomLog() of Admin Server and returns the String which it has received from the call.getImportTask(String importId, String importTaskId) getInputNodes(String inNodeId) Returns a vector of ChannelInfo objects which represents all nodes that sends input to the specified node.static com.nt.common.util.ServerAPIgetInstance(String ip, int port) getInstance This static method should be used to get an instance of AdminServerAPI instead of using the constructor directly.static com.nt.common.util.ServerAPIgetInstance(String ip, String prt) getInstance This static method should be used to get an instance of AdminServerAPI instead of using the constructor directly.getLicensedSet(Set allTemplates) com.nt.udc.admin.NMItemReturns a vector of NMItem objects which represents all node managers known to the Admin Server.byte[]Return the contents of the log for the node manager at the specified IP Address/Port.getNMVersionInfo(String ip, int port) Return a String containing info about the java environment and packages on each Node Manager.com.nt.udc.admin.NodeInfogetNodeInfo(String inNodeId) Get a NodeInfo object describing the specified node.This function returns a Vector of NodeItem objectsReturns a vector of NodeInfo objects which represents all nodes known to the Admin Server.getNodeList(String inIPAddress, int inPort) Returns a vector of NodeInfo objects which represents all nodes controlled by the node manager at the specified IP Address/Port.byte[]getNodeLog(String inNodeId) Return the contents of the log for the specified node.getOutputFields(DCNodeTypeIfc inNodeType, String inRuleFileName) Get the output fields in the specified rule file.getOutputNodeChainTest(String nodeId) getOutputNodes(String inNodeId) Returns a vector of ChannelInfo objects which represents all nodes that receive output from the specified node.booleangetResetPwdInfo(com.nt.udc.admin.User user) makes call to getResetPwdInfo() of Admin Server and returns the password reset informationintgetRole(com.nt.udc.admin.User user) Returns the role of the user passed as argumentbyte[]getRuleFileContent(com.nt.udc.admin.NodeInfo info, String inFileName) Get the content of the RulesFile with the passed-in name.getRuleFileDisplayName(String nodeContext, String ruleFileName) intgetSecondsToPasswordExpiration(com.nt.udc.admin.User user) makes call to getSecondsToPasswordExpiration() of Admin Server and returns the seconds until password expirationReturn status of AScom.nt.udc.admin.TemplategetTemplate(String templateId) com.nt.udc.admin.TemplateTreeRootlongreturns the time out value for session expirycom.nt.udc.admin.TrapHostListGets list of known SNMP Trap HostsRetrieves the current list of valid user ids known to the Admin Server.Return a String containing info about the java environment and packages on the Admin Server.booleanIndicates whether the current user has Administrative privilegesbooleanimportCustomization(ArrayList nmMaps, byte[] contents) makes call to importCustomization() method of Admin Server and returns the boolean value which it has received from the call.voidimportSystemModel(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) voidintegrateRouting(String parentHost, Integer parentPort) booleanintegrateRoutingCCNMScaleUp(String ccHost, Integer ccPort) voidvoidbooleanbooleanisNodePartOfRunningTNC(String nodeId) booleanbooleanisSystemRuleFile(com.nt.udc.admin.NodeInfo info, String inFileName) voidloadXMLSystemModel(String xmlSystemModel) voidlogin(com.nt.udc.admin.User user) Attempts to authenticate the given user with the Admin Servervoidlogout()Logs out the current uservoidmodifyTrapHost(com.nt.udc.admin.TrapHost oldhost, com.nt.udc.admin.TrapHost newhost) Modifies a host in the list of SNMP Trap HostsbooleanmodifyUser(com.nt.udc.admin.User user, Boolean changePassword) Modifies attributes associated with the given UservoidnodeChanged(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 info) Indicates whether the NPL file indicated in the given NodeInfo object has changed since the AdminServer was started.voidonBulkEvents(List<BaseEventIfc> events) Handles bulk events.voidonFreeUpTestResources(String testId) Will be called when the sender is cleaning up the resources allocated for this test.voidonNodeOutputFileAvailable(NodeOutputFileAvailableEvent nodeOutputFileAvailable) Handles changes in output file availabilityvoidonNodeStatisticsChange(List<NodeUpdateEvent> nodeData) Handles changes in node statistics.voidonNodeStatusChange(NodeStatusUpdateEventIfc nodeData) Handles changes in node status.voidonRemoveReceiver(String receiverId) Will be called when the sender is removing this listener enttirelyvoidonRemoveTestListener(String testId) Will be called when the sender is removing this listener from test mapping.voidHandles the event when a test is about to timeout.voidonTestStatusChange(TestStatusChangeEventIfc testStatus) Handles changes in test status.voidperformConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni) Config Action specific to nodevoidperformConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni, String ipAddr, int port) voidreloadNPL(com.nt.udc.admin.NodeInfo info) Instructs the AdminServer to recompile the NPL file indicated in the given NodeInfo object.booleanreMapWalletPassword(String nodeId, List<int[]> indicesList) voidvoidThis function is used to delete an existing Node Manager using node Manager IDvoidTell the Admin Server to remove the node manager at the specified IP Address/Port.voidremoveNodes(Vector inNodeIds) Expects a vector of nodeID (string) objects.voidremoveOutputNodes(String inNodeId, Vector inOutputNodes) Expects a nodeID (string) and a vector of nodeID (string) objects.voidremoveReceiver(String receiverID) removeRoute(String sourceNodeId, String destNodeId) voidremoveTrapHost(com.nt.udc.admin.TrapHost host) Removes a host from the list of SNMP Trap HostsvoidremoveTrapHosts(Vector hosts) Removes a host from the list of SNMP Trap HostsbooleanremoveUsers(Vector userList) Removes the given Users from the current list of valid usersstatic voidreplace(AdminServerAPI api) replicateNode(String sourceNodeId, String destNodeManagerId) booleanprotected RemotevoidrunNodeChainTest(String uploadId, NodeChainTestCfgItem cfgItem) booleanscaleDownNodeManager(String nmId, boolean isPreBackupCleanup) make call to scaleDownNodeManager API in adminServervoidsetASConfig(Hashtable asConfig) Sets the Admin Server Config object.voidsetCurrentUser(com.nt.udc.admin.User user) Sets the current UservoidsetDirConnection(DirectoryConnection dirConn) voidsetImportExportProperty(String[][] newNmMap) voidsetNodeDescription(com.nt.udc.admin.NodeInfo nodeInfo) Modify the parameters of the specified node to be in accordance with the passed-in NodeInfo object.voidsetNodeInfo(com.nt.udc.admin.NodeInfo nodeInfo) Modify the parameters of the specified node to be in accordance with the passed-in NodeInfo object.voidsetNodeOutputs(String inNodeId, Vector inOutputNodes) Expects a nodeID (string) and a vector of nodeID (string) objects.voidsetRefreshInterval(long inRefInt) Sets the interval (in seconds) at which the statuses of all Node Managers and Nodes are refreshedprotected voidsetRemoteRef(String server) protected voidvoidstartAllNodes(String inIPAddress, int inPort) Start all nodes on the node manager at the specified IP Address/Port.voidstartNodes(Vector inNodeIds) Expects a vector of nodeID (string) objects.voidstopAllNodes(String inIPAddress, int inPort) Stop all nodes on the node manager at the specified IP Address.voidExpects a vector of nodeID (string) objects.voidsystemUpdate(SystemModel model) Indicates that the system has substantially changed.updateImportMetadata(String importId, ImportMetadata newMetadata) updateRoute(String sourceNodeId, String destNodeId, String routeFunc, 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) voiduploadNodeChainTestInputFile(byte[] data, String nodeId, String fileName) booleanvalidateNMForNodeTypes(String inclusionExclusion, String majMin, String host, Integer port) voidvalidateNmMaps(ArrayList<com.nt.udc.upgrade.NodeManagerMap> nmMaps) Methods inherited from class com.nt.common.util.ServerAPI
disposeOfClientGUI, getConnectTimeOut, getInstance, getInstance, getInstance, getIp, getLastServerCommFailed, getPort, getRef, getRemoteFreshener, getRemoteRef, getRemoteRefForRefresh, getServerName, getSessionTimeOut, getStrPort, handleRMIServerException, setConnectTimeOut, setIpAndPort, setIpAndPort, setRemoteFreshener, setSessionTimeOut, setShowDialogOnServerCommFailure
-
Field Details
-
RSM_HOME
- See Also:
-
-
Constructor Details
-
AdminServerAPI
AdminServerAPI Constructor The constructors for AdminServerAPI should only be called by AdminServerAPI.getInstance() methods.- Parameters:
ip- The IP Address of the AdminServer.port- The port of the AdminServer.- Throws:
com.nt.common.exceptions.APIException
-
AdminServerAPI
AdminServerAPI Constructor The constructors for AdminServerAPI should only be called by AdminServerAPI.getInstance() methods.- Parameters:
ip- The IP Address of the AdminServer we're connecting to.port- The port of the AdminServer we're connecting to.- Throws:
com.nt.common.exceptions.APIException
-
-
Method Details
-
getInstance
public static com.nt.common.util.ServerAPI getInstance(String ip, String prt) throws com.nt.common.exceptions.APIException getInstance This static method should be used to get an instance of AdminServerAPI instead of using the constructor directly.- Parameters:
ip- The IP Address of the AdminServer we're connecting to.prt- The port of the AdminServer we're connecting to.- Returns:
- ServerAPI A reference to this class, cast as it's super.
- Throws:
com.nt.common.exceptions.APIException
-
getInstance
public static com.nt.common.util.ServerAPI getInstance(String ip, int port) throws com.nt.common.exceptions.APIException getInstance This static method should be used to get an instance of AdminServerAPI instead of using the constructor directly.- Parameters:
ip- The IP Address of the AdminServer we're connecting to.port- The port of the AdminServer we're connecting to.- Returns:
- ServerAPI A reference to this class, cast as it's super.
- Throws:
com.nt.common.exceptions.APIException
-
getAdminSvrAuth
public boolean getAdminSvrAuth(String adminIP, String nodeIp, int nodePort) throws com.nt.common.exceptions.APIException - Specified by:
getAdminSvrAuthin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
retryRemoteRef
- Overrides:
retryRemoteRefin classcom.nt.common.util.ServerAPI- Throws:
com.nt.common.exceptions.APIException
-
checkRemote
public void checkRemote()- Specified by:
checkRemotein classcom.nt.common.util.ServerAPI
-
setRemoteRef
- Overrides:
setRemoteRefin classcom.nt.common.util.ServerAPI- Throws:
com.nt.common.exceptions.APIException
-
addAcctEventListener
public void addAcctEventListener(AcctEventListener ael) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
removeAcctEventListener
public void removeAcctEventListener(AcctEventListener ael) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
getEventSender
-
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
-
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.
-
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
-
nodePerformanceUpdate
Description copied from interface:AcctEventListenerIndicates that node performance information was updated.- Specified by:
nodePerformanceUpdatein interfaceAcctEventListener- Parameters:
perfs- Vector of node performance objects
-
setDirConnection
public void setDirConnection(DirectoryConnection dirConn) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
getStatus
Description copied from interface:AdminServerAPIInterfaceReturn status of AS- Specified by:
getStatusin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getVersionInfo
Description copied from interface:AdminServerAPIInterfaceReturn a String containing info about the java environment and packages on the Admin Server.- Specified by:
getVersionInfoin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getCartridgeVersionInfo
public Map getCartridgeVersionInfo(String ip, int port) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceReturn a Map containing cartridge name. InputSteam pairs.- Specified by:
getCartridgeVersionInfoin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getNMVersionInfo
public VersionInfo getNMVersionInfo(String ip, int port) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceReturn a String containing info about the java environment and packages on each Node Manager.- Specified by:
getNMVersionInfoin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getNMList
Description copied from interface:AdminServerAPIInterfaceReturns a vector of NMItem objects which represents all node managers known to the Admin Server.- Specified by:
getNMListin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getNM
- Specified by:
getNMin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getSystemModel
- Specified by:
getSystemModelin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
loadXMLSystemModel
- Specified by:
loadXMLSystemModelin interfaceAdminServerAPIInterface- Throws:
com.nt.udc.upgrade.ImportException
-
checkImportStatus
- Specified by:
checkImportStatusin interfaceAdminServerAPIInterface- Throws:
RemoteException
-
importSystemModel
public void importSystemModel(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) throws com.nt.udc.upgrade.ImportException - Specified by:
importSystemModelin interfaceAdminServerAPIInterface- Throws:
com.nt.udc.upgrade.ImportException
-
doBackUp
- Specified by:
doBackUpin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
validateNmMaps
public void validateNmMaps(ArrayList<com.nt.udc.upgrade.NodeManagerMap> nmMaps) throws com.nt.common.exceptions.APIException - Specified by:
validateNmMapsin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getXMLNodeManagerMap
- Specified by:
getXMLNodeManagerMapin interfaceAdminServerAPIInterface- Throws:
com.nt.udc.upgrade.ImportException
-
exportXMLSystemModel
- Specified by:
exportXMLSystemModelin interfaceAdminServerAPIInterface- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModelOfNodeChain
public String exportXMLSystemModelOfNodeChain(Vector nodesToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModelOfNodeChainin interfaceAdminServerAPIInterface- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModel
public String exportXMLSystemModel(Vector nMItems, Vector nodesToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModelin interfaceAdminServerAPIInterface- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModel
public String exportXMLSystemModel(Vector vctNMItemsToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModelin interfaceAdminServerAPIInterface- Throws:
com.nt.udc.upgrade.ExportException
-
addNM
public void addNM(String inIPAddress, String inName, int inPort) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceInform the Admin Server that a node manager exists at the specified IP Address and port, and that it should be referred to by the specified display name.- Specified by:
addNMin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
changeNM
public void changeNM(String inIPAddress, String inName, int inPort) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceTell the Admin Server to change the display name associated with the node manager at the specified IP Address and port to the specified value.- Specified by:
changeNMin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
changeNM
This function is used to change the name of existing Node Manager- Specified by:
changeNMin interfaceAdminServerAPIInterface- Parameters:
id- The id of the Node Manager to be changedinName- The new name of the node manager- Throws:
com.nt.common.exceptions.APIException
-
removeNM
Description copied from interface:AdminServerAPIInterfaceTell the Admin Server to remove the node manager at the specified IP Address/Port.- Specified by:
removeNMin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
removeNM
This function is used to delete an existing Node Manager using node Manager ID- Specified by:
removeNMin interfaceAdminServerAPIInterface- Parameters:
id- The id of the Node Manager to be removed/deleted- Throws:
com.nt.common.exceptions.APIException
-
getNodeList
Description copied from interface:AdminServerAPIInterfaceReturns a vector of NodeInfo objects which represents all nodes known to the Admin Server.- Specified by:
getNodeListin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getNodeList
public Vector getNodeList(String inIPAddress, int inPort) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceReturns a vector of NodeInfo objects which represents all nodes controlled by the node manager at the specified IP Address/Port.- Specified by:
getNodeListin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getNodeItemList
This function returns a Vector of NodeItem objects- Specified by:
getNodeItemListin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
addNode
public String addNode(String inIPAddress, int port, com.nt.udc.admin.NodeInfo nodeInfo) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceAdd a new node (represented by the NodeInfo object) to the node manager residing at the specified IP Address and port.- Specified by:
addNodein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
addNode
public String addNode(String inIPAddress, int port, com.nt.udc.admin.NodeInfo nodeInfo, boolean regNodeId) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
removeNodes
Description copied from interface:AdminServerAPIInterfaceExpects a vector of nodeID (string) objects. Remove the specified nodes from the system.- Specified by:
removeNodesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getOutputNodes
Description copied from interface:AdminServerAPIInterfaceReturns a vector of ChannelInfo objects which represents all nodes that receive output from the specified node.- Specified by:
getOutputNodesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getInputNodes
Description copied from interface:AdminServerAPIInterfaceReturns a vector of ChannelInfo objects which represents all nodes that sends input to the specified node.- Specified by:
getInputNodesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
setNodeOutputs
public void setNodeOutputs(String inNodeId, Vector inOutputNodes) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceExpects a nodeID (string) and a vector of nodeID (string) objects. Set the output nodes for the specified node to be the specified set of nodes.- Specified by:
setNodeOutputsin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
removeOutputNodes
public void removeOutputNodes(String inNodeId, Vector inOutputNodes) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceExpects a nodeID (string) and a vector of nodeID (string) objects. Remove the specified output nodes from the specified node.- Specified by:
removeOutputNodesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getTemplate
public com.nt.udc.admin.Template getTemplate(String templateId) throws com.nt.common.exceptions.APIException - Specified by:
getTemplatein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getTemplateTree
public com.nt.udc.admin.TemplateTreeRoot getTemplateTree() throws com.nt.common.exceptions.APIException- Specified by:
getTemplateTreein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getSiteInfo
- Specified by:
getSiteInfoin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getLicenses
- Specified by:
getLicensesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getLicensedSet
- Throws:
com.nt.common.exceptions.APIException
-
getRuleFileContent
public byte[] getRuleFileContent(com.nt.udc.admin.NodeInfo info, String inFileName) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceGet the content of the RulesFile with the passed-in name.- Specified by:
getRuleFileContentin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
updateRuleFileContent
public void updateRuleFileContent(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inRuleFileName, byte[] ruleFileContent) throws com.nt.common.exceptions.APIException - Specified by:
updateRuleFileContentin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
isSystemRuleFile
public boolean isSystemRuleFile(com.nt.udc.admin.NodeInfo info, String inFileName) throws com.nt.common.exceptions.APIException - Specified by:
isSystemRuleFilein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
deleteRuleFile
public boolean deleteRuleFile(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inFileName) throws com.nt.common.exceptions.APIException - Specified by:
deleteRuleFilein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
nplChanged
public boolean nplChanged(com.nt.udc.admin.NodeInfo info) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceIndicates whether the NPL file indicated in the given NodeInfo object has changed since the AdminServer was started.- Specified by:
nplChangedin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
compileNPL
public void compileNPL(byte[] nplContent) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceCompiles given npl content for testing if there are any compilation errors- Specified by:
compileNPLin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
reloadNPL
public void reloadNPL(com.nt.udc.admin.NodeInfo info) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceInstructs the AdminServer to recompile the NPL file indicated in the given NodeInfo object.- Specified by:
reloadNPLin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
performConfigAction
public void performConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceConfig Action specific to node- Specified by:
performConfigActionin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
performConfigAction
public void performConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni, String ipAddr, int port) throws com.nt.common.exceptions.APIException - Specified by:
performConfigActionin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getOutputFields
public ArrayList getOutputFields(DCNodeTypeIfc inNodeType, String inRuleFileName) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceGet the output fields in the specified rule file. The ArrayList returned contains other ArrayList objects, one for each output record defined in the rules file. The elements of these ArrayLists are FieldDescriptor objects, one for each field in that output record.- Specified by:
getOutputFieldsin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
copyNPL
public void copyNPL(DCNodeTypeIfc inNodeType, String inRuleFileName) throws com.nt.common.exceptions.APIException - Specified by:
copyNPLin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getExposedFields
public ArrayList getExposedFields(DCNodeTypeIfc inNodeType, String inRuleFileName, String inReason) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceGet the exposed fields from an expose clause of the specified rule file. The ArrayList returned contains FieldDescriptor objects, one for each field in the expose clause matching the reason provided.- Specified by:
getExposedFieldsin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getASLog
public byte[] getASLog() throws com.nt.common.exceptions.APIExceptionDescription copied from interface:AdminServerAPIInterfaceReturn the contents of the log for the Admin Server- Specified by:
getASLogin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getNMLog
Description copied from interface:AdminServerAPIInterfaceReturn the contents of the log for the node manager at the specified IP Address/Port.- Specified by:
getNMLogin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getNodeLog
Description copied from interface:AdminServerAPIInterfaceReturn the contents of the log for the specified node.- Specified by:
getNodeLogin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
setRefreshInterval
public void setRefreshInterval(long inRefInt) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceSets the interval (in seconds) at which the statuses of all Node Managers and Nodes are refreshed- Specified by:
setRefreshIntervalin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
startNodes
Description copied from interface:AdminServerAPIInterfaceExpects a vector of nodeID (string) objects. Start the specified nodes.- Specified by:
startNodesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
stopNodes
Description copied from interface:AdminServerAPIInterfaceExpects a vector of nodeID (string) objects. Stop the specified nodes.- Specified by:
stopNodesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
startAllNodes
public void startAllNodes(String inIPAddress, int inPort) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceStart all nodes on the node manager at the specified IP Address/Port.- Specified by:
startAllNodesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
stopAllNodes
public void stopAllNodes(String inIPAddress, int inPort) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceStop all nodes on the node manager at the specified IP Address.- Specified by:
stopAllNodesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getNodeInfo
public com.nt.udc.admin.NodeInfo getNodeInfo(String inNodeId) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceGet a NodeInfo object describing the specified node.- Specified by:
getNodeInfoin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
setNodeDescription
public void setNodeDescription(com.nt.udc.admin.NodeInfo nodeInfo) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceModify the parameters of the specified node to be in accordance with the passed-in NodeInfo object. This only updates the NodeInfo object in the table and does not save the node's configuration file(s), or cause the node to be reconfigured.- Specified by:
setNodeDescriptionin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
setNodeInfo
public void setNodeInfo(com.nt.udc.admin.NodeInfo nodeInfo) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceModify the parameters of the specified node to be in accordance with the passed-in NodeInfo object.- Specified by:
setNodeInfoin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
reMapWalletPassword
public boolean reMapWalletPassword(String nodeId, List<int[]> indicesList) throws com.nt.common.exceptions.APIException - Specified by:
reMapWalletPasswordin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
clearNMAlarm
Description copied from interface:AdminServerAPIInterfaceClears the alarm on a Node Manager- Specified by:
clearNMAlarmin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
clearNodeAlarm
Description copied from interface:AdminServerAPIInterfaceclears the alarm on a specific node- Specified by:
clearNodeAlarmin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getCurrentPerformanceMetrics
public Vector getCurrentPerformanceMetrics(String ip, int port) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceReturn a vector of performance objects- Specified by:
getCurrentPerformanceMetricsin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
replace
-
getRole
public int getRole(com.nt.udc.admin.User user) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceReturns the role of the user passed as argument- Specified by:
getRolein interfaceAdminServerAPIInterface- Parameters:
user-- Returns:
- role
- Throws:
com.nt.common.exceptions.APIExceptionAuthenticationException
-
login
public void login(com.nt.udc.admin.User user) throws com.nt.common.exceptions.APIException, AuthenticationException Description copied from interface:AdminServerAPIInterfaceAttempts to authenticate the given user with the Admin Server- Specified by:
loginin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIExceptionAuthenticationException
-
logout
public void logout() throws com.nt.common.exceptions.APIExceptionDescription copied from interface:AdminServerAPIInterfaceLogs out the current user- Specified by:
logoutin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getCurrentUserId
Description copied from interface:AdminServerAPIInterfaceReturns the ID of the user currently accessing the Admin Server through this AdminServerAPI Object- Specified by:
getCurrentUserIdin interfaceAdminServerAPIInterface
-
hasAdminPriv
public boolean hasAdminPriv() throws com.nt.common.exceptions.APIExceptionDescription copied from interface:AdminServerAPIInterfaceIndicates whether the current user has Administrative privileges- Specified by:
hasAdminPrivin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
setCurrentUser
public void setCurrentUser(com.nt.udc.admin.User user) Sets the current User -
getCurrentUser
public com.nt.udc.admin.User getCurrentUser()Return the User object representing current logged in user -
getUserList
Description copied from interface:AdminServerAPIInterfaceRetrieves the current list of valid user ids known to the Admin Server.- Specified by:
getUserListin interfaceAdminServerAPIInterface- Returns:
- Vector of User Objects representing the users
- Throws:
com.nt.common.exceptions.APIException
-
modifyUser
public boolean modifyUser(com.nt.udc.admin.User user, Boolean changePassword) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceModifies attributes associated with the given User- Specified by:
modifyUserin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
addUser
public boolean addUser(com.nt.udc.admin.User user) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterfaceAdds a new User to the current list of valid users- Specified by:
addUserin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
removeUsers
Description copied from interface:AdminServerAPIInterfaceRemoves the given Users from the current list of valid users- Specified by:
removeUsersin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getTrapHostList
public com.nt.udc.admin.TrapHostList getTrapHostList() throws com.nt.common.exceptions.APIExceptionDescription copied from interface:AdminServerAPIInterfaceGets list of known SNMP Trap Hosts- Specified by:
getTrapHostListin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
addTrapHost
public void addTrapHost(com.nt.udc.admin.TrapHost host) throws com.nt.common.exceptions.APIException Adds a new host to the list of SNMP Trap Hosts- Specified by:
addTrapHostin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
removeTrapHost
public void removeTrapHost(com.nt.udc.admin.TrapHost host) throws com.nt.common.exceptions.APIException Removes a host from the list of SNMP Trap Hosts- Specified by:
removeTrapHostin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
removeTrapHosts
Removes a host from the list of SNMP Trap Hosts- Specified by:
removeTrapHostsin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
modifyTrapHost
public void modifyTrapHost(com.nt.udc.admin.TrapHost oldhost, com.nt.udc.admin.TrapHost newhost) throws com.nt.common.exceptions.APIException Modifies a host in the list of SNMP Trap Hosts- Specified by:
modifyTrapHostin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getDSHost
Description copied from interface:AdminServerAPIInterfaceGets Data Server host name- Specified by:
getDSHostin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getDSPort
Description copied from interface:AdminServerAPIInterfaceGets Data Server port- Specified by:
getDSPortin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
showServerCommFailureDialog
protected void showServerCommFailureDialog()- Overrides:
showServerCommFailureDialogin classcom.nt.common.util.ServerAPI
-
getASConfig
Get a copy of the current Admin Server Config object. Currently contains only Mediation Assurance (CDR Count) parameters.- Specified by:
getASConfigin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
setASConfig
Description copied from interface:AdminServerAPIInterfaceSets the Admin Server Config object. All original attributes should be present, even if they haven't been changed.- Specified by:
setASConfigin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
exportWithCustomization
public byte[] exportWithCustomization(Vector nmListToExport, String exportName) throws com.nt.common.exceptions.APIException makes call to exportWithCustomization() method of Admin Server and returns the byte array which it received from the call.- Specified by:
exportWithCustomizationin interfaceAdminServerAPIInterface- Parameters:
nmListToExport- list of node managers for which export should be done.exportName- the name of configuration xml which will be created during export- Returns:
- byte[] returns the customization content received from the call to exportWithCustomization of admin server.
- Throws:
com.nt.common.exceptions.APIException
-
exportWithCustomization
public byte[] exportWithCustomization(Vector nmList, Vector nodesToExport, String exportName) throws com.nt.common.exceptions.APIException makes call to exportWithCustomization() method of Admin Server and returns the byte array which it received from the call.- Specified by:
exportWithCustomizationin interfaceAdminServerAPIInterface- Parameters:
exportName- the name of configuration xml which will be created during exportnmListToExport- list of node managers for which export should be done.- Returns:
- byte[] returns the customization content received from the call to exportWithCustomization of admin server.
- Throws:
com.nt.common.exceptions.APIException
-
importCustomization
public boolean importCustomization(ArrayList nmMaps, byte[] contents) throws com.nt.common.exceptions.APIException makes call to importCustomization() method of Admin Server and returns the boolean value which it has received from the call.- Specified by:
importCustomizationin interfaceAdminServerAPIInterface- Parameters:
nmMaps-contents-- Returns:
- boolean
- Throws:
com.nt.common.exceptions.APIException
-
getImportCustomLog
makes call to getImportCustomLog() of Admin Server and returns the String which it has received from the call.- Specified by:
getImportCustomLogin interfaceAdminServerAPIInterface- Returns:
- String the log created during importCustomization()
- Throws:
com.nt.common.exceptions.APIException
-
getResetPwdInfo
public boolean getResetPwdInfo(com.nt.udc.admin.User user) throws com.nt.common.exceptions.APIException makes call to getResetPwdInfo() of Admin Server and returns the password reset information- Parameters:
user-- Returns:
- the boolean value indicating password is reset or not
- Throws:
com.nt.common.exceptions.APIException
-
getSecondsToPasswordExpiration
public int getSecondsToPasswordExpiration(com.nt.udc.admin.User user) throws com.nt.common.exceptions.APIException makes call to getSecondsToPasswordExpiration() of Admin Server and returns the seconds until password expiration- Parameters:
user- information of user- Returns:
- number of seconds until password expiration
- Throws:
com.nt.common.exceptions.APIException
-
getTimeoutValueMiliSec
public long getTimeoutValueMiliSec() throws com.nt.common.exceptions.APIExceptionreturns the time out value for session expiry- Returns:
- Throws:
RemoteExceptioncom.nt.common.exceptions.APIException
-
getAuthUsers
public boolean getAuthUsers() throws com.nt.common.exceptions.APIExceptionreturns true if authentication is enabled- Specified by:
getAuthUsersin interfaceAdminServerAPIInterface- Returns:
- Throws:
com.nt.common.exceptions.APIException
-
setImportExportProperty
public void setImportExportProperty(String[][] newNmMap) throws com.nt.common.exceptions.APIException - Specified by:
setImportExportPropertyin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
isHostBasedEnv
public boolean isHostBasedEnv() throws com.nt.common.exceptions.APIException- Throws:
com.nt.common.exceptions.APIException
-
addRRNodeDestination
public void addRRNodeDestination(String sourceNodeId, String destNodeId) throws com.nt.common.exceptions.APIException - Specified by:
addRRNodeDestinationin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
removeRoute
public String removeRoute(String sourceNodeId, String destNodeId) throws com.nt.common.exceptions.APIException - Specified by:
removeRoutein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
addRoute
public String addRoute(String sourceNodeId, String destNodeId, String routeFunc, String rField, Vector rCondition) throws com.nt.common.exceptions.APIException - Specified by:
addRoutein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getDestNodesInNM
public Vector getDestNodesInNM(String srcNode, String host, Integer port) throws com.nt.common.exceptions.APIException - Specified by:
getDestNodesInNMin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
validateNMForNodeTypes
public boolean validateNMForNodeTypes(String inclusionExclusion, String majMin, String host, Integer port) throws com.nt.common.exceptions.APIException - Specified by:
validateNMForNodeTypesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
changeRoutingToRR
public void changeRoutingToRR(String srcNodeid, String destNodeId) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
clearNodeIdCorrelationsMap
public boolean clearNodeIdCorrelationsMap() throws com.nt.common.exceptions.APIException- Specified by:
clearNodeIdCorrelationsMapin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
integrateRoutingCCNMScaleUp
public boolean integrateRoutingCCNMScaleUp(String ccHost, Integer ccPort) throws com.nt.common.exceptions.APIException - Specified by:
integrateRoutingCCNMScaleUpin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
integrateRouting
public void integrateRouting(String parentHost, Integer parentPort) throws com.nt.common.exceptions.APIException - Specified by:
integrateRoutingin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getOsaHome
- Specified by:
getOsaHomein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
integrateScalingDownForSegregatedNM
public void integrateScalingDownForSegregatedNM(String nmList) throws com.nt.common.exceptions.APIException - Specified by:
integrateScalingDownForSegregatedNMin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
integrateScalingDownForNonSegregatedNM
public void integrateScalingDownForNonSegregatedNM(String nmlist) throws com.nt.common.exceptions.APIException - Specified by:
integrateScalingDownForNonSegregatedNMin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
updateRoute
public String updateRoute(String sourceNodeId, String destNodeId, String routeFunc, String rField, Vector rCondition) throws com.nt.common.exceptions.APIException - Specified by:
updateRoutein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
updateRouteParameters
public String updateRouteParameters(String sourceNodeId, String destNodeId, String rField, Vector rCondition) throws com.nt.common.exceptions.APIException - Specified by:
updateRouteParametersin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
uploadNodeChainTestInputFile
public void uploadNodeChainTestInputFile(byte[] data, String nodeId, String fileName) throws com.nt.common.exceptions.APIException - Specified by:
uploadNodeChainTestInputFilein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
runNodeChainTest
public void runNodeChainTest(String uploadId, NodeChainTestCfgItem cfgItem) throws com.nt.common.exceptions.APIException - Specified by:
runNodeChainTestin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getOutputNodeChainTest
public List<NodeChainOutputRecords> getOutputNodeChainTest(String nodeId) throws com.nt.common.exceptions.APIException - Specified by:
getOutputNodeChainTestin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
completeNodeChainTest
- Specified by:
completeNodeChainTestin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getConfigValue
public String getConfigValue(DCNodeTypeIfc inNodeType, String inRuleFileName, String inKey) throws com.nt.common.exceptions.APIException - Specified by:
getConfigValuein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getDetailsAboutTest
- Throws:
com.nt.common.exceptions.APIException
-
onNodeStatisticsChange
Description copied from interface:TNCEventReceiverIfcHandles changes in node statistics.- Specified by:
onNodeStatisticsChangein interfaceTNCEventReceiverIfc- Parameters:
nodeData- A List of NodeUpdateEvent objects representing the updated node statistics.
-
onNodeStatusChange
Description copied from interface:TNCEventReceiverIfcHandles changes in node status.- Specified by:
onNodeStatusChangein interfaceTNCEventReceiverIfc- Parameters:
nodeData- The NodeStatusUpdateEventIfc object representing the updated node status.
-
onTestStatusChange
Description copied from interface:TNCEventReceiverIfcHandles changes in test status.- Specified by:
onTestStatusChangein interfaceTNCEventReceiverIfc
-
onNodeOutputFileAvailable
Description copied from interface:TNCEventReceiverIfcHandles changes in output file availability- Specified by:
onNodeOutputFileAvailablein interfaceTNCEventReceiverIfc- Parameters:
nodeOutputFileAvailable- The NodeOutputFileAvailableEvent object containing the output files data
-
onBulkEvents
Description copied from interface:TNCEventReceiverIfcHandles bulk events.- Specified by:
onBulkEventsin interfaceTNCEventReceiverIfc- Parameters:
events- A List of BaseEventIfc objects representing the bulk events to be processed.
-
onTestAboutToTimeout
Description copied from interface:TNCEventReceiverIfcHandles the event when a test is about to timeout.- Specified by:
onTestAboutToTimeoutin interfaceTNCEventReceiverIfc- Parameters:
event- The TestTimeoutReminderEvent containing information about the test about to timeout.- Throws:
RemoteException- If a remote exception occurs during the handling of node status changes.
-
onFreeUpTestResources
Description copied from interface:TNCEventReceiverIfcWill be called when the sender is cleaning up the resources allocated for this test.- Specified by:
onFreeUpTestResourcesin interfaceTNCEventReceiverIfc- Parameters:
testId- The identifier of the test being cleaned up.- Throws:
RemoteException- If there is a communication-related exception.
-
onRemoveTestListener
Description copied from interface:TNCEventReceiverIfcWill be called when the sender is removing this listener from test mapping.- Specified by:
onRemoveTestListenerin interfaceTNCEventReceiverIfc- Parameters:
testId- The identifier of the test being cleaned up.- Throws:
RemoteException- If there is a communication-related exception.
-
onRemoveReceiver
Description copied from interface:TNCEventReceiverIfcWill be called when the sender is removing this listener enttirely- Specified by:
onRemoveReceiverin interfaceTNCEventReceiverIfc- Throws:
RemoteException- If there is a communication-related exception.
-
addReceiver
Adds a receiver with the specified identifier for a given test. This method handles the subscription with the admin-server, loads the local buffer with events, and then propagates them to the registered receiver. If the local buffer is already populated due to previous registrations for the same test, the local events are propagated without making a call to the admin-server. The local buffer should always contain the latest events, as it is the responsibility of the callback method implementations in this class to populate it upon receiving.- Parameters:
id- The unique identifier for the receiver.recv- The TNCEventReceiverIfc implementation to be added.testID- The unique identifier of the test for which the receiver is added.
-
removeReceiver
-
getSol42DescriptorFiles
public List<String> getSol42DescriptorFiles(String nmID) throws com.nt.common.exceptions.APIException - Specified by:
getSol42DescriptorFilesin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
getRuleFileDisplayName
public String getRuleFileDisplayName(String nodeContext, String ruleFileName) throws com.nt.common.exceptions.APIException - Specified by:
getRuleFileDisplayNamein interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
extendTestTimeout
- Specified by:
extendTestTimeoutin interfaceAdminServerAPIInterface- Throws:
com.nt.common.exceptions.APIException
-
uploadImport
public ImportMetadata uploadImport(String configuration, byte[] customization) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
updateImportMetadata
public ImportMetadata updateImportMetadata(String importId, ImportMetadata newMetadata) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
runImport
- Throws:
com.nt.common.exceptions.APIException
-
getCurrentImport
- Throws:
com.nt.common.exceptions.APIException
-
getImportTask
public ImportTaskProgressResponse getImportTask(String importId, String importTaskId) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
replicateNode
public String replicateNode(String sourceNodeId, String destNodeManagerId) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
replicateNodeManager
public boolean replicateNodeManager(NodeManagerReplicateRequest request) throws com.nt.common.exceptions.APIException - Throws:
com.nt.common.exceptions.APIException
-
isNodePartOfRunningTNC
- Throws:
com.nt.common.exceptions.APIException
-
getNodeChainTestCfg
- Throws:
com.nt.common.exceptions.APIException
-
getAllLockedAndRunningTestNodes
- Throws:
com.nt.common.exceptions.APIException
-
isReceiverValid
public boolean isReceiverValid() -
scaleDownNodeManager
public boolean scaleDownNodeManager(String nmId, boolean isPreBackupCleanup) throws com.nt.common.exceptions.APIException make call to scaleDownNodeManager API in adminServer- Parameters:
nmId- - nodeManager IdisPreBackupCleanup- - if true then all the preBackUp task will be done- Returns:
- true if scaledown API finishes successfully, else false
- Throws:
com.nt.common.exceptions.APIException
-