-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework internal com based on XML-RPC
- Loading branch information
1 parent
2b618d0
commit 154c7ac
Showing
13 changed files
with
212 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
supvisors/client/java/org/supvisors/common/SupvisorsState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright 2016 Julien LE CLEACH | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.supvisors.common; | ||
|
||
/** | ||
* The State enumeration for Supvisors. | ||
* | ||
* INITIALIZATION is used when Supvisors is synchronizing with all other Supvisors instances. | ||
* DEPLOYMENT is used when Supvisors is starting applications automatically. | ||
* OPERATION is used when Supvisors is working normally. | ||
* CONCILIATION is used when Supvisors is conciliating conflicts due to multiple instance of the same process. | ||
*/ | ||
public enum SupvisorsState { | ||
INITIALIZATION(0), | ||
DEPLOYMENT(1), | ||
OPERATION(2), | ||
CONCILIATION(3), | ||
RESTARTING(4), | ||
SHUTTING_DOWN(5), | ||
FINAL(7); | ||
|
||
/** The state code. */ | ||
private int stateCode; | ||
|
||
/** The constructor links the state code to the state name. */ | ||
private State(final int stateCode) { | ||
this.stateCode = stateCode; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.