@@ -28,10 +28,6 @@ this software and associated documentation files (the "Software"), to deal in
2828import su .interference .persistent .*;
2929import su .interference .persistent .Process ;
3030import su .interference .exception .*;
31- import javax .management .InstanceAlreadyExistsException ;
32- import javax .management .MBeanRegistrationException ;
33- import javax .management .MalformedObjectNameException ;
34- import javax .management .NotCompliantMBeanException ;
3531import java .io .IOException ;
3632import java .io .File ;
3733import java .net .URL ;
@@ -62,7 +58,7 @@ public class Instance implements Interference {
6258 private static final int MAX_NODE_ID = 32 ;
6359 public static final int SESSION_EXPIRE = 7200000 ; //in ms
6460
65- public static final int SYSTEM_VERSION = 20200920 ;
61+ public static final int SYSTEM_VERSION = 20201122 ;
6662
6763 public static final int SYSTEM_STATE_ONLINE = 1 ;
6864 public static final int SYSTEM_STATE_UP = 2 ;
@@ -100,26 +96,26 @@ private static class InstanceHolder {
10096 //public static Instance instance = new Instance();
10197 }
10298
103- private Instance () throws MalformedObjectNameException , NotCompliantMBeanException , InstanceAlreadyExistsException , MBeanRegistrationException , IOException {
99+ private Instance () {
104100
105101 }
106102
107- public boolean isStarted () throws InternalException , ClassNotFoundException , InstantiationException , IllegalAccessException {
103+ public boolean isStarted () throws InternalException {
108104 //checkInstance();
109105 return this .getSystemState ()==SYSTEM_STATE_UP ;
110106 }
111107
112- public boolean isStopped () throws InternalException , ClassNotFoundException , InstantiationException , IllegalAccessException {
108+ public boolean isStopped () throws InternalException {
113109 //checkInstance();
114110 return this .getSystemState ()==SYSTEM_STATE_DOWN ;
115111 }
116112
117- public boolean isCreated () throws InternalException , ClassNotFoundException , InstantiationException , IllegalAccessException {
113+ public boolean isCreated () throws InternalException {
118114 //checkInstance();
119115 return !(this .getSystemState ()==SYSTEM_STATE_IDLE );
120116 }
121117
122- public boolean isIdle () throws InternalException , ClassNotFoundException , InstantiationException , IllegalAccessException {
118+ public boolean isIdle () throws InternalException {
123119 //checkInstance();
124120 return (this .getSystemState ()==SYSTEM_STATE_IDLE );
125121 }
@@ -457,7 +453,7 @@ private void stopProcesses(Session s) throws Exception {
457453 }
458454 }
459455
460- private static int ccheckInstance () throws IOException , InternalException , ClassNotFoundException , InstantiationException , IllegalAccessException {
456+ private static int ccheckInstance () throws InternalException {
461457 final int sstate = Storage .getStorage ().getState ();
462458 if (sstate ==Storage .STORAGE_STATE_OPEN ) {
463459 return Instance .SYSTEM_STATE_UP ;
0 commit comments