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 TypeMethodDescriptionvoid
void
Inform 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.void
addReceiver
(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) void
addRRNodeDestination
(String sourceNodeId, String destNodeId) void
addTrapHost
(com.nt.udc.admin.TrapHost host) Adds a new host to the list of SNMP Trap Hostsboolean
addUser
(com.nt.udc.admin.User user) Adds a new User to the current list of valid usersvoid
Indicates that the properties of an Admin Server have changed.void
This function is used to change the name of existing Node Managervoid
Tell the Admin Server to change the display name associated with the node manager at the specified IP Address and port to the specified value.void
changeRoutingToRR
(String srcNodeid, String destNodeId) void
void
clearNMAlarm
(String ipAddress, int inPort) Clears the alarm on a Node Managervoid
clearNodeAlarm
(String nodeId) clears the alarm on a specific nodeboolean
void
compileNPL
(byte[] nplContent) Compiles given npl content for testing if there are any compilation errorsvoid
completeNodeChainTest
(String testId) void
copyNPL
(DCNodeTypeIfc inNodeType, String inRuleFileName) boolean
deleteRuleFile
(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inFileName) void
byte[]
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) boolean
extendTestTimeout
(String testId) void
fileChanged
(com.nt.udc.admin.FileItem file) Indicates that a system file changed.boolean
getAdminSvrAuth
(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 Serverboolean
returns 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.User
Return 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.ServerAPI
getInstance
(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.ServerAPI
getInstance
(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.NMItem
Returns 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.NodeInfo
getNodeInfo
(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.boolean
getResetPwdInfo
(com.nt.udc.admin.User user) makes call to getResetPwdInfo() of Admin Server and returns the password reset informationint
getRole
(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) int
getSecondsToPasswordExpiration
(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.Template
getTemplate
(String templateId) com.nt.udc.admin.TemplateTreeRoot
long
returns the time out value for session expirycom.nt.udc.admin.TrapHostList
Gets 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.boolean
Indicates whether the current user has Administrative privilegesboolean
importCustomization
(ArrayList nmMaps, byte[] contents) makes call to importCustomization() method of Admin Server and returns the boolean value which it has received from the call.void
importSystemModel
(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) void
integrateRouting
(String parentHost, Integer parentPort) boolean
integrateRoutingCCNMScaleUp
(String ccHost, Integer ccPort) void
void
boolean
boolean
isNodePartOfRunningTNC
(String nodeId) boolean
boolean
isSystemRuleFile
(com.nt.udc.admin.NodeInfo info, String inFileName) void
loadXMLSystemModel
(String xmlSystemModel) void
login
(com.nt.udc.admin.User user) Attempts to authenticate the given user with the Admin Servervoid
logout()
Logs out the current uservoid
modifyTrapHost
(com.nt.udc.admin.TrapHost oldhost, com.nt.udc.admin.TrapHost newhost) Modifies a host in the list of SNMP Trap Hostsboolean
modifyUser
(com.nt.udc.admin.User user, Boolean changePassword) Modifies attributes associated with the given Uservoid
nodeChanged
(com.nt.udc.admin.NMItem nmItem) Indicates that the properties of a Node have changed.void
nodeManagerChanged
(com.nt.udc.admin.NMItem nmItem) Indicates that the properties of a Node Manager have changed.void
nodeManagersAdded
(Vector nmList) Indicates that one or more NodeManagers were added.void
nodeManagersRemoved
(Vector nmList) Indicates that one or more NodeManagers were removed.void
nodePerformanceUpdate
(Vector perfs) Indicates that node performance information was updated.void
nodesAdded
(com.nt.udc.admin.NMItem nmItem) Indicates that a Node has been added to a particular Node Manager.void
nodesRemoved
(com.nt.udc.admin.NMItem nmItem) Indicates that a Node has been removed from a particular Node Manager.boolean
nplChanged
(com.nt.udc.admin.NodeInfo info) Indicates whether the NPL file indicated in the given NodeInfo object has changed since the AdminServer was started.void
onBulkEvents
(List<BaseEventIfc> events) Handles bulk events.void
onFreeUpTestResources
(String testId) Will be called when the sender is cleaning up the resources allocated for this test.void
onNodeOutputFileAvailable
(NodeOutputFileAvailableEvent nodeOutputFileAvailable) Handles changes in output file availabilityvoid
onNodeStatisticsChange
(List<NodeUpdateEvent> nodeData) Handles changes in node statistics.void
onNodeStatusChange
(NodeStatusUpdateEventIfc nodeData) Handles changes in node status.void
onRemoveReceiver
(String receiverId) Will be called when the sender is removing this listener enttirelyvoid
onRemoveTestListener
(String testId) Will be called when the sender is removing this listener from test mapping.void
Handles the event when a test is about to timeout.void
onTestStatusChange
(TestStatusChangeEventIfc testStatus) Handles changes in test status.void
performConfigAction
(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni) Config Action specific to nodevoid
performConfigAction
(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni, String ipAddr, int port) void
reloadNPL
(com.nt.udc.admin.NodeInfo info) Instructs the AdminServer to recompile the NPL file indicated in the given NodeInfo object.boolean
reMapWalletPassword
(String nodeId, List<int[]> indicesList) void
void
This function is used to delete an existing Node Manager using node Manager IDvoid
Tell the Admin Server to remove the node manager at the specified IP Address/Port.void
removeNodes
(Vector inNodeIds) Expects a vector of nodeID (string) objects.void
removeOutputNodes
(String inNodeId, Vector inOutputNodes) Expects a nodeID (string) and a vector of nodeID (string) objects.void
removeReceiver
(String receiverID) removeRoute
(String sourceNodeId, String destNodeId) void
removeTrapHost
(com.nt.udc.admin.TrapHost host) Removes a host from the list of SNMP Trap Hostsvoid
removeTrapHosts
(Vector hosts) Removes a host from the list of SNMP Trap Hostsboolean
removeUsers
(Vector userList) Removes the given Users from the current list of valid usersstatic void
replace
(AdminServerAPI api) replicateNode
(String sourceNodeId, String destNodeManagerId) boolean
protected Remote
void
runNodeChainTest
(String uploadId, NodeChainTestCfgItem cfgItem) boolean
scaleDownNodeManager
(String nmId, boolean isPreBackupCleanup) make call to scaleDownNodeManager API in adminServervoid
setASConfig
(Hashtable asConfig) Sets the Admin Server Config object.void
setCurrentUser
(com.nt.udc.admin.User user) Sets the current Uservoid
setDirConnection
(DirectoryConnection dirConn) void
setImportExportProperty
(String[][] newNmMap) void
setNodeDescription
(com.nt.udc.admin.NodeInfo nodeInfo) Modify the parameters of the specified node to be in accordance with the passed-in NodeInfo object.void
setNodeInfo
(com.nt.udc.admin.NodeInfo nodeInfo) Modify the parameters of the specified node to be in accordance with the passed-in NodeInfo object.void
setNodeOutputs
(String inNodeId, Vector inOutputNodes) Expects a nodeID (string) and a vector of nodeID (string) objects.void
setRefreshInterval
(long inRefInt) Sets the interval (in seconds) at which the statuses of all Node Managers and Nodes are refreshedprotected void
setRemoteRef
(String server) protected void
void
startAllNodes
(String inIPAddress, int inPort) Start all nodes on the node manager at the specified IP Address/Port.void
startNodes
(Vector inNodeIds) Expects a vector of nodeID (string) objects.void
stopAllNodes
(String inIPAddress, int inPort) Stop all nodes on the node manager at the specified IP Address.void
Expects a vector of nodeID (string) objects.void
systemUpdate
(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) void
updateRuleFileContent
(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inRuleFileName, byte[] ruleFileContent) uploadImport
(String configuration, byte[] customization) void
uploadNodeChainTestInputFile
(byte[] data, String nodeId, String fileName) boolean
validateNMForNodeTypes
(String inclusionExclusion, String majMin, String host, Integer port) void
validateNmMaps
(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:
getAdminSvrAuth
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
retryRemoteRef
- Overrides:
retryRemoteRef
in classcom.nt.common.util.ServerAPI
- Throws:
com.nt.common.exceptions.APIException
-
checkRemote
public void checkRemote()- Specified by:
checkRemote
in classcom.nt.common.util.ServerAPI
-
setRemoteRef
- Overrides:
setRemoteRef
in 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:AcctEventListener
Indicates 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:
nodeManagersAdded
in interfaceAcctEventListener
- Throws:
RemoteException
-
nodeManagersRemoved
Description copied from interface:AcctEventListener
Indicates that one or more NodeManagers were removed.- Specified by:
nodeManagersRemoved
in interfaceAcctEventListener
- Parameters:
nmList
- Vector of NMItem objects representing the Node Managers that were removed.- Throws:
RemoteException
-
nodeManagerChanged
Description copied from interface:AcctEventListener
Indicates that the properties of a Node Manager have changed.- Specified by:
nodeManagerChanged
in interfaceAcctEventListener
- Parameters:
nmItem
- NMItem object representing the Node Manager that changed.- Throws:
RemoteException
-
nodesAdded
Description copied from interface:AcctEventListener
Indicates that a Node has been added to a particular Node Manager.- Specified by:
nodesAdded
in interfaceAcctEventListener
- Parameters:
nmItem
- NMItem object which represents the Node Manager managing the node that was added. The Vector associated withnodeManager
will contain only the node that was added.- Throws:
RemoteException
-
nodesRemoved
Description copied from interface:AcctEventListener
Indicates that a Node has been removed from a particular Node Manager.- Specified by:
nodesRemoved
in interfaceAcctEventListener
- Parameters:
nmItem
- NMItem object which represents the Node Manager managing the node that was removed. The Vector associated withnodeManager
will contain only the node(s) that was(were) removed.- Throws:
RemoteException
-
nodeChanged
Description copied from interface:AcctEventListener
Indicates that the properties of a Node have changed.- Specified by:
nodeChanged
in interfaceAcctEventListener
- Parameters:
nmItem
- NMItem object which represents the Node Manager whose node changed. The Vector associated withnodeManager
will contain the node that changed.- Throws:
RemoteException
-
fileChanged
Description copied from interface:AcctEventListener
Indicates that a system file changed.- Specified by:
fileChanged
in interfaceAcctEventListener
- Parameters:
file
- FileItem object representing the system file that changed.- Throws:
RemoteException
-
adminServerChanged
Description copied from interface:AcctEventListener
Indicates that the properties of an Admin Server have changed.- Specified by:
adminServerChanged
in interfaceAcctEventListener
- Parameters:
sm
- StatusMessage object representing the change in the AdminServer.
-
systemUpdate
Description copied from interface:AcctEventListener
Indicates that the system has substantially changed.- Specified by:
systemUpdate
in interfaceAcctEventListener
- Parameters:
model
- SystemModel representing the current state of the system.- Throws:
RemoteException
-
nodePerformanceUpdate
Description copied from interface:AcctEventListener
Indicates that node performance information was updated.- Specified by:
nodePerformanceUpdate
in 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:AdminServerAPIInterface
Return status of AS- Specified by:
getStatus
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getVersionInfo
Description copied from interface:AdminServerAPIInterface
Return a String containing info about the java environment and packages on the Admin Server.- Specified by:
getVersionInfo
in 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:AdminServerAPIInterface
Return a Map containing cartridge name. InputSteam pairs.- Specified by:
getCartridgeVersionInfo
in 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:AdminServerAPIInterface
Return a String containing info about the java environment and packages on each Node Manager.- Specified by:
getNMVersionInfo
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getNMList
Description copied from interface:AdminServerAPIInterface
Returns a vector of NMItem objects which represents all node managers known to the Admin Server.- Specified by:
getNMList
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getNM
- Specified by:
getNM
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getSystemModel
- Specified by:
getSystemModel
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
loadXMLSystemModel
- Specified by:
loadXMLSystemModel
in interfaceAdminServerAPIInterface
- Throws:
com.nt.udc.upgrade.ImportException
-
checkImportStatus
- Specified by:
checkImportStatus
in interfaceAdminServerAPIInterface
- Throws:
RemoteException
-
importSystemModel
public void importSystemModel(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) throws com.nt.udc.upgrade.ImportException - Specified by:
importSystemModel
in interfaceAdminServerAPIInterface
- Throws:
com.nt.udc.upgrade.ImportException
-
doBackUp
- Specified by:
doBackUp
in 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:
validateNmMaps
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getXMLNodeManagerMap
- Specified by:
getXMLNodeManagerMap
in interfaceAdminServerAPIInterface
- Throws:
com.nt.udc.upgrade.ImportException
-
exportXMLSystemModel
- Specified by:
exportXMLSystemModel
in interfaceAdminServerAPIInterface
- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModelOfNodeChain
public String exportXMLSystemModelOfNodeChain(Vector nodesToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModelOfNodeChain
in interfaceAdminServerAPIInterface
- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModel
public String exportXMLSystemModel(Vector nMItems, Vector nodesToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModel
in interfaceAdminServerAPIInterface
- Throws:
com.nt.udc.upgrade.ExportException
-
exportXMLSystemModel
public String exportXMLSystemModel(Vector vctNMItemsToExport) throws com.nt.udc.upgrade.ExportException - Specified by:
exportXMLSystemModel
in 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:AdminServerAPIInterface
Inform 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:
addNM
in 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:AdminServerAPIInterface
Tell 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:
changeNM
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
changeNM
This function is used to change the name of existing Node Manager- Specified by:
changeNM
in 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:AdminServerAPIInterface
Tell the Admin Server to remove the node manager at the specified IP Address/Port.- Specified by:
removeNM
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
removeNM
This function is used to delete an existing Node Manager using node Manager ID- Specified by:
removeNM
in interfaceAdminServerAPIInterface
- Parameters:
id
- The id of the Node Manager to be removed/deleted- Throws:
com.nt.common.exceptions.APIException
-
getNodeList
Description copied from interface:AdminServerAPIInterface
Returns a vector of NodeInfo objects which represents all nodes known to the Admin Server.- Specified by:
getNodeList
in 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:AdminServerAPIInterface
Returns a vector of NodeInfo objects which represents all nodes controlled by the node manager at the specified IP Address/Port.- Specified by:
getNodeList
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getNodeItemList
This function returns a Vector of NodeItem objects- Specified by:
getNodeItemList
in 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:AdminServerAPIInterface
Add a new node (represented by the NodeInfo object) to the node manager residing at the specified IP Address and port.- Specified by:
addNode
in 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:AdminServerAPIInterface
Expects a vector of nodeID (string) objects. Remove the specified nodes from the system.- Specified by:
removeNodes
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getOutputNodes
Description copied from interface:AdminServerAPIInterface
Returns a vector of ChannelInfo objects which represents all nodes that receive output from the specified node.- Specified by:
getOutputNodes
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getInputNodes
Description copied from interface:AdminServerAPIInterface
Returns a vector of ChannelInfo objects which represents all nodes that sends input to the specified node.- Specified by:
getInputNodes
in 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:AdminServerAPIInterface
Expects 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:
setNodeOutputs
in 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:AdminServerAPIInterface
Expects a nodeID (string) and a vector of nodeID (string) objects. Remove the specified output nodes from the specified node.- Specified by:
removeOutputNodes
in 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:
getTemplate
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getTemplateTree
public com.nt.udc.admin.TemplateTreeRoot getTemplateTree() throws com.nt.common.exceptions.APIException- Specified by:
getTemplateTree
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getSiteInfo
- Specified by:
getSiteInfo
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getLicenses
- Specified by:
getLicenses
in 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:AdminServerAPIInterface
Get the content of the RulesFile with the passed-in name.- Specified by:
getRuleFileContent
in 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:
updateRuleFileContent
in 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:
isSystemRuleFile
in 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:
deleteRuleFile
in 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:AdminServerAPIInterface
Indicates whether the NPL file indicated in the given NodeInfo object has changed since the AdminServer was started.- Specified by:
nplChanged
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
compileNPL
public void compileNPL(byte[] nplContent) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterface
Compiles given npl content for testing if there are any compilation errors- Specified by:
compileNPL
in 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:AdminServerAPIInterface
Instructs the AdminServer to recompile the NPL file indicated in the given NodeInfo object.- Specified by:
reloadNPL
in 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:AdminServerAPIInterface
Config Action specific to node- Specified by:
performConfigAction
in 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:
performConfigAction
in 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:AdminServerAPIInterface
Get 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:
getOutputFields
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
copyNPL
public void copyNPL(DCNodeTypeIfc inNodeType, String inRuleFileName) throws com.nt.common.exceptions.APIException - Specified by:
copyNPL
in 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:AdminServerAPIInterface
Get 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:
getExposedFields
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getASLog
public byte[] getASLog() throws com.nt.common.exceptions.APIExceptionDescription copied from interface:AdminServerAPIInterface
Return the contents of the log for the Admin Server- Specified by:
getASLog
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getNMLog
Description copied from interface:AdminServerAPIInterface
Return the contents of the log for the node manager at the specified IP Address/Port.- Specified by:
getNMLog
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getNodeLog
Description copied from interface:AdminServerAPIInterface
Return the contents of the log for the specified node.- Specified by:
getNodeLog
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
setRefreshInterval
public void setRefreshInterval(long inRefInt) throws com.nt.common.exceptions.APIException Description copied from interface:AdminServerAPIInterface
Sets the interval (in seconds) at which the statuses of all Node Managers and Nodes are refreshed- Specified by:
setRefreshInterval
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
startNodes
Description copied from interface:AdminServerAPIInterface
Expects a vector of nodeID (string) objects. Start the specified nodes.- Specified by:
startNodes
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
stopNodes
Description copied from interface:AdminServerAPIInterface
Expects a vector of nodeID (string) objects. Stop the specified nodes.- Specified by:
stopNodes
in 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:AdminServerAPIInterface
Start all nodes on the node manager at the specified IP Address/Port.- Specified by:
startAllNodes
in 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:AdminServerAPIInterface
Stop all nodes on the node manager at the specified IP Address.- Specified by:
stopAllNodes
in 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:AdminServerAPIInterface
Get a NodeInfo object describing the specified node.- Specified by:
getNodeInfo
in 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:AdminServerAPIInterface
Modify 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:
setNodeDescription
in 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:AdminServerAPIInterface
Modify the parameters of the specified node to be in accordance with the passed-in NodeInfo object.- Specified by:
setNodeInfo
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
reMapWalletPassword
public boolean reMapWalletPassword(String nodeId, List<int[]> indicesList) throws com.nt.common.exceptions.APIException - Specified by:
reMapWalletPassword
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
clearNMAlarm
Description copied from interface:AdminServerAPIInterface
Clears the alarm on a Node Manager- Specified by:
clearNMAlarm
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
clearNodeAlarm
Description copied from interface:AdminServerAPIInterface
clears the alarm on a specific node- Specified by:
clearNodeAlarm
in 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:AdminServerAPIInterface
Return a vector of performance objects- Specified by:
getCurrentPerformanceMetrics
in 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:AdminServerAPIInterface
Returns the role of the user passed as argument- Specified by:
getRole
in interfaceAdminServerAPIInterface
- Parameters:
user
-- Returns:
- role
- Throws:
com.nt.common.exceptions.APIException
AuthenticationException
-
login
public void login(com.nt.udc.admin.User user) throws com.nt.common.exceptions.APIException, AuthenticationException Description copied from interface:AdminServerAPIInterface
Attempts to authenticate the given user with the Admin Server- Specified by:
login
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
AuthenticationException
-
logout
public void logout() throws com.nt.common.exceptions.APIExceptionDescription copied from interface:AdminServerAPIInterface
Logs out the current user- Specified by:
logout
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getCurrentUserId
Description copied from interface:AdminServerAPIInterface
Returns the ID of the user currently accessing the Admin Server through this AdminServerAPI Object- Specified by:
getCurrentUserId
in interfaceAdminServerAPIInterface
-
hasAdminPriv
public boolean hasAdminPriv() throws com.nt.common.exceptions.APIExceptionDescription copied from interface:AdminServerAPIInterface
Indicates whether the current user has Administrative privileges- Specified by:
hasAdminPriv
in 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:AdminServerAPIInterface
Retrieves the current list of valid user ids known to the Admin Server.- Specified by:
getUserList
in 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:AdminServerAPIInterface
Modifies attributes associated with the given User- Specified by:
modifyUser
in 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:AdminServerAPIInterface
Adds a new User to the current list of valid users- Specified by:
addUser
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
removeUsers
Description copied from interface:AdminServerAPIInterface
Removes the given Users from the current list of valid users- Specified by:
removeUsers
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getTrapHostList
public com.nt.udc.admin.TrapHostList getTrapHostList() throws com.nt.common.exceptions.APIExceptionDescription copied from interface:AdminServerAPIInterface
Gets list of known SNMP Trap Hosts- Specified by:
getTrapHostList
in 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:
addTrapHost
in 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:
removeTrapHost
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
removeTrapHosts
Removes a host from the list of SNMP Trap Hosts- Specified by:
removeTrapHosts
in 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:
modifyTrapHost
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getDSHost
Description copied from interface:AdminServerAPIInterface
Gets Data Server host name- Specified by:
getDSHost
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getDSPort
Description copied from interface:AdminServerAPIInterface
Gets Data Server port- Specified by:
getDSPort
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
showServerCommFailureDialog
protected void showServerCommFailureDialog()- Overrides:
showServerCommFailureDialog
in 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:
getASConfig
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
setASConfig
Description copied from interface:AdminServerAPIInterface
Sets the Admin Server Config object. All original attributes should be present, even if they haven't been changed.- Specified by:
setASConfig
in 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:
exportWithCustomization
in 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:
exportWithCustomization
in 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:
importCustomization
in 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:
getImportCustomLog
in 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:
RemoteException
com.nt.common.exceptions.APIException
-
getAuthUsers
public boolean getAuthUsers() throws com.nt.common.exceptions.APIExceptionreturns true if authentication is enabled- Specified by:
getAuthUsers
in interfaceAdminServerAPIInterface
- Returns:
- Throws:
com.nt.common.exceptions.APIException
-
setImportExportProperty
public void setImportExportProperty(String[][] newNmMap) throws com.nt.common.exceptions.APIException - Specified by:
setImportExportProperty
in 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:
addRRNodeDestination
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
removeRoute
public String removeRoute(String sourceNodeId, String destNodeId) throws com.nt.common.exceptions.APIException - Specified by:
removeRoute
in 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:
addRoute
in 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:
getDestNodesInNM
in 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:
validateNMForNodeTypes
in 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:
clearNodeIdCorrelationsMap
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
integrateRoutingCCNMScaleUp
public boolean integrateRoutingCCNMScaleUp(String ccHost, Integer ccPort) throws com.nt.common.exceptions.APIException - Specified by:
integrateRoutingCCNMScaleUp
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
integrateRouting
public void integrateRouting(String parentHost, Integer parentPort) throws com.nt.common.exceptions.APIException - Specified by:
integrateRouting
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getOsaHome
- Specified by:
getOsaHome
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
integrateScalingDownForSegregatedNM
public void integrateScalingDownForSegregatedNM(String nmList) throws com.nt.common.exceptions.APIException - Specified by:
integrateScalingDownForSegregatedNM
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
integrateScalingDownForNonSegregatedNM
public void integrateScalingDownForNonSegregatedNM(String nmlist) throws com.nt.common.exceptions.APIException - Specified by:
integrateScalingDownForNonSegregatedNM
in 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:
updateRoute
in 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:
updateRouteParameters
in 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:
uploadNodeChainTestInputFile
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
runNodeChainTest
public void runNodeChainTest(String uploadId, NodeChainTestCfgItem cfgItem) throws com.nt.common.exceptions.APIException - Specified by:
runNodeChainTest
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getOutputNodeChainTest
public List<NodeChainOutputRecords> getOutputNodeChainTest(String nodeId) throws com.nt.common.exceptions.APIException - Specified by:
getOutputNodeChainTest
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
completeNodeChainTest
- Specified by:
completeNodeChainTest
in 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:
getConfigValue
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getDetailsAboutTest
- Throws:
com.nt.common.exceptions.APIException
-
onNodeStatisticsChange
Description copied from interface:TNCEventReceiverIfc
Handles changes in node statistics.- Specified by:
onNodeStatisticsChange
in interfaceTNCEventReceiverIfc
- Parameters:
nodeData
- A List of NodeUpdateEvent objects representing the updated node statistics.
-
onNodeStatusChange
Description copied from interface:TNCEventReceiverIfc
Handles changes in node status.- Specified by:
onNodeStatusChange
in interfaceTNCEventReceiverIfc
- Parameters:
nodeData
- The NodeStatusUpdateEventIfc object representing the updated node status.
-
onTestStatusChange
Description copied from interface:TNCEventReceiverIfc
Handles changes in test status.- Specified by:
onTestStatusChange
in interfaceTNCEventReceiverIfc
-
onNodeOutputFileAvailable
Description copied from interface:TNCEventReceiverIfc
Handles changes in output file availability- Specified by:
onNodeOutputFileAvailable
in interfaceTNCEventReceiverIfc
- Parameters:
nodeOutputFileAvailable
- The NodeOutputFileAvailableEvent object containing the output files data
-
onBulkEvents
Description copied from interface:TNCEventReceiverIfc
Handles bulk events.- Specified by:
onBulkEvents
in interfaceTNCEventReceiverIfc
- Parameters:
events
- A List of BaseEventIfc objects representing the bulk events to be processed.
-
onTestAboutToTimeout
Description copied from interface:TNCEventReceiverIfc
Handles the event when a test is about to timeout.- Specified by:
onTestAboutToTimeout
in 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:TNCEventReceiverIfc
Will be called when the sender is cleaning up the resources allocated for this test.- Specified by:
onFreeUpTestResources
in 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:TNCEventReceiverIfc
Will be called when the sender is removing this listener from test mapping.- Specified by:
onRemoveTestListener
in 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:TNCEventReceiverIfc
Will be called when the sender is removing this listener enttirely- Specified by:
onRemoveReceiver
in 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:
getSol42DescriptorFiles
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
getRuleFileDisplayName
public String getRuleFileDisplayName(String nodeContext, String ruleFileName) throws com.nt.common.exceptions.APIException - Specified by:
getRuleFileDisplayName
in interfaceAdminServerAPIInterface
- Throws:
com.nt.common.exceptions.APIException
-
extendTestTimeout
- Specified by:
extendTestTimeout
in 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
-