traffic.generation
Class HostInformationsImpl
java.lang.Object
|
+--traffic.generation.HostInformationsImpl
- All Implemented Interfaces:
- HostInformations, java.rmi.Remote
- public class HostInformationsImpl
- extends java.lang.Object
- implements HostInformations
Method Summary |
java.lang.String |
getAccessTypeForClient(java.lang.String clientName,
int port)
|
java.lang.String |
getAccessTypeForServer(java.lang.String serverName,
int port)
|
int |
getClientCOS(java.lang.String clientName,
int port)
|
java.lang.String[] |
getClientsList()
|
java.lang.String[] |
getClientsList(java.lang.String serverName,
int port)
|
int[] |
getClientsPortList()
|
int[] |
getClientsPortList(java.lang.String serverName,
int port)
|
java.lang.String[] |
getJavaCmdClientsList()
|
java.lang.String[] |
getJavaCmdServerList()
|
int |
getScenarioFileNumber(java.lang.String serverName,
int port)
|
java.util.SortedSet |
getScenarioFiles(java.lang.String serverName,
int port)
|
java.lang.String[] |
getScenarioFilesList(java.lang.String serverName,
int port)
|
java.lang.String |
getServerIPAddress(java.lang.String serverName,
int port)
|
java.lang.String[] |
getServerList()
|
java.lang.String |
getServerNameForClient(java.lang.String clientName,
int port)
|
int |
getServerPortForClient(java.lang.String clientName,
int port)
|
int[] |
getServerPortList()
|
int |
getUDPClientPort(java.lang.String clientName)
|
int |
getUDPServerPort(java.lang.String serverName)
|
boolean |
isClientIPv4(java.lang.String clientName,
int port)
|
byte[] |
transferScenario(java.lang.String fileName)
Method transferScenario : permet de transferer un fichier dont le nom est passe en parametre |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HostInformationsImpl
public HostInformationsImpl()
throws java.rmi.RemoteException,
java.io.IOException
HostInformationsImpl
public HostInformationsImpl(boolean graphic)
throws java.rmi.RemoteException,
java.io.IOException
getServerList
public java.lang.String[] getServerList()
throws java.rmi.RemoteException
- Specified by:
getServerList
in interface HostInformations
java.rmi.RemoteException
getJavaCmdServerList
public java.lang.String[] getJavaCmdServerList()
throws java.rmi.RemoteException
- Specified by:
getJavaCmdServerList
in interface HostInformations
java.rmi.RemoteException
getServerPortList
public int[] getServerPortList()
throws java.rmi.RemoteException
- Specified by:
getServerPortList
in interface HostInformations
java.rmi.RemoteException
getServerNameForClient
public java.lang.String getServerNameForClient(java.lang.String clientName,
int port)
throws java.io.IOException,
java.rmi.RemoteException
- Specified by:
getServerNameForClient
in interface HostInformations
java.io.IOException
java.rmi.RemoteException
getServerPortForClient
public int getServerPortForClient(java.lang.String clientName,
int port)
throws java.io.IOException,
java.rmi.RemoteException
- Specified by:
getServerPortForClient
in interface HostInformations
java.io.IOException
java.rmi.RemoteException
getUDPServerPort
public int getUDPServerPort(java.lang.String serverName)
throws java.io.IOException,
java.rmi.RemoteException,
java.lang.NumberFormatException
- Specified by:
getUDPServerPort
in interface HostInformations
java.io.IOException
java.rmi.RemoteException
java.lang.NumberFormatException
getServerIPAddress
public java.lang.String getServerIPAddress(java.lang.String serverName,
int port)
throws java.rmi.RemoteException
- Specified by:
getServerIPAddress
in interface HostInformations
java.rmi.RemoteException
getUDPClientPort
public int getUDPClientPort(java.lang.String clientName)
throws java.rmi.RemoteException,
java.lang.NumberFormatException,
java.io.IOException
- Specified by:
getUDPClientPort
in interface HostInformations
java.rmi.RemoteException
java.lang.NumberFormatException
java.io.IOException
getClientCOS
public int getClientCOS(java.lang.String clientName,
int port)
throws java.rmi.RemoteException,
java.lang.NumberFormatException,
java.io.IOException
- Specified by:
getClientCOS
in interface HostInformations
java.rmi.RemoteException
java.lang.NumberFormatException
java.io.IOException
isClientIPv4
public boolean isClientIPv4(java.lang.String clientName,
int port)
throws java.rmi.RemoteException,
java.io.IOException
- Specified by:
isClientIPv4
in interface HostInformations
java.rmi.RemoteException
java.io.IOException
getScenarioFilesList
public java.lang.String[] getScenarioFilesList(java.lang.String serverName,
int port)
throws java.rmi.RemoteException
- Specified by:
getScenarioFilesList
in interface HostInformations
java.rmi.RemoteException
getScenarioFileNumber
public int getScenarioFileNumber(java.lang.String serverName,
int port)
throws java.rmi.RemoteException
- Specified by:
getScenarioFileNumber
in interface HostInformations
java.rmi.RemoteException
getScenarioFiles
public java.util.SortedSet getScenarioFiles(java.lang.String serverName,
int port)
throws java.rmi.RemoteException
- Specified by:
getScenarioFiles
in interface HostInformations
java.rmi.RemoteException
getClientsList
public java.lang.String[] getClientsList(java.lang.String serverName,
int port)
throws java.rmi.RemoteException
- Specified by:
getClientsList
in interface HostInformations
java.rmi.RemoteException
getClientsPortList
public int[] getClientsPortList(java.lang.String serverName,
int port)
throws java.rmi.RemoteException
- Specified by:
getClientsPortList
in interface HostInformations
java.rmi.RemoteException
getClientsList
public java.lang.String[] getClientsList()
throws java.rmi.RemoteException
- Specified by:
getClientsList
in interface HostInformations
java.rmi.RemoteException
getJavaCmdClientsList
public java.lang.String[] getJavaCmdClientsList()
throws java.rmi.RemoteException
- Specified by:
getJavaCmdClientsList
in interface HostInformations
java.rmi.RemoteException
getClientsPortList
public int[] getClientsPortList()
throws java.rmi.RemoteException
- Specified by:
getClientsPortList
in interface HostInformations
java.rmi.RemoteException
getAccessTypeForClient
public java.lang.String getAccessTypeForClient(java.lang.String clientName,
int port)
throws java.rmi.RemoteException
- Specified by:
getAccessTypeForClient
in interface HostInformations
java.rmi.RemoteException
getAccessTypeForServer
public java.lang.String getAccessTypeForServer(java.lang.String serverName,
int port)
throws java.rmi.RemoteException
- Specified by:
getAccessTypeForServer
in interface HostInformations
java.rmi.RemoteException
transferScenario
public byte[] transferScenario(java.lang.String fileName)
throws java.rmi.RemoteException,
java.io.IOException
- Method transferScenario : permet de transferer un fichier dont le nom est passe en parametre
- Specified by:
transferScenario
in interface HostInformations
java.rmi.RemoteException
java.io.IOException
- See Also:
traffic.generation.ScenarioInformations#transferScenarios(String[])