User guide

C-8
Cisco Transport Manager Release 9.2 GateWay/CORBA User Guide and Programmer Manual
OL-20937-01
Appendix C OSS Use Cases and Client Development
C.2.2 Sample Code in Java
Session_I myAssociatedSession = null;
public SessionImpl() {
super();
// TODO Auto-generated constructor stub
}
public void setAssociatedSession(Session_I emsSession) {
myAssociatedSession = emsSession;
}
public Session_I getAssoicatedSession (){ return myAssociatedSession;}
public void eventLossOccurred(String startTime, String notificationId) {
// TODO Auto-generated method stub
}
public void eventLossCleared(String endTime) {
// TODO Auto-generated method stub
}
public void historyPMDataCompleted(String fileName) {
// TODO Auto-generated method stub
}
public void historyPMDataFailed(String errorReason) {
// TODO Auto-generated method stub
}
public Session_I associatedSession() {
// TODO Auto-generated method stub
return null;
}
public void ping() {
// TODO Auto-generated method stub
}
public void endSession() {
// TODO Auto-generated method stub
}
}
}
C.2.2.5 Log In and Retrieve EmsSession
To perform operations from CTM GateWay/CORBA, your client must log in using a username and
password created on the CTM client. See B.1 Creating an OSS Client Profile for CTM
GateWay/CORBA, page B-1.
EmsSession_I m_emsSession = null;
SessionImpl mySessionImpl = new SessionImpl();
try {
EmsSessionFactory_I ems_ref = EmsSessionFactory_IHelper.narrow(emsSessionI);