Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distributed: improved management of synchronization
Supported new ODiscardedResponse to avoid waiting for them
- Loading branch information
Showing
9 changed files
with
150 additions
and
113 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
31 changes: 31 additions & 0 deletions
31
server/src/main/java/com/orientechnologies/orient/server/distributed/ODiscardedResponse.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,31 @@ | ||
/* | ||
* | ||
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) | ||
* * | ||
* * 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. | ||
* * | ||
* * For more information: http://www.orientechnologies.com | ||
* | ||
*/ | ||
|
||
package com.orientechnologies.orient.server.distributed; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Immutable class used to report back a discarded response. | ||
*/ | ||
public class ODiscardedResponse implements Serializable { | ||
public ODiscardedResponse() { | ||
} | ||
} |
62 changes: 31 additions & 31 deletions
62
...r/src/main/java/com/orientechnologies/orient/server/distributed/ODistributedResponse.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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
/* | ||
* | ||
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) | ||
* * | ||
* * 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. | ||
* * | ||
* * For more information: http://www.orientechnologies.com | ||
* | ||
*/ | ||
* | ||
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) | ||
* * | ||
* * 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. | ||
* * | ||
* * For more information: http://www.orientechnologies.com | ||
* | ||
*/ | ||
package com.orientechnologies.orient.server.distributed; | ||
|
||
/** | ||
* | ||
* @author Luca Garulli (l.garulli--at--orientechnologies.com) | ||
* | ||
*/ | ||
public interface ODistributedResponse { | ||
* | ||
* @author Luca Garulli (l.garulli--at--orientechnologies.com) | ||
* | ||
*/ | ||
public interface ODistributedResponse { | ||
|
||
String getExecutorNodeName(); | ||
String getExecutorNodeName(); | ||
|
||
String getSenderNodeName(); | ||
ODistributedResponse setExecutorNodeName(String iExecutor); | ||
|
||
Object getPayload(); | ||
String getSenderNodeName(); | ||
|
||
long getRequestId(); | ||
Object getPayload(); | ||
|
||
ODistributedResponse setExecutorNodeName(String iExecutor); | ||
ODistributedResponse setPayload(Object iPayload); | ||
|
||
ODistributedResponse setPayload(Object iPayload); | ||
long getRequestId(); | ||
|
||
boolean isExecutedOnLocalNode(); | ||
} | ||
boolean isExecutedOnLocalNode(); | ||
} |
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.