forked from Dartanlla/OWS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IInstanceGrain.cs
23 lines (22 loc) · 1.37 KB
/
IInstanceGrain.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using OWSData.Models.Composites;
using OWSData.Models.StoredProcs;
using OWSShared.RequestPayloads;
namespace OWS.Interfaces
{
public interface IInstanceGrain : IGrainWithGuidKey
{
Task<SuccessAndErrorMessage> AddOrUpdateZone(AddOrUpdateZoneRequestPayload request);
Task<GetCurrentWorldTime> GetCurrentWorldTime();
Task<GetServerInstanceFromPort> GetServerInstanceFromPort(string ipAddress, int port);
Task<GetServerInstanceFromPort> GetZoneInstance(int zoneInstanceId);
Task<IEnumerable<GetZoneInstancesForWorldServer>> GetZoneInstancesForWorldServer(int worldServerId);
Task<IEnumerable<GetZoneInstancesForZone>> GetZoneInstancesForWorldServer(string zoneName);
Task<SuccessAndErrorMessage> RegisterLauncher(RegisterInstanceLauncherRequestPayload Request);
Task<SuccessAndErrorMessage> SetZoneInstanceStatusRequest(int zoneInstanceId, int instanceStatus);
Task<SuccessAndErrorMessage> ShutDownInstanceLauncher(int worldServerId);
Task<SuccessAndErrorMessage> ShutDownServerInstance(int worldServerId, int zoneInstanceId);
Task<SuccessAndErrorMessage> SpinUpServerInstance(int worldServerId, int zoneInstanceId, string zoneName, int port);
Task<int> StartInstanceLauncher(string launcherId);
Task<SuccessAndErrorMessage> UpdateNumberOfPlayers(int zoneInstanceId, int numPlayers);
}
}