|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
int |
addClientToGroup(java.lang.String clientIP,
java.lang.String groupID)
Adds a new client to the specified group. |
int |
addGroup(java.lang.String groupID,
java.lang.String version)
Adds a new group to the system. |
int |
addNewPackage(java.lang.String pathToFiles,
java.lang.String Id,
java.lang.String version,
java.lang.String os,
byte[] MD5)
Adds new software package to server. |
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()
Retrieves the number of conncurrent clients |
java.util.Vector |
getPackages()
Returns all the software package IDs currently in the system. |
int |
init()
Initialize the data's from disk. |
int |
init(java.lang.String pathToFile)
Initialize the data from the disk. |
int |
removeClientFromGroup(java.lang.String clientIP,
java.lang.String groupID)
Removes a client from the specified group. |
int |
removeGroup(java.lang.String groupID)
Removes the specified group from the system. |
int |
removePackage(java.lang.String version)
Removes an old package from the system. |
int |
save()
Saves the data to disk. |
int |
save(java.lang.String pathToFile)
Saves the data to the wanted location on the disk. |
int |
setClientToGroup(java.lang.String clientIP,
java.lang.String GroupID)
Set's the client to group |
int |
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)
Usefull method for testing / debugging purposes Set's the client online / offline |
Method Detail |
public int save()
public int save(java.lang.String pathToFile)
pathToFile
- Location where we wish to save.public int init()
public int init(java.lang.String pathToFile)
pathToFile
- Path to the file where the data is saved.public java.util.Vector getGroups()
public java.util.Vector getGroupClients(java.lang.String groupID)
groupID
- The group which is handled.public java.util.Vector getPackages()
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 int 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 int 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 int 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 void TestClientInfo(java.lang.String ip, boolean b)
ip
- client's IP which we want to set Online statusb
- is the client online or notpublic int addNewPackage(java.lang.String pathToFiles, java.lang.String Id, java.lang.String version, java.lang.String os, byte[] MD5)
pathToFiles
- Path to file/files, where the update package is located.Id
- Unique version identification string for this software packageversion
- The version numberos
- The OS this version is intededpublic int removePackage(java.lang.String version)
version
- The version of the package to be removed.public int 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 int 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 int setClientToGroup(java.lang.String clientIP, java.lang.String GroupID)
clientIP
- Client we are movingGroupID
- The group we are planning to move the client
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |