public class Alcatel5620SamConnectionManager
extends java.lang.Object
| Constructor and Description |
|---|
Alcatel5620SamConnectionManager(Alcatel5620SamCollectorProperties collProps)
Initialize the Alcatel5620SamConnectionManager and its dependencies
|
| Modifier and Type | Method and Description |
|---|---|
void |
findToFile(java.lang.String fullClassName,
java.lang.String fileName,
ChildrenFilterHolder filter,
ResultFilter resultFilter)
Calls the EMS findToFile API method.
|
void |
initializeConnection(java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password,
boolean secure,
boolean hashedPassword)
Establishes a connection with the EMS and performs a ping to verify the link.
|
static void |
setPassword(java.lang.String password) |
void |
setProperties(java.util.Properties props)
Sets the properties file Properties
|
boolean |
switchEMS() |
public Alcatel5620SamConnectionManager(Alcatel5620SamCollectorProperties collProps) throws SOAPException
collProps - Alcatel5620SamCollectorProperties instanceSOAPException - if any of the SOAP elements failed to initializepublic boolean switchEMS()
public void initializeConnection(java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password,
boolean secure,
boolean hashedPassword)
throws SOAPException
host - The host address of the EMSport - The port number of the EMSusername - The username to access the EMSpassword - The password to access the EMSsecure - Whether to use a secure or a normal connection to the EMS. Default is false using normal http://hashedPassword - Whether the password provided is hashed or plain textSOAPException - If connection to the EMS failsjavax.xml.bind.JAXBException - If marshalling from Java to XML failsjava.lang.IllegalArgumentException - If any of the required arguments are null or emptypublic void findToFile(java.lang.String fullClassName,
java.lang.String fileName,
ChildrenFilterHolder filter,
ResultFilter resultFilter)
throws javax.xml.bind.JAXBException,
SOAPException
fullClassName - The name of the class to retrieve from the EMS (e.g. netw.NetworkElement)fileName - The full path of the location to save the file in the following form
ftp[s]://ftpUsername:ftpPassword@ftpHost/fileName
filter - To filter which objects to return from the EMS. null value will return all objects of the classresultFilter - To filter the attributes of a returned object. null value will return all the attributes for the
returned objectsjavax.xml.bind.JAXBException - If marshalling from Java to XML failsSOAPException - If the SOAP response contains faults or exceptionspublic void setProperties(java.util.Properties props)
props - public static void setPassword(java.lang.String password)