|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectc408h006.Connections
Connections maintains a list of Connection objects.
Constructor Summary | |
Connections()
Contructs an instance of this class. |
Method Summary | |
java.lang.String |
disConnect(int id,
java.lang.String fileName)
Disconnect a User from the OmniEditor system, if that User is the last User connected to the file, the Connection to the file will be removed. |
Connection |
getConnection(java.lang.String fileName)
Returns the Connections associated with the specified file. |
static Connections |
getConnections()
Returns the static instance of this class. |
FileState |
getFileState(int id,
java.lang.String fileName)
Return the current state of the file. |
int |
makeConnection(java.lang.String fileName)
Returns the user's ID when a connection to a file has been established. |
java.lang.String |
sendCommand(Command c)
Passes the command to the appropriate connection so that it can be performed on the correct file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Connections()
Method Detail |
public static Connections getConnections()
public int makeConnection(java.lang.String fileName)
fileName
- The name of the file to connect to
public java.lang.String disConnect(int id, java.lang.String fileName)
id
- The id of the User to disconnectfileName
- The file the User is connected to
public java.lang.String sendCommand(Command c)
c
- A Command object which contains the command to be performed and
the name of the file that the command will be performed on
public Connection getConnection(java.lang.String fileName)
fileName
- The name of the file associated with a Connection
public FileState getFileState(int id, java.lang.String fileName)
id
- The id of the User who is requesting the FileStatefileName
- The name of the file who's FileState is being
requested.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |