Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
65 lines (51 loc) · 2.54 KB

File metadata and controls

65 lines (51 loc) · 2.54 KB

RootServerInfo

RootServerInfo.java

public class RootServerInfo

A class that provides a server, and any needed server info classes

  • a class that is a ServerProvider
  • a builder for the ServerProvider
  • an enum class that stores server index values

Nested Class Summary

Modifier and Type Class and Description
static class RootServerInfo.RootServerInfo1
class that stores a server index
static class RootServerInfo.RootServerInfoBuilder
class that stores a server index
enum RootServerInfo.ServerIndex
class that stores a server index

RootServerInfo1

implements ServerProvider<ServerIndex>

A class that stores servers and allows one to be returned with a ServerIndex instance

Constructor Summary

Constructor and Description
RootServerInfo1(@Nullable RootServer0 server0,@Nullable RootServer1 server1,@Nullable RootServer2 server2)
Creates an instance using passed in servers

Field Summary

Modifier and Type Field and Description
RootServer0 server0
RootServer1 server1
RootServer2 server2

Method Summary

Modifier and Type Method and Description
Server getServer(ServerIndex serverIndex)

RootServerInfoBuilder

a builder for RootServerInfo1

Constructor Summary

Constructor and Description
RootServerInfoBuilder()
Creates an instance

Method Summary

Modifier and Type Method and Description
RootServerInfoBuilder rootServer0(RootServer0 server0)
sets the server
RootServerInfoBuilder rootServer1(RootServer1 server1)
sets the server
RootServerInfoBuilder rootServer2(RootServer2 server2)
sets the server
RootServerInfo1 build()

ServerIndex

enum ServerIndex

Enum Constant Summary

Enum Constant And Description
SERVER_0
server 0
SERVER_1
server 1
SERVER_2
server 2