Enumeration e
actors.elements ();
while ( e.hasMoreElements () )
{
Actor actor
(Actor) e.nextElement ();
actor.initialize ();
}
Enumeration en
actors.elements ();
while ( en.hasMoreElements () )
{
Actor actor
(Actor) en.nextElement ();
actor.start ();
}
}
catch ( Exception e )
{
println ( "Caught exception " + e );
}
}
public void dispose () {
println ( "Stopping actors" );
Enumeration e
actors.elements ();
while ( e.hasMoreElements () )
{
Actor actor
(Actor) e.nextElement ();
actor.dispose ();
}
}
public static void main ( String [] args )
{
if ( args.length < 6 )
{
System.out.println ( "Usage: makecall <server> <login> <password> <delay>
<origin> <destination> ..." );
System.exit ( 1 );
}
new makecall ( args );
}
public void providerChangedEvent ( ProvEv [] eventList ) {
if ( eventList ! =
null )
{
for ( int i
0; i < eventList.length; i++ )
{
if ( eventList[i] instanceof ProvInServiceEv )
{
conditionInService.set ();
}
}
}
}
}
Actor.java
/** * Actor.java
*
Cisco Unified JTAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs
747
Cisco Unified JTAPI Examples
Actor.java
