FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
berkeley-algorithm-java/src/main/java/server/Clock_Two.java at master · mawippel/berkeley-algorithm-java · GitHub
mawippel
/
berkeley-algorithm-java
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
berkeley-algorithm-java
/
src
/
main
/
java
/
server
/
Clock_Two.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (19 loc) · 722 Bytes
Breadcrumbs
berkeley-algorithm-java
/
src
/
main
/
java
/
server
/
Clock_Two.java
Copy path
File metadata and controls
25 lines (19 loc) · 722 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package
server
;
import
static
common
.
AppConstants
.
formatter
;
import
java
.
rmi
.
registry
.
LocateRegistry
;
import
java
.
rmi
.
registry
.
Registry
;
import
java
.
time
.
LocalTime
;
import
common
.
AppConstants
;
public
class
Clock_Two
{
public
static
void
main
(
String
[]
args
) {
try
{
// Servidor 2
HorarioServidor
hs2
=
new
HorarioServidorImpl
(
LocalTime
.
parse
(
"07:10:00"
,
formatter
));
Registry
registry2
=
LocateRegistry
.
createRegistry
(
AppConstants
.
SERVER_PORT_2
);
registry2
.
rebind
(
HorarioServidorImpl
.
class
.
getSimpleName
(),
hs2
);
System
.
out
.
println
(
String
.
format
(
"Servidor 2 iniciado na porta %s"
,
AppConstants
.
SERVER_PORT_2
));
}
catch
(
Exception
ex
) {
System
.
out
.
println
(
ex
);
}
}
}
Back
|
FazBrowse Home
|
New Git URL