As with most JavaScript objects, you can add properties to server objects. For example, you might want to add the time the server was last accessed. This might be read by a monitoring routine, as follows:
today = new Date()
server.accesstime = today.getTime()
today = new Date()
server.accesstime = today.getTime()
As with project objects, server objects should be locked. Since you can have more than one process accessing the object at one time, you should use the same locking procedure as discussed for project objects.
Leave a Reply
You must be logged in to post a comment.