Package com.nt.udc.admin.server
Interface AdminServer
- All Superinterfaces:
Remote
- All Known Implementing Classes:
AdminServerImpl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) voidaddRRNodeDestination(String sourceNodeId, String destNodeId) voidaddTrapHost(com.nt.udc.admin.TrapHost host) Adds a new host to the list of SNMP Trap HostsvoidaddUser(com.nt.udc.admin.User userToAdd, com.nt.udc.admin.User authUser) Attempts to adduserToAddto the list of users for this Admin Server.voidareNodesDeletable(Vector nodeIds) voidbackUpNode(String nodeId) voidvoidvoidchangeRoutingToRR(String srcNodeid, String destNodeId) voidclearNMAlarm(String ipAddress, int inPort) voidclearNodeAlarm(String nodeId) voidvoidcompileNPL(byte[] nplContent) voidcompleteNodeChainTest(String testId) voidcopyNPL(DCNodeTypeIfc inNodeType, String inRuleFileName) booleandeleteRuleFile(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inFileName) voidbyte[]exportWithCustomization(Vector nmListToExport, String exportName) returns customization contents of all node managers and adminserver in a byte arraybyte[]exportWithCustomization(Vector nmList, Vector nodesToExport, String exportName) exportXMLSystemModel(Vector vctNMItemsToExport) exportXMLSystemModel(Vector vctNMItems, Vector nodesToExport) exportXMLSystemModelOfNodeChain(Vector nodesToExport) booleanextendTestTimeout(String testId) booleangetAdminSvrAuth(String adminIp, String nodeIp, int nodePort) Gets the Admin Server Config object (really just a Hashtable).byte[]getASLog()booleanreturns true if authentication is enabledgetCartridgeVersionInfo(String ip, int port) getConfigValue(DCNodeTypeIfc inNodeType, String inRuleFileName, String inKey) getCurrentPerformanceMetrics(String ip, int port) getDestNodesInNM(String srcNode, String host, Integer port) getDetailsAboutTest(String testId) Gets the Data Server Host nameGets the Data Server PortgetExposedFields(DCNodeTypeIfc inNodeType, String inRuleFileName, String inReason) returns the log created during import customization.getImportTask(String importId, String importTaskId) getInputNodes(String inNodeId) getLicensedSet(Set allTemplates) com.nt.udc.admin.NMItembyte[]getNMVersionInfo(String ip, int port) com.nt.udc.admin.NodeInfogetNodeInfo(String inNodeId) getNodeList(String inIPAddress, int inPort) byte[]getNodeLog(String inNodeId) getOutputFields(DCNodeTypeIfc inNodeType, String inRuleFileName) getOutputNodeChainTest(String nodeId) getOutputNodes(String inNodeId) booleangetResetPwdInfo(com.nt.udc.admin.User user) used to get the password reset informationintgetRole(com.nt.udc.admin.User user, com.nt.udc.admin.User authUser) Returns the role of the user passed as argumentbyte[]getRuleFileContent(com.nt.udc.admin.NodeInfo info, String inFileName) getRuleFileDisplayName(String nodeContext, String ruleFileName) intgetSecondsToPasswordExpiration(com.nt.udc.admin.User user) used to get seconds until password expirationcom.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 HostsgetUserList(com.nt.udc.admin.User authUser) Retrieves the list of users that may access this Admin ServerbooleanhasAdminPriv(com.nt.udc.admin.User user) Indicates whether the given User has Administrative privileges for this Admin ServerbooleanimportCustomization(ArrayList nmMaps, byte[] contents) distributes customization contents to all node managers and adminservervoidimportSystemModel(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) voidintegrateRouting(String parentHost, Integer parentPort) voidintegrateRoutingCCNMScaleUp(String ccHost, Integer ccPort) voidvoidbooleanbooleanisNodePartOfRunningTNC(String nodeId) booleanisReceiverValid(String reciverId) booleanisSystemRuleFile(com.nt.udc.admin.NodeInfo info, String inFileName) voidloadXMLSystemModel(String systemModel) login(com.nt.udc.admin.User user) Authenticates the given uservoidlogout(com.nt.udc.admin.User user) Removes the userId from the AS's current list of usersvoidmodifyTrapHost(com.nt.udc.admin.TrapHost oldhost, com.nt.udc.admin.TrapHost newhost) Modifies a host in the list of SNMP Trap HostsvoidmodifyUser(com.nt.udc.admin.User userToMod, com.nt.udc.admin.User authUser, Boolean changePassword) Attempts to modify attributes foruserToModbooleannplChanged(com.nt.udc.admin.NodeInfo nodeInfo) voidperformConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni) voidperformConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni, String ipAddress, int port) voidvoidregisterTNCEventReceiver(String id, TNCEventReceiverIfc tncRec, boolean registerForAllTests) voidreloadNPL(com.nt.udc.admin.NodeInfo nodeInfo) booleanreMapWalletPassword(String nodeId, List<int[]> indicesList) voidvoidvoidvoidremoveNodes(Vector inNodeIds) voidremoveOutputNodes(String inNodeId, Vector inOutputNodes) 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 list of hosts from the SNMP Trap Hosts objectvoidremoveUsers(Vector userList, com.nt.udc.admin.User authUser) Attempts to remove the Users contained inuserListfrom the list of users for this Admin Server.replicateNode(String sourceNodeId, String destNodeManagerId) booleanvoidrunNodeChainTest(String uploadId, NodeChainTestCfgItem cfgItem) booleanscaleDownNodeManager(String nmId, boolean isPreBackupCleanup) voidsetASConfig(Hashtable asConfig) Sets the Admin Server Config object.voidsetDirConnection(DirectoryConnection dirConn) voidsetImportExportProperty(String[][] newNmMap) voidsetNodeDescription(com.nt.udc.admin.NodeInfo nodeInfo) Replaces the NodeInfo object withnodeInfofor the given Node contained innodeInfo.voidsetNodeInfo(com.nt.udc.admin.NodeInfo nodeInfo) voidsetOutputNodes(String inNodeId, Vector inOutputNodes) voidsetRefreshInterval(long inRefInt) voidshutdown()voidstartAllNodes(String inIPAddress, int inPort) voidstartNodes(Vector inNodeIds) voidstopAllNodes(String inIPAddress, int inPort) voidvoidsubscribeReceiverForTest(String recieverID, String testID) updateImportMetadata(String importId, ImportMetadata newMetadata) updateRoute(String sourceNodeId, String destNodeId, String routeFunction) updateRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) updateRouteParameters(String sourceNodeId, String destNodeId, String rField, Vector rCondition) voidupdateRuleFileContent(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inRuleFileName, byte[] ruleFileContent) uploadImport(String configuration, byte[] customization) voiduploadNodeChainTestInputFile(byte[] data, String nodeId, String fileName) booleanvalidateNMForNodeTypes(String inclusionExclusion, String majMin, String host, Integer port) voidvalidateNmMaps(List<com.nt.udc.upgrade.NodeManagerMap> nmMaps) voidwriteImportNodeCorrelationMap(String parent, String replicated)
-
Field Details
-
SNMP_ADMIN_API_NAME
- See Also:
-
ADMIN_API_FACTORY_NAME
- See Also:
-
NODE_API_FACTORY_NAME
- See Also:
-
-
Method Details
-
getEventSender
- Throws:
RemoteException
-
addAcctEventListener
- Throws:
RemoteException
-
removeAcctEventListener
- Throws:
RemoteException
-
getStatus
- Throws:
RemoteException
-
getSystemModel
- Throws:
RemoteException
-
loadXMLSystemModel
void loadXMLSystemModel(String systemModel) throws com.nt.udc.upgrade.ImportException, RemoteException - Throws:
com.nt.udc.upgrade.ImportExceptionRemoteException
-
importSystemModel
void importSystemModel(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) throws RemoteException, com.nt.udc.upgrade.ImportException - Throws:
RemoteExceptioncom.nt.udc.upgrade.ImportException
-
doBackUp
- Throws:
RemoteException
-
backUpNode
- Throws:
RemoteException
-
areNodesDeletable
- Throws:
RemoteException
-
validateNmMaps
- Throws:
RemoteException
-
checkImportStatus
- Throws:
RemoteException
-
getImportedNodeManagerMap
- Throws:
RemoteException
-
exportXMLSystemModel
- Throws:
com.nt.udc.upgrade.ExportExceptionRemoteException
-
exportXMLSystemModel
String exportXMLSystemModel(Vector vctNMItemsToExport) throws com.nt.udc.upgrade.ExportException, RemoteException - Throws:
com.nt.udc.upgrade.ExportExceptionRemoteException
-
exportXMLSystemModel
String exportXMLSystemModel(Vector vctNMItems, Vector nodesToExport) throws com.nt.udc.upgrade.ExportException, RemoteException - Throws:
com.nt.udc.upgrade.ExportExceptionRemoteException
-
exportXMLSystemModelOfNodeChain
String exportXMLSystemModelOfNodeChain(Vector nodesToExport) throws com.nt.udc.upgrade.ExportException, RemoteException - Throws:
com.nt.udc.upgrade.ExportExceptionRemoteException
-
shutdown
- Throws:
RemoteException
-
getNMList
- Throws:
RemoteException
-
getNM
- Throws:
RemoteException
-
getAdminSvrAuth
- Throws:
RemoteException
-
addNM
void addNM(String inIPAddress, String inName, int inPort) throws NodeMgrAddException, FileAccessException, RemoteException -
changeNM
- Throws:
RemoteException
-
changeNM
- Throws:
RemoteException
-
removeNM
void removeNM(String inIPAddres, int inPort) throws FileAccessException, NodeMgrRemoveException, RemoteException -
removeNM
-
getNodeList
- Throws:
RemoteException
-
getNodeList
- Throws:
RemoteException
-
getNodeItemList
- Throws:
RemoteException
-
addNode
String addNode(String inIPAddress, int port, com.nt.udc.admin.NodeInfo nodeInfo) throws NodeAddException, FileAccessException, RemoteException -
addNode
String addNode(String inIPAddress, int port, com.nt.udc.admin.NodeInfo nodeInfo, boolean regNodeId) throws NodeAddException, FileAccessException, RemoteException -
removeNodes
- Throws:
BulkOpExceptionRemoteException
-
getTemplate
- Throws:
RemoteException
-
getSiteInfo
- Throws:
RemoteException
-
getTemplateTree
- Throws:
RemoteException
-
setImportExportProperty
- Throws:
RemoteException
-
isHostBasedEnv
- Throws:
RemoteException
-
getOutputNodes
- Throws:
RemoteException
-
getInputNodes
- Throws:
RemoteException
-
setOutputNodes
void setOutputNodes(String inNodeId, Vector inOutputNodes) throws FileAccessException, RemoteException - Throws:
FileAccessExceptionRemoteException
-
removeOutputNodes
- Throws:
RemoteException
-
getLicensedSet
- Throws:
RemoteException
-
getLicenses
- Throws:
RemoteException
-
getRuleFileContent
- Throws:
RemoteException
-
updateRuleFileContent
void updateRuleFileContent(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inRuleFileName, byte[] ruleFileContent) throws RemoteException - Throws:
RemoteException
-
isSystemRuleFile
- Throws:
RemoteException
-
deleteRuleFile
boolean deleteRuleFile(com.nt.udc.admin.NodeInfo info, String inRuleFileDisplayName, String inFileName) throws RemoteException - Throws:
RemoteException
-
getOutputFields
- Throws:
RemoteException
-
copyNPL
- Throws:
RemoteException
-
getExposedFields
ArrayList getExposedFields(DCNodeTypeIfc inNodeType, String inRuleFileName, String inReason) throws RemoteException - Throws:
RemoteException
-
getConfigValue
String getConfigValue(DCNodeTypeIfc inNodeType, String inRuleFileName, String inKey) throws RemoteException - Throws:
RemoteException
-
nplChanged
- Throws:
RemoteException
-
compileNPL
- Throws:
RemoteException
-
reloadNPL
- Throws:
RemoteException
-
performConfigAction
void performConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni) throws RemoteException - Throws:
RemoteException
-
performConfigAction
void performConfigAction(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni, String ipAddress, int port) throws RemoteException - Throws:
RemoteException
-
getASLog
- Throws:
RemoteException
-
getNMLog
- Throws:
RemoteException
-
getNodeLog
- Throws:
RemoteException
-
getVersionInfo
- Throws:
RemoteException
-
getCartridgeVersionInfo
- Throws:
RemoteException
-
getNMVersionInfo
- Throws:
RemoteException
-
refreshStatuses
- Throws:
RemoteException
-
setRefreshInterval
- Throws:
RemoteException
-
startNodes
- Throws:
BulkOpExceptionRemoteException
-
stopNodes
- Throws:
BulkOpExceptionRemoteException
-
startAllNodes
- Throws:
BulkOpExceptionRemoteException
-
stopAllNodes
- Throws:
BulkOpExceptionRemoteException
-
getNodeInfo
- Throws:
RemoteException
-
setNodeInfo
- Throws:
RemoteException
-
reMapWalletPassword
- Throws:
RemoteException
-
getCurrentPerformanceMetrics
- Throws:
RemoteException
-
setNodeDescription
Replaces the NodeInfo object withnodeInfofor the given Node contained innodeInfo. This only updates the NodeInfo object in the table and does not save the node's configuration file(s), or cause node reconfiguration.- Parameters:
nodeInfo- NodeInfo object for node.- Throws:
RemoteException
-
clearNMAlarm
- Throws:
RemoteException
-
clearNodeAlarm
- Throws:
RemoteException
-
login
Authenticates the given user -
logout
Removes the userId from the AS's current list of users- Throws:
RemoteException
-
hasAdminPriv
Indicates whether the given User has Administrative privileges for this Admin Server -
getRole
int getRole(com.nt.udc.admin.User user, com.nt.udc.admin.User authUser) throws RemoteException, AuthenticationException Returns the role of the user passed as argument -
getUserList
Retrieves the list of users that may access this Admin Server- Returns:
- Vector of User objects
- Throws:
RemoteExceptionAuthenticationException
-
addUser
void addUser(com.nt.udc.admin.User userToAdd, com.nt.udc.admin.User authUser) throws AuthenticationException, RemoteException Attempts to adduserToAddto the list of users for this Admin Server.- Throws:
AuthenticationException- ifauthUserdoes not have Administrative privilegesRemoteException
-
modifyUser
void modifyUser(com.nt.udc.admin.User userToMod, com.nt.udc.admin.User authUser, Boolean changePassword) throws AuthenticationException, RemoteException Attempts to modify attributes foruserToMod- Throws:
AuthenticationException- ifauthUserdoes not have Administrative privileges foruserToModRemoteException
-
removeUsers
void removeUsers(Vector userList, com.nt.udc.admin.User authUser) throws AuthenticationException, RemoteException Attempts to remove the Users contained inuserListfrom the list of users for this Admin Server.- Parameters:
userList- Vector of User objects- Throws:
AuthenticationException- ifauthUserdoes not have Administrative privilegesRemoteException
-
setDirConnection
- Throws:
RemoteException
-
getTrapHostList
Gets list of known SNMP Trap Hosts- Throws:
RemoteException
-
addTrapHost
Adds a new host to the list of SNMP Trap Hosts- Throws:
RemoteException
-
removeTrapHost
Removes a host from the list of SNMP Trap Hosts- Throws:
RemoteException
-
removeTrapHosts
Removes a list of hosts from the SNMP Trap Hosts object- Throws:
RemoteException
-
modifyTrapHost
void modifyTrapHost(com.nt.udc.admin.TrapHost oldhost, com.nt.udc.admin.TrapHost newhost) throws RemoteException Modifies a host in the list of SNMP Trap Hosts- Throws:
RemoteException
-
getDSHost
Gets the Data Server Host name- Throws:
RemoteException
-
getDSPort
Gets the Data Server Port- Throws:
RemoteException
-
getASConfig
Gets the Admin Server Config object (really just a Hashtable).- Throws:
RemoteException
-
setASConfig
Sets the Admin Server Config object. All original attributes should be present, even if they haven't been changed.- Throws:
RemoteException
-
exportWithCustomization
returns customization contents of all node managers and adminserver in a byte array- Throws:
RemoteException
-
exportWithCustomization
byte[] exportWithCustomization(Vector nmList, Vector nodesToExport, String exportName) throws RemoteException - Throws:
RemoteException
-
importCustomization
distributes customization contents to all node managers and adminserver- Throws:
RemoteException
-
getImportCustomLog
returns the log created during import customization.- Throws:
RemoteException
-
getResetPwdInfo
used to get the password reset information- Parameters:
user-- Returns:
- true if password is reset, else returns false
- Throws:
AuthenticationExceptionRemoteException
-
getSecondsToPasswordExpiration
int getSecondsToPasswordExpiration(com.nt.udc.admin.User user) throws AuthenticationException, RemoteException used to get seconds until password expiration- Parameters:
user- information of user for which have to get the seconds for password expiration- Returns:
- seconds until password expire
- Throws:
AuthenticationExceptionRemoteException
-
getTimeoutValueMiliSec
returns the time out value for session expiry- Returns:
- Throws:
RemoteException
-
getAuthUsers
returns true if authentication is enabled- Returns:
- Throws:
RemoteException
-
addRRNodeDestination
- Throws:
RemoteException
-
removeRoute
- Throws:
RemoteException
-
writeImportNodeCorrelationMap
- Throws:
RemoteException
-
getDestNodesInNM
- Throws:
RemoteException
-
validateNMForNodeTypes
boolean validateNMForNodeTypes(String inclusionExclusion, String majMin, String host, Integer port) throws RemoteException - Throws:
RemoteException
-
changeRoutingToRR
- Throws:
RemoteException
-
integrateRouting
- Throws:
RemoteException
-
clearNodeIdCorrelationsMap
- Throws:
RemoteException
-
integrateRoutingCCNMScaleUp
- Throws:
RemoteException
-
getOsaHome
- Throws:
RemoteException
-
integrateScalingDownForSegregatedNM
- Throws:
RemoteException
-
integrateScalingDownForNonSegregatedNM
- Throws:
RemoteException
-
addRoute
String addRoute(String sourceNodeId, String destNodeId, String routeFunction) throws RemoteException - Throws:
RemoteException
-
addRoute
String addRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) throws RemoteException - Throws:
RemoteException
-
updateRoute
String updateRoute(String sourceNodeId, String destNodeId, String routeFunction) throws RemoteException - Throws:
RemoteException
-
updateRoute
String updateRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) throws RemoteException - Throws:
RemoteException
-
updateRouteParameters
String updateRouteParameters(String sourceNodeId, String destNodeId, String rField, Vector rCondition) throws RemoteException - Throws:
RemoteException
-
uploadNodeChainTestInputFile
void uploadNodeChainTestInputFile(byte[] data, String nodeId, String fileName) throws RemoteException - Throws:
RemoteException
-
runNodeChainTest
- Throws:
RemoteException
-
registerTNCEventReceiver
void registerTNCEventReceiver(String id, TNCEventReceiverIfc tncRec, boolean registerForAllTests) throws RemoteException - Throws:
RemoteException
-
subscribeReceiverForTest
- Throws:
RemoteException
-
getOutputNodeChainTest
- Throws:
RemoteException
-
completeNodeChainTest
- Throws:
RemoteException
-
getDetailsAboutTest
- Throws:
RemoteException
-
getSol42DescriptorFiles
- Throws:
RemoteException
-
getRuleFileDisplayName
- Throws:
RemoteException
-
extendTestTimeout
- Throws:
RemoteException
-
uploadImport
- Throws:
RemoteException
-
updateImportMetadata
ImportMetadata updateImportMetadata(String importId, ImportMetadata newMetadata) throws RemoteException - Throws:
RemoteException
-
runImport
- Throws:
RemoteException
-
getCurrentImport
- Throws:
RemoteException
-
getImportTask
ImportTaskProgressResponse getImportTask(String importId, String importTaskId) throws RemoteException - Throws:
RemoteException
-
isNodePartOfRunningTNC
- Throws:
RemoteException
-
getNodeChainTestCfg
- Throws:
RemoteException
-
getAllLockedAndRunningTestNodes
- Throws:
RemoteException
-
replicateNode
- Throws:
RemoteException
-
replicateNodeManager
- Throws:
RemoteException
-
scaleDownNodeManager
- Throws:
RemoteException
-
isReceiverValid
- Throws:
RemoteException
-