synapsi.main
Interface MainForGui

All Known Implementing Classes:
NeuronServer

public interface MainForGui


Method Summary
 void addClientToGroup(java.lang.String clientIP, java.lang.String groupID)
          Adds a new client to the specified group.
 void addGroup(java.lang.String groupID, java.lang.String version)
          Adds a new group to the system.
 boolean addNewPackage(java.lang.String pathToFiles, java.lang.String version)
          Adds a new software package to the system.
 DataVersion getClientVersion(java.lang.String clientIP)
          Returns the version of client's software package.
 java.util.Vector getGroupClients(java.lang.String groupID)
          Returns the clients (client IP, version and current status) of the specified group.
 java.util.Vector getGroups()
          Returns all groups in the system.
 DataVersion getGroupVersion(java.lang.String groupID)
          Returns the software version currently assigned to the specified group.
 int getNSSettings()
           
 java.util.Vector getPackages()
          Returns all the software package IDs currently in the system.
 void removeClientFromGroup(java.lang.String clientIP, java.lang.String groupID)
          Removes a client from the specified group.
 void removeGroup(java.lang.String groupID)
          Removes the specified group from the system.
 boolean removePackage(java.lang.String version)
          Removes an old package from the system.
 void setClientToGroup(java.lang.String clientIP, java.lang.String GroupID)
          Set's the client to group
 void setGroupInfo(java.lang.String oldID, java.lang.String newID, java.lang.String version)
          Sets new group ID and/or software version to a group.
 void setNSSettings(int concurrentClients)
          Sets a new value to the number of concurrent clients.
 void TestClientInfo(java.lang.String ip, boolean b)
           
 

Method Detail

getGroups


public java.util.Vector getGroups()
Returns all groups in the system.
Returns:
A vector containing all groups.

getGroupClients


public java.util.Vector getGroupClients(java.lang.String groupID)
Returns the clients (client IP, version and current status) of the specified group.
Parameters:
groupID - The group which is handled.
Returns:
A vector of client information of this group.

getPackages


public java.util.Vector getPackages()
Returns all the software package IDs currently in the system.
Returns:
A vector of package IDs.

getClientVersion


public DataVersion getClientVersion(java.lang.String clientIP)
Returns the version of client's software package.
Parameters:
clientIP - The IP of the client to be handled.
Returns:
Version information of this client.

getGroupVersion


public DataVersion getGroupVersion(java.lang.String groupID)
Returns the software version currently assigned to the specified group.
Parameters:
groupID - The ID of the group to be handled.
Returns:
Version information of this group.

setGroupInfo


public void setGroupInfo(java.lang.String oldID,
                         java.lang.String newID,
                         java.lang.String version)
Sets new group ID and/or software version to a group.
Parameters:
oldID - Old group ID of the group.
newID - New group ID for the group (if only software version changed, the same as oldID).
version - New software version to the group.

addGroup


public void addGroup(java.lang.String groupID,
                     java.lang.String version)
Adds a new group to the system.
Parameters:
groupID - The group ID of the new group.
version - Software version to the new group.

removeGroup


public void removeGroup(java.lang.String groupID)
Removes the specified group from the system.
Parameters:
groupID - The group ID of the group to be removed.

setNSSettings


public void setNSSettings(int concurrentClients)
Sets a new value to the number of concurrent clients.
Parameters:
concurrentClients - A new value to the number of concurrent clients.

getNSSettings


public int getNSSettings()

TestClientInfo


public void TestClientInfo(java.lang.String ip,
                           boolean b)

addNewPackage


public boolean addNewPackage(java.lang.String pathToFiles,
                             java.lang.String version)
Adds a new software package to the system.
Parameters:
pathToFiles - The path to the software package.
version - The version of the package.

removePackage


public boolean removePackage(java.lang.String version)
Removes an old package from the system.
Parameters:
version - The version of the package to be removed.
Returns:
True if removal was successful - false otherwise.

addClientToGroup


public void addClientToGroup(java.lang.String clientIP,
                             java.lang.String groupID)
Adds a new client to the specified group.
Parameters:
clientIP - The IP of the client to be added.
groupID - The ID of the group where client is added.

removeClientFromGroup


public void removeClientFromGroup(java.lang.String clientIP,
                                  java.lang.String groupID)
Removes a client from the specified group.
Parameters:
clientIP - The IP of the client to be removed.
groupID - The ID of the group where client is removed.

setClientToGroup


public void setClientToGroup(java.lang.String clientIP,
                             java.lang.String GroupID)
Set's the client to group
Parameters:
clientIP - Client we are moving
GroupID - The group we are planning to move the client