|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--synapsi.main.NeuronServer
Main thread of the Neuron server - handles information passing between different components of Neuron server (GUI, data bank, network part). Methods inherited from synapsi.main.MainForGui, synapsi.main.MainForData (is there such?) and synapsi.main.MainForNet are not documented here - the documentation can be view from the corresponding interface documentation.
Field Summary | |
protected static java.lang.String |
Name
|
Constructor Summary | |
NeuronServer()
Costructor of the class - creates a new NeuronServer object. |
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. |
static void |
main(java.lang.String[] args)
|
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 |
setClientVersion(java.lang.String clientIP,
java.lang.String version)
Notifies when a client's version number has changed. |
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)
|
void |
threadEnd()
Decreases number of running threads |
int |
threadStart(UpdateThread t)
Increases number of running threads |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final java.lang.String Name
Constructor Detail |
public NeuronServer()
Method Detail |
public int threadStart(UpdateThread t)
public void threadEnd()
public java.util.Vector getPackages()
public java.util.Vector getGroupClients(java.lang.String groupID)
groupID
- The group which is handled.public DataVersion getClientVersion(java.lang.String clientIP)
clientIP
- The IP of the client to be handled.public DataVersion getGroupVersion(java.lang.String groupID)
groupID
- The ID of the group to be handled.public java.util.Vector getGroups()
public void setGroupInfo(java.lang.String oldID, java.lang.String newID, java.lang.String version)
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.public void addGroup(java.lang.String groupID, java.lang.String version)
groupID
- The group ID of the new group.version
- Software version to the new group.public void removeGroup(java.lang.String groupID)
groupID
- The group ID of the group to be removed.public void setNSSettings(int concurrentClients)
concurrentClients
- A new value to the
number of concurrent clients.public int getNSSettings()
public boolean addNewPackage(java.lang.String pathToFiles, java.lang.String version)
pathToFiles
- The path to the software package.version
- The version of the package.public boolean removePackage(java.lang.String version)
version
- The version of the package to be removed.public void setClientToGroup(java.lang.String clientIP, java.lang.String groupID)
clientIP
- Client we are movingGroupID
- The group we are planning to move the clientpublic void addClientToGroup(java.lang.String clientIP, java.lang.String groupID)
clientIP
- The IP of the client to be added.groupID
- The ID of the group where client is added.public void removeClientFromGroup(java.lang.String clientIP, java.lang.String groupID)
clientIP
- The IP of the client to be removed.groupID
- The ID of the group where client is removed.public void setClientVersion(java.lang.String clientIP, java.lang.String version)
clientIP
- The IP of the client.version
- The new version of the client.public static void main(java.lang.String[] args)
public void TestClientInfo(java.lang.String ip, boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |