예제 #1
0
 public synchronized void setTotalOfSlaves(int totalOfSlaves) {
   Log.i(">>>", "" + totalOfSlaves);
   config = configDao.getOrCreate(null);
   Log.i(">>>", config.toString());
   config.setTotalOfSlaves(totalOfSlaves);
   Log.i(">>>", config.toString());
   configDao.update(config);
 }
예제 #2
0
 public int getTotalOfSlaves() {
   config = configDao.getOrCreate(null);
   return config.getTotalOfSlaves();
 }
예제 #3
0
 public synchronized boolean isStoppedByUser() {
   config = configDao.getOrCreate(null);
   return config.isStoppedByUser();
 }
예제 #4
0
 public synchronized void markAsStoppedByUser() {
   config = configDao.getOrCreate(null);
   config.setStoppedByUser(1);
   markAsStopped();
 }
예제 #5
0
 public synchronized void markAsStopped() {
   config = configDao.getOrCreate(null);
   config.setRunning(0);
   configDao.update(config);
 }
예제 #6
0
 public synchronized boolean isRunning() {
   config = configDao.getOrCreate(null);
   return config.isRunning();
 }
예제 #7
0
 public synchronized void setTotalOfMessagesToSend(int totalOfMessagesToSend) {
   config = configDao.getOrCreate(null);
   config.setTotalOfMessagesToSend(totalOfMessagesToSend);
   configDao.update(config);
 }
예제 #8
0
 public synchronized int getTotalOfMessagesToSend() {
   config = configDao.getOrCreate(null);
   return config.getTotalOfMessagesToSend();
 }
예제 #9
0
 public synchronized void setFailureTolerance(int failureTolerance) {
   config = configDao.getOrCreate(null);
   config.setFailureTolerance(failureTolerance);
   configDao.update(config);
 }
예제 #10
0
 public synchronized int getFailureTolerance() {
   config = configDao.getOrCreate(null);
   return config.getFailureTolerance();
 }
예제 #11
0
 public synchronized void setPhone(String phone) {
   config = configDao.getOrCreate(null);
   config.setPhone(phone);
   configDao.update(config);
 }
예제 #12
0
 public synchronized String getPhone() {
   config = configDao.getOrCreate(null);
   return config.getPhone();
 }