Package com.nt.udc.admin.server
Interface AdminServer
- All Superinterfaces:
Remote
- All Known Implementing Classes:
AdminServerImpl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addRoute
(String sourceNodeId, String destNodeId, String routeFunction, 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 Hostsvoid
addUser
(com.nt.udc.admin.User userToAdd, com.nt.udc.admin.User authUser) Attempts to adduserToAdd
to the list of users for this Admin Server.void
areNodesDeletable
(Vector nodeIds) void
backUpNode
(String nodeId) void
void
void
changeRoutingToRR
(String srcNodeid, String destNodeId) void
clearNMAlarm
(String ipAddress, int inPort) void
clearNodeAlarm
(String nodeId) void
void
compileNPL
(byte[] nplContent) void
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) 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) boolean
extendTestTimeout
(String testId) boolean
getAdminSvrAuth
(String adminIp, String nodeIp, int nodePort) Gets the Admin Server Config object (really just a Hashtable).byte[]
getASLog()
boolean
returns 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.NMItem
byte[]
getNMVersionInfo
(String ip, int port) com.nt.udc.admin.NodeInfo
getNodeInfo
(String inNodeId) getNodeList
(String inIPAddress, int inPort) byte[]
getNodeLog
(String inNodeId) getOutputFields
(DCNodeTypeIfc inNodeType, String inRuleFileName) getOutputNodeChainTest
(String nodeId) getOutputNodes
(String inNodeId) boolean
getResetPwdInfo
(com.nt.udc.admin.User user) used to get the password reset informationint
getRole
(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) int
getSecondsToPasswordExpiration
(com.nt.udc.admin.User user) used to get seconds until password expirationcom.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 HostsgetUserList
(com.nt.udc.admin.User authUser) Retrieves the list of users that may access this Admin Serverboolean
hasAdminPriv
(com.nt.udc.admin.User user) Indicates whether the given User has Administrative privileges for this Admin Serverboolean
importCustomization
(ArrayList nmMaps, byte[] contents) distributes customization contents to all node managers and adminservervoid
importSystemModel
(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) void
integrateRouting
(String parentHost, Integer parentPort) void
integrateRoutingCCNMScaleUp
(String ccHost, Integer ccPort) void
void
boolean
boolean
isNodePartOfRunningTNC
(String nodeId) boolean
isReceiverValid
(String reciverId) boolean
isSystemRuleFile
(com.nt.udc.admin.NodeInfo info, String inFileName) void
loadXMLSystemModel
(String systemModel) login
(com.nt.udc.admin.User user) Authenticates the given uservoid
logout
(com.nt.udc.admin.User user) Removes the userId from the AS's current list of usersvoid
modifyTrapHost
(com.nt.udc.admin.TrapHost oldhost, com.nt.udc.admin.TrapHost newhost) Modifies a host in the list of SNMP Trap Hostsvoid
modifyUser
(com.nt.udc.admin.User userToMod, com.nt.udc.admin.User authUser, Boolean changePassword) Attempts to modify attributes foruserToMod
boolean
nplChanged
(com.nt.udc.admin.NodeInfo nodeInfo) void
performConfigAction
(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni) void
performConfigAction
(ConfigActionIfc configActionObject, com.nt.udc.admin.NodeInfo ni, String ipAddress, int port) void
void
registerTNCEventReceiver
(String id, TNCEventReceiverIfc tncRec, boolean registerForAllTests) void
reloadNPL
(com.nt.udc.admin.NodeInfo nodeInfo) boolean
reMapWalletPassword
(String nodeId, List<int[]> indicesList) void
void
void
void
removeNodes
(Vector inNodeIds) void
removeOutputNodes
(String inNodeId, Vector inOutputNodes) 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 list of hosts from the SNMP Trap Hosts objectvoid
removeUsers
(Vector userList, com.nt.udc.admin.User authUser) Attempts to remove the Users contained inuserList
from the list of users for this Admin Server.replicateNode
(String sourceNodeId, String destNodeManagerId) boolean
void
runNodeChainTest
(String uploadId, NodeChainTestCfgItem cfgItem) boolean
scaleDownNodeManager
(String nmId, boolean isPreBackupCleanup) void
setASConfig
(Hashtable asConfig) Sets the Admin Server Config object.void
setDirConnection
(DirectoryConnection dirConn) void
setImportExportProperty
(String[][] newNmMap) void
setNodeDescription
(com.nt.udc.admin.NodeInfo nodeInfo) Replaces the NodeInfo object withnodeInfo
for the given Node contained innodeInfo
.void
setNodeInfo
(com.nt.udc.admin.NodeInfo nodeInfo) void
setOutputNodes
(String inNodeId, Vector inOutputNodes) void
setRefreshInterval
(long inRefInt) void
shutdown()
void
startAllNodes
(String inIPAddress, int inPort) void
startNodes
(Vector inNodeIds) void
stopAllNodes
(String inIPAddress, int inPort) void
void
subscribeReceiverForTest
(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) 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
(List<com.nt.udc.upgrade.NodeManagerMap> nmMaps) void
writeImportNodeCorrelationMap
(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.ImportException
RemoteException
-
importSystemModel
void importSystemModel(List nodeManagerMap, boolean corrIdMap, boolean isNodeChainImport) throws RemoteException, com.nt.udc.upgrade.ImportException - Throws:
RemoteException
com.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.ExportException
RemoteException
-
exportXMLSystemModel
String exportXMLSystemModel(Vector vctNMItemsToExport) throws com.nt.udc.upgrade.ExportException, RemoteException - Throws:
com.nt.udc.upgrade.ExportException
RemoteException
-
exportXMLSystemModel
String exportXMLSystemModel(Vector vctNMItems, Vector nodesToExport) throws com.nt.udc.upgrade.ExportException, RemoteException - Throws:
com.nt.udc.upgrade.ExportException
RemoteException
-
exportXMLSystemModelOfNodeChain
String exportXMLSystemModelOfNodeChain(Vector nodesToExport) throws com.nt.udc.upgrade.ExportException, RemoteException - Throws:
com.nt.udc.upgrade.ExportException
RemoteException
-
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:
BulkOpException
RemoteException
-
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:
FileAccessException
RemoteException
-
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:
BulkOpException
RemoteException
-
stopNodes
- Throws:
BulkOpException
RemoteException
-
startAllNodes
- Throws:
BulkOpException
RemoteException
-
stopAllNodes
- Throws:
BulkOpException
RemoteException
-
getNodeInfo
- Throws:
RemoteException
-
setNodeInfo
- Throws:
RemoteException
-
reMapWalletPassword
- Throws:
RemoteException
-
getCurrentPerformanceMetrics
- Throws:
RemoteException
-
setNodeDescription
Replaces the NodeInfo object withnodeInfo
for 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:
RemoteException
AuthenticationException
-
addUser
void addUser(com.nt.udc.admin.User userToAdd, com.nt.udc.admin.User authUser) throws AuthenticationException, RemoteException Attempts to adduserToAdd
to the list of users for this Admin Server.- Throws:
AuthenticationException
- ifauthUser
does 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
- ifauthUser
does not have Administrative privileges foruserToMod
RemoteException
-
removeUsers
void removeUsers(Vector userList, com.nt.udc.admin.User authUser) throws AuthenticationException, RemoteException Attempts to remove the Users contained inuserList
from the list of users for this Admin Server.- Parameters:
userList
- Vector of User objects- Throws:
AuthenticationException
- ifauthUser
does 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:
AuthenticationException
RemoteException
-
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:
AuthenticationException
RemoteException
-
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
-