|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.starteam.events.ServerCommandEvent
public final class ServerCommandEvent
An event triggered whenever a command is issued to the StarTeam Server.
ServerCommandListener,
NetMonitor.addServerCommandListener(com.starteam.events.ServerCommandListener),
Serialized Form| Method Summary | |
|---|---|
long |
getBytesReceived()
Gets the total number of bytes returned by the server to the client. |
long |
getBytesSent()
Gets the total number of bytes sent from the client to the server. |
int |
getCommandCount()
Gets the number of commands executed in this command session. |
int |
getCommandID()
Gets the internal ID assigned to this command. |
java.lang.String |
getCommandName()
Gets a symbolic name that describes this command ID. |
long |
getCommandTime()
Gets the total execution time of this command, in milliseconds. |
java.lang.Throwable |
getError()
Gets the exception that occurred during execution of the command, if any. |
int |
getItemsExpected()
For bulk commands that are executed in chunks, gets the total number of items to be processed. |
int |
getItemsSoFar()
For bulk commands that are executed in chunks, gets the number of items that have been processed so far. |
int |
getPendingCommandCount()
Gets the total number of server commands currently in progress in this client application. |
java.lang.String |
getPropertyNameBeingFetched()
if a property fetch has been triggered, this method returns the name of the property that has triggered the fetch; otherwise it will return null |
Server |
getServer()
returns the server against which this command was issued |
int |
getServerThreadID()
Returns the Server's Thread ID which processed this command. |
int |
getSessionID()
Gets a unique id assigned to this command session. |
Type |
getType()
returns the Type of Object associated with this Command, if any or null, if this command is not associated with any specific type |
boolean |
isCommandFinished()
Determines whether or not the execution of this command is starting (a start event) or finishing (an end or error event). |
boolean |
isPropertyFetchTriggered()
Returns true if this command triggers a property fetch for a single item This is an indication that the application has not pre-populated the appropriate set of properties for the item(s) at the folder level Failure to do so implies significantly increased server round-trip processing. |
boolean |
isSuccessful()
Determines whether or not the command terminated normally. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getSessionID()
ServerCommandEvent.getCommandCount()public int getCommandCount()
ServerCommandEvent.getSessionID()public int getCommandID()
ServerCommandEvent.getCommandName()public int getServerThreadID()
public java.lang.String getCommandName()
ServerCommandEvent.getCommandID()public long getBytesSent()
ServerCommandEvent.isCommandFinished()public long getBytesReceived()
ServerCommandEvent.isCommandFinished()public long getCommandTime()
ServerCommandEvent.isCommandFinished()public boolean isCommandFinished()
public boolean isSuccessful()
ServerCommandEvent.getError()public java.lang.Throwable getError()
ServerCommandEvent.isSuccessful()public int getPendingCommandCount()
public boolean isPropertyFetchTriggered()
public java.lang.String getPropertyNameBeingFetched()
ServerCommandEvent.isPropertyFetchTriggered()public Type getType()
Typepublic Server getServer()
public int getItemsSoFar()
Note that isCommandFinished() may return true even if there are more items still to be processed. This occurs when each chunk is implemented as a separate server command.
Currently, PROJ_CMD_REFRESH_ITEMS is the only server command for which getItemsSoFar() returns non-zero. Note that isCommandFinished() may return true even if there are more items still to be processed. This is because each chunk is currently executed as a separate command.
ServerCommandEvent.getItemsExpected(),
Folder.populate(Item.Type, PropertyCollection, int)public int getItemsExpected()
ServerCommandEvent.getItemsSoFar()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||