org.xmlBlaster.contrib.replication
Class SqlStatement
java.lang.Object
org.xmlBlaster.contrib.replication.SqlStatement
- All Implemented Interfaces:
- SqlStatementMBean
public class SqlStatement
- extends java.lang.Object
- implements SqlStatementMBean
SqlStatement
- Author:
- Michele Laghi
Constructor Summary |
SqlStatement(java.lang.String replicationPrefix,
java.lang.String requestId,
java.lang.String statement,
java.util.List slaveList)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlStatement
public SqlStatement(java.lang.String replicationPrefix,
java.lang.String requestId,
java.lang.String statement,
java.util.List slaveList)
setHandle
public void setHandle(java.lang.Object mbeanHandle)
getHandle
public java.lang.Object getHandle()
setResponse
public void setResponse(java.lang.String id,
java.lang.String response,
boolean isException)
throws java.lang.Exception
- Throws:
java.lang.Exception
getStatus
public java.lang.String getStatus()
- Description copied from interface:
SqlStatementMBean
- Gets the status which can either be FAILED, WAITING, OK
- Specified by:
getStatus
in interface SqlStatementMBean
- Returns:
- See Also:
SqlStatementMBean.getStatus()
getReceived
public int getReceived()
- Specified by:
getReceived
in interface SqlStatementMBean
- Returns:
- the number of received results (including failed and ok messages)
- See Also:
SqlStatementMBean.getReceived()
getAll
public int getAll()
- Specified by:
getAll
in interface SqlStatementMBean
- Returns:
- all clients expected
getReceivedList
public java.lang.String getReceivedList()
- Specified by:
getReceivedList
in interface SqlStatementMBean
- Returns:
- the comma separated list of entries received. The values are the SessionNames of the Slaves already received
- See Also:
SqlStatementMBean.getReceivedList()
getFailed
public int getFailed()
- Specified by:
getFailed
in interface SqlStatementMBean
- Returns:
- the number of entries which have failed.
- See Also:
SqlStatementMBean.getFailed()
getFailedList
public java.lang.String getFailedList()
- Specified by:
getFailedList
in interface SqlStatementMBean
- Returns:
- the comma separated list of SessionNames of slaves which have failed
- See Also:
SqlStatementMBean.getFailedList()
getStatement
public java.lang.String getStatement()
- Specified by:
getStatement
in interface SqlStatementMBean
- Returns:
- the original Statement
- See Also:
SqlStatementMBean.getStatement()
getResponse
public java.lang.String getResponse()
- Specified by:
getResponse
in interface SqlStatementMBean
- Returns:
- the 'shall' response: the response given by the DbWatcher (or Master)
- See Also:
SqlStatementMBean.getResponse()
getSlaveResponse
public java.lang.String getSlaveResponse(java.lang.String slaveSessionName)
- Description copied from interface:
SqlStatementMBean
- Gets the response of the specified slave
- Specified by:
getSlaveResponse
in interface SqlStatementMBean
- Parameters:
slaveSessionName
- the session name of the slave for which to retrieve the response.
- Returns:
- See Also:
SqlStatementMBean.getSlaveResponse(java.lang.String)
getReplicationPrefix
public java.lang.String getReplicationPrefix()
- Specified by:
getReplicationPrefix
in interface SqlStatementMBean
- See Also:
SqlStatementMBean.getReplicationPrefix()
getRequestId
public java.lang.String getRequestId()
- Specified by:
getRequestId
in interface SqlStatementMBean
- See Also:
SqlStatementMBean.getRequestId()
getSlaveList
public java.lang.String getSlaveList()
- Specified by:
getSlaveList
in interface SqlStatementMBean
- See Also:
SqlStatementMBean.getSlaveList()
Copyright © 1999-2014 The xmlBlaster.org contributers.