Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw
Class CVWServer  view CVWServer download CVWServer.java

java.lang.Object
  extended byorg.mitre.cvw.CVWServer

public class CVWServer
extends java.lang.Object

This class represents a CVW server within a possible federation of CVW servers

Version:
1

Field Summary
static java.lang.String delimiter
          STATIC METHODS & VARIABLES for handling CVW server stuff
private  boolean serverActive
           
private  java.lang.String serverDescription
           
private  java.lang.String serverID
           
 
Constructor Summary
CVWServer(java.lang.String serverID)
          Constructor
CVWServer(java.lang.String serverID, java.lang.String serverDescription)
          Constructor
CVWServer(java.lang.String serverID, java.lang.String serverDescription, boolean serverActive)
          Constructor
 
Method Summary
 void getAllUsers()
          Send off a query to retrieve a complete list of users for this server (again maybe write a return parser??)
 java.lang.String getID()
          Return the ID of this server
 void getOnlineUsers()
          Send off a query to retrieve the current list of online users (maybe write a return parser method also???)
 boolean isServerActive()
          Query to see if the server is active
static int serverIndex(java.lang.String str)
          Takes a string of the form @ and returns the index of the '@', or -1 if there is no '@'
 void setActive(boolean activeState)
          Set whether the server is currently active
static java.lang.String[] split(java.lang.String str)
          Takes a string of the form @ and returns a two length array with part1 as the first element and as the second.
 java.lang.String toString()
          Return the name of this server (could see this valuble for info listing purposes)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serverID

private java.lang.String serverID

serverDescription

private java.lang.String serverDescription

serverActive

private boolean serverActive

delimiter

public static final java.lang.String delimiter
STATIC METHODS & VARIABLES for handling CVW server stuff

See Also:
Constant Field Values
Constructor Detail

CVWServer

public CVWServer(java.lang.String serverID)
Constructor


CVWServer

public CVWServer(java.lang.String serverID,
                 java.lang.String serverDescription)
Constructor


CVWServer

public CVWServer(java.lang.String serverID,
                 java.lang.String serverDescription,
                 boolean serverActive)
Constructor

Method Detail

serverIndex

public static int serverIndex(java.lang.String str)
Takes a string of the form @ and returns the index of the '@', or -1 if there is no '@'


split

public static java.lang.String[] split(java.lang.String str)
Takes a string of the form @ and returns a two length array with part1 as the first element and as the second. If there is no '@', then the first element is the whole string, and the second element is the empty string.


setActive

public void setActive(boolean activeState)
Set whether the server is currently active


isServerActive

public boolean isServerActive()
Query to see if the server is active


getOnlineUsers

public void getOnlineUsers()
Send off a query to retrieve the current list of online users (maybe write a return parser method also???)


getAllUsers

public void getAllUsers()
Send off a query to retrieve a complete list of users for this server (again maybe write a return parser??)


getID

public java.lang.String getID()
Return the ID of this server


toString

public java.lang.String toString()
Return the name of this server (could see this valuble for info listing purposes)