|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to access methods and data in synapsi.data package
Method Summary | |
void |
activateClient(boolean b,
java.lang.String IP)
Method for activating/dis-activating client This method is used to set client's online status to true or false |
boolean |
addGroup(java.lang.String groupID,
java.lang.String version)
Add a new group with specified version. |
boolean |
addNewPackage(java.lang.String pathToFiles,
java.lang.String versionId)
Adds new software package to server. |
boolean |
clientExist(java.lang.String IP)
Is there a client with given IP |
DataGroup |
createNewClient(java.lang.String clientIP)
Creates new client and add's it to default group |
DataClient |
getClient(java.lang.String IP)
Get's the client with specified IP-address |
DataVersion |
getClientVersion(java.lang.String clientIP)
TO BE REMOVED - This is not needed since you can get clients version from DataClient |
DataGroup |
getDefaultGroup()
Get's reference for the default DataGroup object in this system Default group is the DataGroup object that get's new client's when they come online for a first-time |
java.util.Vector |
getGroupClients(java.lang.String groupID)
Get clients for specified group |
java.util.Vector |
getGroups()
Gets all groups. |
DataVersion |
getGroupVersion(java.lang.String groupID)
Gets version of specified group |
int |
getNSSettings()
Gets the number of concurrent clients to do update |
java.util.Vector |
getPackages()
Get all software packages/versions |
boolean |
init()
Initialize the data's from disk. |
boolean |
init(java.lang.String pathToFile)
Inittialize the data's from disk. |
boolean |
removeGroup(java.lang.String groupID)
Removes the specified group. |
boolean |
removePackage(java.lang.String version)
Removes software package/version from server. |
boolean |
save()
Saves the data to disk Uses the default name for file |
boolean |
save(java.lang.String pathToFile)
Save's the data to disk |
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 versíon)
Set specified version to client. |
void |
setGroupInfo(java.lang.String groupID,
java.lang.String version)
Set specified version for group |
void |
setNSSettings(int concurrentClients)
Set servers settings. |
Method Detail |
public boolean init()
public boolean init(java.lang.String pathToFile)
pathToFile
- path to file where the saved data is.public boolean save()
public boolean save(java.lang.String pathToFile)
pathToFiles
- location where we wish to save.public java.util.Vector getGroups()
public java.util.Vector getGroupClients(java.lang.String groupID)
groupID
- - String containing the groups IDpublic java.util.Vector getPackages()
public DataVersion getClientVersion(java.lang.String clientIP)
public DataVersion getGroupVersion(java.lang.String groupID)
groupID
- String group identifierpublic void setGroupInfo(java.lang.String groupID, java.lang.String version)
groupID
- Group's identification, who's version is about to be setversion
- The version we want to give to this grouppublic boolean addGroup(java.lang.String groupID, java.lang.String version)
groupID
- Identification we want give for the groupversion
- The version we want to give for this grouppublic boolean removeGroup(java.lang.String groupID)
groupID
- Identification for the group that is about to be removedpublic void setNSSettings(int concurrentClients)
concurrentClients
- number of client that can update concurrentlypublic int getNSSettings()
public boolean clientExist(java.lang.String IP)
IP
- The IP to be checkedpublic DataClient getClient(java.lang.String IP)
IP
- the ip-address for client we need to getpublic void activateClient(boolean b, java.lang.String IP)
b
- activate/disactivateIP
- the client ip-address that is to be activated/disactivatedpublic DataGroup getDefaultGroup()
public boolean addNewPackage(java.lang.String pathToFiles, java.lang.String versionId)
pathToFiles
- Path to file/files, where the update package is located.versionId
- Version identification string for this software packagepublic boolean removePackage(java.lang.String version)
version
- The version to be removedpublic DataGroup createNewClient(java.lang.String clientIP)
clientIP
- Clients IP-addresspublic 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 setClientVersion(java.lang.String clientIP, java.lang.String versíon)
clientIP
- Client who's version is to be setversion
- the version we wish to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |