@ -1579,7 +1579,7 @@ public InetSocketAddress getICERemoteRelayedAddress(String streamName)
/ * *
* Returns the total harvesting time ( in ms ) for all harvesters .
*
* @return The total harvesting time ( in ms ) for all the harvesters . - 1 if
* @return The total harvesting time ( in ms ) for all the harvesters . 0 if
* the ICE agent is null , or if the agent has nevers harvested .
* /
public long getTotalHarvestingTime ( )
@ -1598,7 +1598,7 @@ public long getTotalHarvestingTime()
* @param harvesterName The class name if the harvester .
*
* @return The harvesting time ( in ms ) for the harvester given in parameter .
* - 1 if this harvester does not exists , if the ICE agent is null , or if the
* 0 if this harvester does not exists , if the ICE agent is null , or if the
* agent has never harvested with this harvester .
* /
public long getHarvestingTime ( String harvesterName )
@ -1611,6 +1611,40 @@ public long getHarvestingTime(String harvesterName)
: transportManager . getHarvestingTime ( harvesterName ) ;
}
/ * *
* Returns the number of harvesting for this agent .
*
* @return The number of harvesting for this agent .
* /
public int getNbHarvesting ( )
{
TransportManager < ? > transportManager = getTransportManager ( ) ;
return
( transportManager = = null )
? null
: transportManager . getNbHarvesting ( ) ;
}
/ * *
* Returns the number of harvesting time for the harvester given in
* parameter .
*
* @param harvesterName The class name if the harvester .
*
* @return The number of harvesting time for the harvester given in
* parameter .
* /
public int getNbHarvesting ( String harvesterName )
{
TransportManager < ? > transportManager = getTransportManager ( ) ;
return
( transportManager = = null )
? null
: transportManager . getNbHarvesting ( harvesterName ) ;
}
public MediaHandler getMediaHandler ( )
{
return mediaHandler ;