jain.protocol.ss7.oam
Class CommitException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--jain.protocol.ss7.JainSS7Exception
|
+--jain.protocol.ss7.oam.CommitException
- public class CommitException
- extends JainSS7Exception
This Exception is thrown by a JAIN OAM Managed Object
if the commit() command has been invoked and not all of the operations were
successfully comitted.
- See Also:
- Serialized Form
Method Summary |
void |
addEntry(boolean success,
java.lang.String managedObject,
java.lang.String operation)
Adds an entry to the log file of this CommitException. |
java.lang.String |
getLog()
Returns a log of the operations. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
CommitException
public CommitException()
- Constructs a new
CommitException
.
addEntry
public void addEntry(boolean success,
java.lang.String managedObject,
java.lang.String operation)
throws java.lang.NullPointerException
- Adds an entry to the log file of this CommitException.
- Parameters:
success
- either :
true - the operation successfully completed.
false - the operation failed
managedObject
- the Managed Objectclass nameoperation
- the opertion that was to be committed.- Throws:
- java.lang.NullPointerException - if any of the Objects supplied as parameters are null
getLog
public java.lang.String getLog()
- Returns a log of the operations.
- Returns:
- a log in the format:
1 : [ManagedObject] : [operationRequested] : [SUCCESS | FAILURE] ;
2 : [ManagedObject] : [operationRequested] : [SUCCESS | FAILURE] ;
..... .... .... .... ....
N : [ManagedObject] : [operationRequested] : [SUCCESS | FAILURE] ;
Eg.
1 : Route : setDestinationPointCode : SUCCESS ;
2 : Route : setPriority : SUCCESS ;
3 : Linkset : setDestinationPointCode : SUCCESS ;
4 : Linkset : addLink : FAILURE ;
06 January 2000
If you have any comments or queries, please mail them to Colm Hayden [JAIN SS7 OAM Edit Lead]Copyright - 2000 Sun Microsystems